jtoppins / dct

Dynamic Campaign Tools - mission scripting framework for large persistent DCS missions
https://jtoppins.github.io/dct/
GNU Lesser General Public License v3.0
28 stars 14 forks source link

Add object ID writeback on spawn #233

Closed ricmzn closed 2 years ago

ricmzn commented 2 years ago

This replicates an anti-pattern of DCS of writing back IDs to the spawn data table to the DCS stubs. Currently, that does not cause any bugs, as the spawn data is deep-copied before use, so tests will pass, but if the deep copy is removed later, such as to re-use IDs when an asset is de-spawned and later spawned again, there needs to be special treatment to not save any runtime IDs when marshaling assets, so this change makes tests fail if the treatment is incomplete.