I'm planing to use the new MetaStateMachine library for a game. But i want to create savegames with boost::serialization so i would need to serialize the state machine. There shouln't be too much to safe (the current state basically), but I can't see how I can do this. So, how can I do this?
Hi, For the moment, unfortunately not at all, though it is something I want to do since a while and pretty high on my internal priority queue. How urgently do you need it? In the worst case, it would be easy to temporarily add a setter for the current state (we have a getter). Regards, Christophe
Am 13.09.2010 22:04, schrieb Christophe Henry:
I'm planing to use the new MetaStateMachine library for a game. But i want to create savegames with boost::serialization so i would need to serialize the state machine. There shouln't be too much to safe (the current state basically), but I can't see how I can do this. So, how can I do this?
Hi,
For the moment, unfortunately not at all, though it is something I want to do since a while and pretty high on my internal priority queue. How urgently do you need it? In the worst case, it would be easy to temporarily add a setter for the current state (we have a getter).
Regards, Christophe
Hi, for the current project i just need 2 small state machines, so i can hardcode them. But in the future it would really like to use MSM, at thats impossible for me as long as i can't safe them. So it's not very urgent, but if i could use it in 2 month, it would be great. Regards Jona
participants (2)
-
Christophe Henry
-
Jonathan