LibEntity
Functions
create
Creates a new machine entity of the specified type.
function create(MACHINE_TYPE _machineType) internal returns (bytes32);
Parameters
Name | Type | Description |
---|---|---|
_machineType | MACHINE_TYPE | The type of machine to create |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes32 | entity The identifier for the newly created machine entity. |
remove
Deletes the records associated with a specified entity.
function remove(bytes32 _podEntity, bytes32 _entity) internal;
Parameters
Name | Type | Description |
---|---|---|
_podEntity | bytes32 | The identifier for the pod entity that the machine entity is associated with. |
_entity | bytes32 | The identifier for the entity whose records are to be deleted. |
isBuildableMachineType
Checks if the specified machine type is buildable
function isBuildableMachineType(MACHINE_TYPE _machineType) internal pure returns (bool);
Parameters
Name | Type | Description |
---|---|---|
_machineType | MACHINE_TYPE | The type of machine to verify |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | bool True if the machine type is among the predefined buildable types, false otherwise. |