OROCHI
 
Loading...
Searching...
No Matches
GxModSysScript.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12GX_CORE_NAMESPACE_BEGIN()
13
14//===========================================================================
16//===========================================================================
18{
19 //-----------------------------------------------------------
21 //-----------------------------------------------------------
23public:
24 GX_RTTI_CLASS(GxModSysScript, GxModSysBase)
25 // ClassBase継承クラス用禁止宣言
27
28
29 //-----------------------------------------------------------
31 //-----------------------------------------------------------
33public:
35 GxModSysScript(void);
37 ~GxModSysScript(void) override;
38
40 void initialize(GxResScript* pResource);
41
43 //-----------------------------------------------------------
45 //-----------------------------------------------------------
47public:
49 b32 initialize(void) override;
51 void terminate(void) override;
53 void update(void) override;
55 constexpr void sleep(f32 time) { _runtime.setSleepTime(time); }
57 GX_FORCE_INLINE b32 isSleep(void) const { return _runtime.isSleep(); }
58private:
60 GxFunction::GxValue executeScript(GX_CSTR name);
61#if GX_DEVELOP
63 void createTool(void);
64#endif //GX_DEVELOP
65
67 //-----------------------------------------------------------
69 //-----------------------------------------------------------
71public:
73 constexpr GxResScript* getResource(void) const { return _pResScript; }
75 void setResource(GxResScript* pResource);
76private:
78 void getPropertyResource(void* const pValue);
80 void setPropertyResource(const void* const pValue);
81
83 //-----------------------------------------------------------
85 //-----------------------------------------------------------
87private:
88 GxResScript* _pResScript;
89 GxScriptRuntime _runtime;
90
92};
93
94GX_CORE_NAMESPACE_END()
95
#define GX_PROHIBIT_CLASS_BASE(__CLASS__)
GxClassBase継承の禁止宣言
Definition GxBase.h:240
システムモジュール基礎クラス
Definition GxModSysBase.h:20
システムスクリプトモジュールクラス
Definition GxModSysScript.h:18
constexpr GxResScript * getResource(void) const
リソースを取得
Definition GxModSysScript.h:73
constexpr void sleep(f32 time)
スリープ
Definition GxModSysScript.h:55
GX_FORCE_INLINE b32 isSleep(void) const
スリープ中判定
Definition GxModSysScript.h:57
スクリプトリソース
Definition GxResScript.h:19
スクリプトランタイムクラス
Definition GxScriptRuntime.h:19
値の共用体
Definition GxFunction.h:81
32bitブーリアン
Definition GxDefine.h:173