LibOrder
Functions
create
Create a new order
function create(
address _creator,
MaterialId _materialId,
uint256 _amount,
bool _isTutorial,
uint32 _tutorialLevel,
uint256 _reward,
uint32 _duration,
uint32 _maxPlayers
) internal returns (bytes32);
Parameters
Name | Type | Description |
---|---|---|
_creator | address | Creator of the order |
_materialId | MaterialId | Material id to be produced |
_amount | uint256 | Amount of material to be produced in whole units |
_isTutorial | bool | Is the order a tutorial order |
_tutorialLevel | uint32 | Tutorial level of the order |
_reward | uint256 | Reward for completing the order in whole units |
_duration | uint32 | Duration of the order |
_maxPlayers | uint32 | Maximum number of players that can complete the order |
cancel
Cancel an order
function cancel(bytes32 _orderEntity) internal;
Parameters
Name | Type | Description |
---|---|---|
_orderEntity | bytes32 | Order to remove |