--[[ Luaスクリプトベースのコンフィグファイル プロパティを記述して、ゲーム側で取得して使ってもらう カテゴリ単位でテーブルを分けてもらうのが良い。 例) System = { MinimumFPS = 30, MaxFPS = 60, RootSequence = DebugSequence, } Renderer = { Resolution = {1280, 720}, } Game = { EventSkipEnable = true, MoveSpeed, } ○設定したパラメータの取得 #include "agcsScriptEngine.h" #include "agcsLuaEngineForPcConnect.h" // Luaエンジンを取得して agcs::LuaEngineForPcConnect *le = agcs::script::Engine::GetEngine(); agcsAssert(le); // bool値の取得 bool true_or_false = static_cast(le->GetNumberVariable("Game.EventSkipEnable")); // 文字列の取得 const char *seq_name = le->GetStringVariable("System.RootSequence"); // 整数の取得 int32_t w = le->GetNumberVariable("Renderer.Resolution[1]") int32_t h = le->GetNumberVariable("Renderer.Resolution[2]") ※キャストが面倒な場合はご相談を ]]-- System = {} System.DisplayLoadMeter = true System.RootSequence = "DebugSequence" --仮記述(こんな感じで変えられるといいな、って程度) System.PerformanceCounter = false