// private void onOpenForm() // { // UI_GodSoulMgr.Inst.onClose(); // UI_FormMgr.Inst.SetGodSoulID(m_Item.getId()); // } public void SendProtocol(/*, int FormationNum*/ int herokey) { CAddTroop battle = new CAddTroop(); battle.trooptype = ObjectSelf.GetInstance().Teams.GetFormationType(); battle.herokey = herokey; battle.locationid = UI_GodSoulMgr.Inst.GetSelectNo(); IOControler.GetInstance().SendProtocol(battle); }
/// <summary> /// 上阵或者换人 /// </summary> /// <param name="troopid">阵型编号</param> /// <param name="FormationNum">上阵编号</param> public void SendProtocol(int troopid /*, int FormationNum*/, int herokey) { CAddTroop battle = new CAddTroop(); battle.trooptype = ObjectSelf.GetInstance().Teams.GetFormationType(); battle.herokey = herokey; battle.troopid = troopid; battle.locationid = m_SelectNo; IOControler.GetInstance().SendProtocol(battle); }