private void MakeFSM() { fsm = new FsmSystem <StateID>(); NormalMove crawl = new NormalMove(this); fsm.addState(StateID.CRAWL, crawl); StealMode steal = new StealMode(this); fsm.addState(StateID.STEAL, steal); fsm.init(StateID.CRAWL); }
internal void StartScript(string target, string shopName, short x, short y, short fh, StealMode mode, ShopType shopType) { client.StartScript(target, shopName, x, y, fh, mode, shopType); }
//TODO: This shouldn't be in client internal void StartScript(string target, string shopName, short x, short y, short fh, StealMode mode, ShopType shopType) { //change to w.e you wanted? not exactly sure.. :D var script = ScriptManager.Get <SpotStealer>(); script.Target = target; script.ShopName = shopName; script.X = x; script.Y = y; script.Fh = fh; script.Mode = mode; script.Type = shopType; ScriptManager.Get <SpotStealer>().Start(); }