Item Refactor complete
This commit is contained in:
parent
219fbfb4c7
commit
24c168cf64
17 changed files with 78 additions and 41 deletions
|
|
@ -17,17 +17,22 @@ Actor::~Actor()
|
|||
|
||||
}
|
||||
|
||||
void Actor::performAction()
|
||||
void Actor::performValueAction(uint8_t value)
|
||||
{
|
||||
if(active)
|
||||
{
|
||||
ItemUpdateRequest request;
|
||||
request.type = ITEM_UPDATE_ACTOR;
|
||||
request.payload = ItemData(QRandomGenerator::global()->generate(), "Item", triggerValue);
|
||||
request.payload = ItemData(QRandomGenerator::global()->generate(), "Item", value);
|
||||
sigItemUpdate(request);
|
||||
}
|
||||
}
|
||||
|
||||
void Actor::performAction()
|
||||
{
|
||||
performValueAction(triggerValue);
|
||||
}
|
||||
|
||||
void Actor::makeActive()
|
||||
{
|
||||
active = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue