|
GameServer
|
スクリプト実行オブジェクトプール [詳解]
#include <ExecuterPool.h>
公開メンバ関数 | |
| ~ExecuterPool () | |
| デストラクタ [詳解] | |
| long | Register (ScriptExecuterBase *pExecuter) |
| 登録 [詳解] | |
| ScriptExecuterBase * | Get (long Id) |
| void | Remove (long Id) |
| 消去 [詳解] | |
静的公開メンバ関数 | |
| static ExecuterPool & | GetInstance () |
| シングルトンインスタンスを取得 [詳解] | |
スクリプト実行オブジェクトプール
クラスのメンバ関数がバインド出来ない関係で作られた。 IDとスクリプト実行オブジェクトを紐付け、 スクリプトからC++側の関数を呼び出す際は引数にIDを渡すようにする。 (ポインタのようなもの) シングルトンクラス
|
inline |
デストラクタ
| ScriptExecuterBase * ExecuterPool::Get | ( | long | Id | ) |

|
inlinestatic |
シングルトンインスタンスを取得

| long ExecuterPool::Register | ( | ScriptExecuterBase * | pExecuter | ) |
登録
| [in] | スクリプト実行クラスへのポインタ |

| void ExecuterPool::Remove | ( | long | Id | ) |
消去
| [in] | Id | ID |

1.8.14