Murl Engine Lua Addon API  Version 1.0 beta
Murl.ChangeController.SInt32

The change controller template class to control changes of an object's value.

The change controller counts a frame at each values's change and can check a frame change regarding to the ChangeInspector.


Table members

Functions


Murl.ChangeController.SInt32.new()

The default constructor.

Murl.ChangeController.SInt32 new()

Returns
Murl.ChangeController.SInt32

Murl.ChangeController.SInt32.new(value)

Constructor taking a default value.

Murl.ChangeController.SInt32 new(Integer value)

Parameters
valueThe default value.
Returns
Murl.ChangeController.SInt32


Methods


SetValue(value)

Set a value and increment the current frame if the value has been changed.

Boolean SetValue(Integer value)

Parameters
valueThe value to set.
Returns
Boolean true if the value has been changed.

GetValue()

Get the current value.

Integer GetValue()

Returns
Integer The current value.

WasChanged(inspector)

Check if the inspector's frame is different to the controller's frame.

Boolean, Murl.ChangeInspector WasChanged(Murl.ChangeInspector inspector)

Parameters
inspectorThe inspector to check.
Returns
Boolean true if the instpector's frame was dfifferent.
Murl.ChangeInspector inspector The inspector to check.

SetChanged()

Increment the current frame.

SetChanged()