This is the documentation for Enlighten.
class Enlighten SystemGrouping
class Enlighten::SystemGrouping
A groupings of instances into systems.
Functions
Name | Description |
|---|---|
Adds an instance with a given ID to a system. | |
Adds a system to the grouping with a maximum instance capacity. | |
Creates a system grouping for a given number of systems. | |
Returns the global ID for an instance in a system. | |
Returns the total number of instances in the grouping. | |
Returns the number of instances in a system. | |
Returns the number of systems in the grouping. | |
Deletes the system grouping. | |
Free this object that was created within the Enlighten libraries. |
bool Enlighten::SystemGrouping::AddInstance
public: bool AddInstance
(
Geo::s32 sysIdx,
Geo::s32 gId
)
Adds an instance with a given ID to a system.
Parameters
[in] | sysIdx | The system the instance gets added to. |
[in] | gId | The global ID of the instance. |
Returns
true if the instance is successfully added.
bool Enlighten::SystemGrouping::AddSystem
public: bool AddSystem
(
Geo::s32 capacity
)
Adds a system to the grouping with a maximum instance capacity.
Parameters
[in] | capacity | Maximum number of instances the added system can contain. |
Returns
true if the system is successfully added.