![]() |
Lumino
|
(実験的な機能) コルーチンベースのスクリプトインタプリタ。 More...
#include <Interpreter.hpp>
Inherits ln::Object.
Public Member Functions | |
void | clear () |
コマンドリストをクリアします。実行中のコマンドリストは強制的に破棄されます。 | |
void | run (InterpreterCommandList *commandList) |
コマンドリストを設定し、実行を開始します。 | |
bool | isRunning () const |
コマンドリストの実行中であるかを確認します。 | |
void | setWaitMode (const String &mode) |
setWaitMode | |
const String & | waitMode () const |
waitMode | |
void | setWaitCount (int count) |
setWaitCount | |
int | waitCount () const |
waitCount | |
Protected Member Functions | |
bool | init () |
Interpreter を作成します。 | |
virtual bool | onUpdateWait () |
waitMode に基づいて、実行停止中かを確認する (Wait 中なら true を返すこと) | |
(実験的な機能) コルーチンベースのスクリプトインタプリタ。
ツクールのと同じ仕組み。ただスクリプト実行するなら Lua とか使ってもよいのだが、これの重要な要件は「実行状態を保存できるようにすること」