Refactor USECODE tooling documentation and enhance map-viewer decompiler

- Updated the USECODE Tool Improvement Plan to focus on the map-viewer decompiler/editor, emphasizing its role as the primary development target for USECODE editing and recompilation.
- Revised the tooling comparison document to include the newer map-viewer decompiler, clarifying its purpose and distinguishing it from the Python parser.
- Introduced a new ClearAvatarInStasisProcessEntry structure in the entity dispatch entry header, along with related process creation and execution logic in the ProcessKernel.
- Implemented the setItemShape method in LiveFixedMapItems to allow dynamic shape updates for items.
- Enhanced the teleporter process to handle avatar stasis and integrated it into the game main loop, ensuring proper process management and state handling.
- Added tests for the new functionality, including shape setting and teleporter process behavior, to ensure correctness and stability.
This commit is contained in:
Maddo 2026-10-06 00:01:20 +02:00
commit 6d4972933f
17 changed files with 1868 additions and 114 deletions

View file

@ -854,6 +854,18 @@ bool LiveFixedMapItems::isGlobHatched(u16 eggItemNumber) const
return eggItemNumber < hatchedGlobIds_.size() && hatchedGlobIds_[eggItemNumber];
}
bool LiveFixedMapItems::setItemShape(u16 itemNumber, u16 shape)
{
const auto item = std::find_if(items_.begin(), items_.end(), [itemNumber](const auto& candidate) {
return candidate.itemNumber == itemNumber;
});
if (item == items_.end()) {
return false;
}
item->data.shape = shape;
return true;
}
bool LiveFixedMapItems::setItemFrame(u16 itemNumber, u8 frame)
{
const auto item = std::find_if(items_.begin(), items_.end(), [itemNumber](const auto& candidate) {