playMaker

Author Topic: Serializing FSMs?  (Read 1080 times)

jz87

  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Serializing FSMs?
« on: November 21, 2012, 05:04:24 AM »
I'm implementing unit actions that take place over time with FSMs and I would like to be able to include unfinished actions in the save game file. Is there a way to serialize the state of FSM so that when the game is reloaded the FSM gets reloaded to the exact state and avoid re-executing actions in that state that have already finished?

shinodan

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • Shinozone
Re: Serializing FSMs?
« Reply #1 on: November 21, 2012, 05:09:42 AM »
This works really well for me, super simple too.

http://whydoidoit.com/unityserializer/

shinodan

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • Shinozone
Re: Serializing FSMs?
« Reply #2 on: November 21, 2012, 05:18:22 AM »
Should have mentioned that the website has serializer actions for playmaker.
Thats why its a breeze :D