Watch item for Lua observers.
More...
|
| LuaWatchItem (string luaExpression, LuaChangedDelegate luaChangedHandler) |
| Initializes a new instance of the PixelCrushers.DialogueSystem.WatchItem class. More...
|
|
bool | Matches (string luaExpression, LuaChangedDelegate luaChangedHandler) |
| Checks if the watch item matches a specified luaExpression and luaChangedHandler. More...
|
|
void | Check () |
| Checks the watch item and calls the delegate if the Lua expression changed. More...
|
|
Watch item for Lua observers.
This allows the observer to be notified when a Lua value changes.
◆ LuaWatchItem()
PixelCrushers.DialogueSystem.LuaWatchItem.LuaWatchItem |
( |
string |
luaExpression, |
|
|
LuaChangedDelegate |
luaChangedHandler |
|
) |
| |
Initializes a new instance of the PixelCrushers.DialogueSystem.WatchItem class.
- Parameters
-
luaExpression | Lua expression to watch. |
luaChangedHandler | Delegate to call when the expression changes. |
◆ Check()
void PixelCrushers.DialogueSystem.LuaWatchItem.Check |
( |
| ) |
|
Checks the watch item and calls the delegate if the Lua expression changed.
◆ Matches()
bool PixelCrushers.DialogueSystem.LuaWatchItem.Matches |
( |
string |
luaExpression, |
|
|
LuaChangedDelegate |
luaChangedHandler |
|
) |
| |
Checks if the watch item matches a specified luaExpression and luaChangedHandler.
- Parameters
-
luaExpression | The lua expression. |
luaChangedHandler | The notification delegate. |
◆ LuaExpression
string PixelCrushers.DialogueSystem.LuaWatchItem.LuaExpression |
|
getset |
The lua expression to watch.
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Source/Assets/Dialogue System/Scripts/Core/Lua/LuaWatchItem.cs