Class RomlVar
A RoML variable that holds a generic data type value (string,
number, boolean).
Info:
- License: MIT
- Author: Richard Voelker
-
RomlVar.Changed
-
The Changed Event. Observers of this Event are notified
whenever the SetValue method is called. Observing functions
are passed two arguments, the old value and the new value.
-
RomlVar.new (self[, value])
-
Create a new RomlVar with the specified value.
Parameters:
- self
RomlVar
- value
generic
The value to set to.
(optional)
-
RomlVar.SetValue (self, value)
-
Set the value for this object. All observers of the
Changed Event are notified.
Parameters:
- self
RomlVar
- value
generic
The value to set to.
Returns:
The current value of the variable.
-
RomlVar.GetValue (self)
-
Parameters:
Returns:
The current value of the variable.
-
RomlVar.__newindex (self, key, value)
-
Set the value for a table key, if our variable is a ROBLOX
object or Lua table. All observers of the Changed Event
are notified if there is
Parameters:
- self
RomlVar
- key
The key to associate the table value with.
- value
The value to place in the table.