NateTheGreatt / bitECS

Functional, minimal, data-oriented, ultra-high performance ECS library written in JavaScript
Mozilla Public License 2.0
902 stars 83 forks source link

Add STRICT deserialization mode and corresponding tests #157

Open AwdiTech opened 1 month ago

AwdiTech commented 1 month ago

Description

This pull request introduces a new deserialization mode called STRICT in the bitECS library. The STRICT mode ensures that entities retain their original entity IDs during the deserialization process, even if some entities have been removed.

Changes Made

Testing

The new functionality has been tested and verified with the following test case:

This test case ensures that the deserialized entities retain their original entity IDs, even if some entities have been removed.

Notes

This contribution aims to enhance the flexibility and reliability of the bitECS library's deserialization process. We look forward to feedback and suggestions from the maintainers and community.