Пример #1
0
//     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);
    }
Пример #2
0
    /// <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);
    }