Esempio n. 1
0
 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");
 }
Esempio n. 2
0
 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);
 }