DynamicData - stingray.DynamicData object reference - Stingray Lua API Reference
References script data obtained from a LevelResource by calling stingray.LevelResource.data() or stingray.LevelResource.unit_data().
It can be used in the same way as stingray.Level.get_data() and stingray.Unit.get_data().
|
get ( self, i ) : any
Retrieves script data from a dynamic data object.
|
Parameters self : | stingray.DynamicData | Specifies the object instance that this function will act on. You may use the colon : calling syntax to call this function on an instance of this object. If you do so, you must omit this parameter. For more information, see this Stingray help topic, or this page in the Lua documentation. |
i : | any(integer, string)+ | A sequence of indices, which might be integers or strings. The + notation indicates that there may be one or more instances of the specified type. The any(...) notation indicates that this item may be an instance of any of the types shown in the parentheses. |
Returns any |
The data value stored at the specified sequence of indices, if any.
|