PresetManager:AddPreset
From Data Realms Wiki
Revision as of 00:45, 28 June 2012 by Beautifybot (Talk | contribs)
Function | |
---|---|
Syntax | AddPreset( * A pointer to the Entity derived instance to add. It should be created from a Reader. Ownership is NOT transferred!
|
Description: | |
Adds an Entity instance's pointer and name associations to the internal list of already read in Entity:s. Ownership is NOT transferred! If there already is an instance defined, nothing happens. If there is not, a clone is made of the passed-in Entity and added to the library. | |
Returns | Whether or not a copy of the passed-in instance was successfully inserted into the module. False will be returned if there already was an instance of that class and instance name inserted previously, unless overwritten. |
Example | |
---|---|
Description | Placeholder! |
Code |
|
Output | Placeholder! |