Class RomlVar

A RoML variable that holds a generic data type value (string, number, boolean).

Info:

  • License: MIT
  • Author: Richard Voelker

Events

RomlVar.Changed The Changed Event.

Methods

RomlVar.new (self[, value]) Create a new RomlVar with the specified value.
RomlVar.SetValue (self, value) Set the value for this object.
RomlVar.GetValue (self)

Metamethods

RomlVar.__newindex (self, key, value) Set the value for a table key, if our variable is a ROBLOX object or Lua table.


Events

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.

Methods

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.

Metamethods

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.
generated by LDoc 1.4.3 Last updated 2016-07-26 17:10:04