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. 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...
 

Properties

string LuaExpression [get, set]
 The lua expression to watch. More...
 

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 
)

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 ( )

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
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: