Module class
Functions
_M:cloneForSave () | Clones the object, all subobjects without cloning twice a subobject Does not invoke clone methods as this is not for reloading, just for saving |
_M:cloneFull () | Clones the object, all subobjects without cloning twice a subobject |
_M:cloneReloaded () | "Reloads" a cloneFull result object This will make sure each object and subobject method :loaded() is called |
_M:replaceWith (t) | Replaces the object with an other, by copying (not deeply) |
Functions
- _M:cloneForSave ()
-
Clones the object, all subobjects without cloning twice a subobject Does not invoke clone methods as this is not for reloading, just for saving
Return value:
the clone and the number of cloned objects - _M:cloneFull ()
-
Clones the object, all subobjects without cloning twice a subobject
Return value:
the clone and the number of cloned objects - _M:cloneReloaded ()
- "Reloads" a cloneFull result object This will make sure each object and subobject method :loaded() is called
- _M:replaceWith (t)
-
Replaces the object with an other, by copying (not deeply)
Parameters
- t: