Batch #4157 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_20367 CWeatherEffect::Play: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, youko Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
44 lines
840 B
C++
44 lines
840 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_MAPSKYMGR_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_MAPSKYMGR_H
|
|
|
|
#include "Script/LuaScript.h"
|
|
|
|
#include <string>
|
|
|
|
struct CRagEffect;
|
|
|
|
class CWeatherEffect {
|
|
public:
|
|
void Play(char kind);
|
|
|
|
/* 0000 */ unsigned char unknown_0000[0x10];
|
|
/* 0010 */ void* actor;
|
|
/* 0014 */ unsigned char unknown_0014[0x30];
|
|
/* 0044 */ CRagEffect* effect;
|
|
};
|
|
|
|
class CMapSkyMgr {
|
|
public:
|
|
CMapSkyMgr();
|
|
// INLINED
|
|
virtual ~CMapSkyMgr() {
|
|
if (this->m_script) {
|
|
this->m_script->Close();
|
|
delete this->m_script;
|
|
this->m_script = nullptr;
|
|
}
|
|
}
|
|
|
|
bool LoadData();
|
|
void Unused();
|
|
void CreateClouds(const std::string& mapName);
|
|
void Apply(const std::string& mapName);
|
|
|
|
private:
|
|
/* 0004 */ LuaScript* m_script;
|
|
};
|
|
|
|
extern CWeatherEffect g_weatherEffect;
|
|
extern float g_depthAverageHalf;
|
|
|
|
#endif
|