DaanVanYperen / artemis-odb-contrib

Drop-in extensions for artemis-odb. Prefab systems, components, networking, events!
MIT License
75 stars 19 forks source link

Singleton components do not deserialize with strict mode = false #144

Open bryanbrunt opened 3 years ago

bryanbrunt commented 3 years ago

Trying to deserialize a singleton GameSingleton component

FileInputStream fin = new FileInputStream("saves/game_save.json"); worldSerializationManager.load(fin, SaveFileFormat.class);

Config:

.with(new SingletonPlugin(false))

All of the fields on the deserialized Singleton are null.