| 788 | } |
| 789 | |
| 790 | void Player::notifyWorkerAction(Creature& worker, CreatureActionType actionType) |
| 791 | { |
| 792 | uint32_t index = static_cast<uint32_t>(actionType); |
| 793 | if(index >= mWorkersActions.size()) |
| 794 | { |
| 795 | OD_LOG_ERR("Invalid index seatId=" + Helper::toString(getId()) + ", value=" + Helper::toString(index) + ", size=" + Helper::toString(mWorkersActions.size())); |
| 796 | return; |
| 797 | } |
| 798 | |
| 799 | mWorkersActions[index]++; |
| 800 | } |
| 801 | |
| 802 | void Player::notifyWorkerStopsAction(Creature& worker, CreatureActionType actionType) |
| 803 | { |
no test coverage detected