Watch item for Lua observers. More...
Public Member Functions | |
LuaWatchItem (string luaExpression, LuaChangedDelegate luaChangedHandler) | |
Initializes a new instance of the PixelCrushers.DialogueSystem.WatchItem class. | |
bool | Matches (string luaExpression, LuaChangedDelegate luaChangedHandler) |
Checks if the watch item matches a specified luaExpression and luaChangedHandler. | |
void | Check () |
Checks the watch item and calls the delegate if the Lua expression changed. | |
Static Public Member Functions | |
static string | LuaExpressionWithReturn (string luaExpression) |
Properties | |
string | luaExpression [get, set] |
The lua expression to watch. | |
Watch item for Lua observers.
This allows the observer to be notified when a Lua value changes.
|
inline |
Initializes a new instance of the PixelCrushers.DialogueSystem.WatchItem class.
luaExpression | Lua expression to watch. |
luaChangedHandler | Delegate to call when the expression changes. |
|
inline |
Checks the watch item and calls the delegate if the Lua expression changed.
|
inlinestatic |
|
inline |
Checks if the watch item matches a specified luaExpression and luaChangedHandler.
luaExpression | The lua expression. |
luaChangedHandler | The notification delegate. |
|
getset |
The lua expression to watch.