The-International-Open-Source
The-International-Open-Source copied to clipboard
Hauling system refactor
- Tasks created by requesters and providers
- providers may be a withdraw, pickup or offer task
- Providers make create withdraw, pickup or offer tasks
- Withdraw and pickup tasks are to be fulfilled ASAP by haulers, or any needy creep
- Offer tasks may be responded to by any needy creep
- requesters may only be transfer
- Key of ID
- Properties of P as Priority, ID, RT as ResourceType, T as target, R as responder, C as Coord of target
- When a hauler already has a task, it should search each tick for new ones it can easily fulfill
- Ensure individuals like haulers can decide what tasks they respond to, such as not taking tasks at a source that isn’t theirs
- Responders take on a task ID
- Tasks are stored in room global or on the room
- properties
- needsFull: boolean, whether the task should accepted even if the responder has more capacity than needed