30 lines
767 B
C++
30 lines
767 B
C++
#pragma once
|
|
|
|
#include <a8/singleton.h>
|
|
|
|
extern int g_hint_flags;
|
|
|
|
class ColliderComponent;
|
|
class Global : public a8::Singleton<Global>
|
|
{
|
|
private:
|
|
Global() {};
|
|
friend class a8::Singleton<Global>;
|
|
public:
|
|
|
|
static int g_nowtime;
|
|
static ColliderComponent* last_collider;
|
|
int traversing_cell_creature_count = 0;
|
|
int verify_set_pos = 0;
|
|
};
|
|
|
|
bool IsValidSlotId(int slot_id);
|
|
bool IsValidBuffEffect(int buff_effect);
|
|
bool IsValidHumanAttr(int attr_type);
|
|
bool IsValidHumanVirtualAttr(int attr_type);
|
|
bool IsValidEventBuff(int event);
|
|
bool IsValidWeaponOpt(int opt);
|
|
bool IsValidBuffOpt(int opt);
|
|
float GetAttrAbsFromXObject(std::shared_ptr<a8::XObject> obj, int attr_id);
|
|
float GetAttrRateFromXObject(std::shared_ptr<a8::XObject> obj,int attr_id);
|