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:
parent
0771c86043
commit
6d4972933f
17 changed files with 1868 additions and 114 deletions
|
|
@ -180,6 +180,11 @@ int main()
|
|||
liveKernel.createProcess(1, liveGroups);
|
||||
}
|
||||
assert(!liveItems.findItem(0x106) && !liveItems.moveItem(0x106, 0, 0, 0));
|
||||
const auto originalShape = liveItems.findItem(0x100)->data.shape;
|
||||
assert(liveItems.setItemShape(0x100, 0x1234));
|
||||
assert(liveItems.findItem(0x100)->data.shape == 0x1234 && blockItems[0].data.shape == originalShape);
|
||||
assert(!liveItems.setItemShape(0x106, 0));
|
||||
assert(liveItems.setItemShape(0x100, originalShape));
|
||||
assert(!liveItems.moveItem(0x100, 0x8000, 0, 0));
|
||||
assert(liveItems.moveItem(0x100, 768, 511, 81));
|
||||
assert(liveItems.findItem(0x100)->data.x == 768 && blockItems[0].data.x == 511);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue