MOIS deserialization

Tibex

14-11-2013 12:40:51

Hello :),

I'm working on an airplane simulation. In it you can watch your replays, and the idea is that I record the user inputs and load them frame by frame so to speak. I serialize the mouse and keyboard states and that is all fine, but i can't deserialize them because they are not seralizable for binary nor have a parameterless constructor for xml or json.
Does anyone know a workaround or has had experience simmilar to this?

ty

Zonder

14-11-2013 13:44:05

Store them in your own structure after reading from mois. You should be translating them anyway into actions like RotateLeft that way you can remap the input devices without rewriting.