rfg-modding / Nanoforge

A modding tool for Red Faction Guerilla Re-Mars-Tered
MIT License
31 stars 3 forks source link

Object deletion in map editor #139

Closed Moneyl closed 9 months ago

Moneyl commented 9 months ago

The first thing to decide is if this should be a soft deletion like in C++ NF or a full object deletion. I prefer hard deletion now since the old version had several instances of code using deleted objects because it wasn't checking the deleted flag. We just have to make sure the code removes all references of the object from other classes. At the moment that should be easy since the only references I can think of a parents and children referencing each other. Will have to be careful in the future to make sure any new code does this too.

Things to complete or check: