FUNCTION add(entityID)
Add a new entity to the collection (use class name plus entity_ID as the key)
|
Parameter | Description |
entityID |
A reference to an entity object to add to the collection |
|
Returns |
A simple value to indicate success (0=Failed, 1=Succeeded) |
|
FUNCTION add(key$, entityID)
Add a new entity to the collection
|
Parameter | Description |
key$ |
The name (maximum length of 50 characters) to be used to access the entity |
entityID |
A reference to an entity object to add to the collection |
|
Returns |
A simple value to indicate success (0=Failed, 1=Succeeded) |
|
FUNCTION delete(entityID)
Delete an entity from the collection by ID
|
Parameter | Description |
entityID |
The ID of the entity to delete |
|
Returns |
A simple value to indicate success (0=Failed, 1=Succeeded) |
|
FUNCTION delete(key$)
Delete an entity from the collection by name
|
Parameter | Description |
key$ |
The name (maximum length of 50 characters) of the entity to delete |
|
Returns |
A simple value to indicate success (0=Failed, 1=Succeeded) |
|
FUNCTION item(key$)
Get the entity ID associated with the specified name
|
Parameter | Description |
key$ |
The name (maximum length of 50 characters) of the entity to locate |
|
Returns |
A reference to the entity object |
|
FUNCTION item(index)
Get the entity ID associated with the specified index
|
Parameter | Description |
index |
The name of the entity to locate |
|
Returns |
A reference to the entity object |
|