This commit caused _id and some other properties of the classes GameLogicEngineCoil, GameLogicEngineSwitch and GameLogicEngineLamp to not be serialized by Unity, which led to this issue in the VisualPinball.Engine.Mpf repository. This pull request adds new subclasses of the classes in question which implement Unity's ISerializationCallbackReceiver interface to serialize their properties without making them public again and without introducing a dependency on Unity to the core VisualPinball.Engine project. These new classes are used in this pull request to fix the aforementioned issue.
This commit caused
_id
and some other properties of the classesGameLogicEngineCoil
,GameLogicEngineSwitch
andGameLogicEngineLamp
to not be serialized by Unity, which led to this issue in the VisualPinball.Engine.Mpf repository. This pull request adds new subclasses of the classes in question which implement Unity's ISerializationCallbackReceiver interface to serialize their properties without making them public again and without introducing a dependency on Unity to the core VisualPinball.Engine project. These new classes are used in this pull request to fix the aforementioned issue.