This component synchronizes Core GameKit's level settings and world variables with the Dialogue System's Lua environment. More...
Public Member Functions | |
void | Start () |
void | OnConversationStart (Transform actor) |
When a conversation starts, syncs CoreGameKit to Lua. More... | |
void | OnConversationEnd (Transform actor) |
When a conversation ends, syncs Lua to CoreGameKit. More... | |
Static Public Member Functions | |
static void | SyncCoreGameKitToLua () |
Records CoreGameKit variables into the Dialogue System's Lua environment. More... | |
static void | SyncLevelSettingsToLua () |
static void | SyncWorldVariablesToLua () |
static void | SyncLuaToCoreGameKit () |
Updates the CoreGameKit variables with the current values in the Dialogue System's Lua environment. More... | |
static void | AssignWorldVariableToLua (InGameWorldVariable worldVariable, string luaVariableName) |
static void | AssignLuaResultToWorldVariable (InGameWorldVariable worldVariable, Lua.Result luaResult) |
This component synchronizes Core GameKit's level settings and world variables with the Dialogue System's Lua environment.
It automatically synchronizes before and after conversations, and you can synchronize manually using SyncCoreGameKitToLua() and SyncLuaToCoreGameKit().
For every Core GameKit world variable, there will be a corresponding entry in the Lua environment's Variable[] table. Spaces in variable names will be replaced with underscores. For example:
The Lua variables below will also be set as read-only. They won't be synchronized back to Core GameKit.
|
static |
|
static |
void PixelCrushers.DialogueSystem.CoreGameKit.CoreGameKitLuaBridge.OnConversationEnd | ( | Transform | actor | ) |
When a conversation ends, syncs Lua to CoreGameKit.
actor | Actor participating in the conversation. |
void PixelCrushers.DialogueSystem.CoreGameKit.CoreGameKitLuaBridge.OnConversationStart | ( | Transform | actor | ) |
When a conversation starts, syncs CoreGameKit to Lua.
actor | Actor participating in the conversation. |
void PixelCrushers.DialogueSystem.CoreGameKit.CoreGameKitLuaBridge.Start | ( | ) |
|
static |
Records CoreGameKit variables into the Dialogue System's Lua environment.
|
static |
|
static |
Updates the CoreGameKit variables with the current values in the Dialogue System's Lua environment.
|
static |