PixelCrushers.DialogueSystem.LuaWatchItem Class Reference

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.
 

Detailed Description

Watch item for Lua observers.

This allows the observer to be notified when a Lua value changes.

Constructor & Destructor Documentation

◆ LuaWatchItem()

PixelCrushers.DialogueSystem.LuaWatchItem.LuaWatchItem ( string  luaExpression,
LuaChangedDelegate  luaChangedHandler 
)
inline

Initializes a new instance of the PixelCrushers.DialogueSystem.WatchItem class.

Parameters
luaExpressionLua expression to watch.
luaChangedHandlerDelegate to call when the expression changes.

Member Function Documentation

◆ Check()

void PixelCrushers.DialogueSystem.LuaWatchItem.Check ( )
inline

Checks the watch item and calls the delegate if the Lua expression changed.

◆ LuaExpressionWithReturn()

static string PixelCrushers.DialogueSystem.LuaWatchItem.LuaExpressionWithReturn ( string  luaExpression)
inlinestatic

◆ Matches()

bool PixelCrushers.DialogueSystem.LuaWatchItem.Matches ( string  luaExpression,
LuaChangedDelegate  luaChangedHandler 
)
inline

Checks if the watch item matches a specified luaExpression and luaChangedHandler.

Parameters
luaExpressionThe lua expression.
luaChangedHandlerThe notification delegate.

Property Documentation

◆ luaExpression

string PixelCrushers.DialogueSystem.LuaWatchItem.luaExpression
getset

The lua expression to watch.


The documentation for this class was generated from the following file: