OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

\ref IDs are incorrectly and poorly managed right now.

Open PJB3005 opened this issue 4 years ago • 0 comments

Currently the ID an object gets assigned is equal to Runtime.ReferenceIDs.Count. This means it is very easy to get two objects with the same ID.

Furthermore, ID -> object requires going through every ID in the game to actually resolve it. This is very slow.

OpenDream also does not emulate the behavior where these IDs are prefixed with a type code for the object. Not sure this is necessary.

PJB3005 avatar Aug 24 '21 05:08 PJB3005