This script provides a bridge between plyGame data and the Dialogue System's Lua environment.
More...
|
string | GetPlyVarValue (plyBloxKit.plyVar plyVar) |
| Gets a plyVar value as a Lua-compatible string (i.e., adding quotes if necessary). More...
|
|
This script provides a bridge between plyGame data and the Dialogue System's Lua environment.
The ConversationController component uses this bridge if it's present on the actor.
◆ Awake()
virtual void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.Awake |
( |
| ) |
|
|
virtual |
◆ GetPlyVarValue()
string PixelCrushers.DialogueSystem.plyGame.plyGameBridge.GetPlyVarValue |
( |
plyBloxKit.plyVar |
plyVar | ) |
|
|
protected |
Gets a plyVar value as a Lua-compatible string (i.e., adding quotes if necessary).
- Returns
- The ply variable value.
- Parameters
-
◆ SyncAttributesFromLua()
void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncAttributesFromLua |
( |
| ) |
|
Syncs the Lua attribute values to back to plyGame.
◆ SyncAttributesToLua()
void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncAttributesToLua |
( |
| ) |
|
Syncs the actor's plyGame attributes to Lua.
In Lua, they will be in the form (example): Actor["Player"].Health_Value Actor["Player"].Health_CurrentValue
◆ SyncFactionsFromLua()
void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncFactionsFromLua |
( |
| ) |
|
◆ SyncFactionsToLua()
void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncFactionsToLua |
( |
| ) |
|
Syncs the actor's faction values to Lua.
In Lua they will be in the form (example): Actor["Player"].Faction_factionIdent_variableIdent
◆ SyncFromLua()
virtual void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncFromLua |
( |
| ) |
|
|
virtual |
◆ SyncItemsFromLua()
void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncItemsFromLua |
( |
| ) |
|
◆ SyncItemsToLua()
void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncItemsToLua |
( |
| ) |
|
Syncs the actor's ItemBag items to Lua.
In Lua they will use: Actor["Player"].Currency Actor["Player"].CurrWeight Item["itemIdent"].Count
◆ SyncSkillsFromLua()
void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncSkillsFromLua |
( |
| ) |
|
◆ SyncSkillsToLua()
void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncSkillsToLua |
( |
| ) |
|
Syncs the actor's skills to Lua.
In Lua they will be in the form (example): Actor["Player"].Skill_skillIdent
◆ SyncToLua()
virtual void PixelCrushers.DialogueSystem.plyGame.plyGameBridge.SyncToLua |
( |
| ) |
|
|
virtual |
◆ syncAttributes
bool PixelCrushers.DialogueSystem.plyGame.plyGameBridge.syncAttributes = true |
Set true
to synchronize the actor's class attributes with the Lua Actor[] table.
◆ syncFactions
bool PixelCrushers.DialogueSystem.plyGame.plyGameBridge.syncFactions = true |
Set true
to synchronize the actor's faction values with the Lua Actor[] table.
◆ syncItems
bool PixelCrushers.DialogueSystem.plyGame.plyGameBridge.syncItems = true |
Set true
to synchronize the actor's itemBag with the Lua Item[] table.
◆ syncSkills
bool PixelCrushers.DialogueSystem.plyGame.plyGameBridge.syncSkills = true |
Set true
to synchronize the actor's skill values with the Lua Actor[] table.
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Integration/plyGame Integration/Assets/Dialogue System/Third Party Support/plyGame/Scripts/Conversation Controller/plyGameBridge.cs