16 VARIABLE(std::string name,
const char* type, std::string value) {
17 this->name = std::move(name);
19 this->value = std::move(value);
32 void Exterminate()
override;
36 void Tick(
float elapsedTime)
override;
40 void SetClassName(std::string name);
42 std::string SGetClassName()
const;
45 bool GetIsEnable()
const override;
47 void SetIsEnable(
bool is_enable)
override;
49 void Log(
const char* log);
51 void SetValue(std::string name_str, Arguments value)
override;
53 std::string PrintValue()
const override;
58 Sqrat::Object GetClassInstance()
const {
59 return m_classInstance->get();
67 void RegisterScript();
68 void CreateClassInstance(
const std::vector<std::string>& variables);
70 void BindValue(VARIABLE* variable,
const char* value)
const;
73 mutable sqext::SQIClass* m_specialization =
nullptr;
74 mutable sqext::SQIClassInstance* m_classInstance =
nullptr;
75 int m_funcSetCSEngine = 0;
78 int m_funcExterminate = 3;
79 std::vector<VARIABLE> m_variables;
81 std::string m_className;
82 std::string m_classID;
84 bool m_isError =
false;