public Of(string name, string id, D data) { Name = name; Id = id; Data = data; FsmDef = (Def <D>)Def.Find(name); FsmState = FsmDef.Initial; printMsg("Init"); }
public static void Setup(string name, Action <Fsm.Def <D> > setup) { Fsm.Def <D> fsm = new Fsm.Def <D>(); setup(fsm); Def.Register(name, fsm); }