Ejemplo n.º 1
0
    public void ReSendEnterGoldFiledServer()
    {
        MsgGlobal mGl = new MsgGlobal();

        mGl.gold_playground = new MsgGoldPlayground();
        MsgGoldPlayground msg = mGl.gold_playground;

        msg.gold_playground_type = (TGoldPlaygroundType)curGroundType;
        msg.cost = curGroundCost;
        msg.min  = curGroundMinScore;
        msg.type = (uint)EJoinRoomType.EEnter;
        TCPNetWork.GetInstance().SendMsgToServer(ServerMsgKey.CLIENT_ENTER_GOLD_FILED, mGl);
    }
Ejemplo n.º 2
0
    public void SendExchangeRoomServer()
    {
        MsgGlobal mGl = new MsgGlobal();

        mGl.gold_playground = new MsgGoldPlayground();
        MsgGoldPlayground msg = mGl.gold_playground;

        msg.gold_playground_type = curGroundType;
        msg.cost = curGroundCost;
        msg.min  = curGroundMinScore;
        msg.type = (uint)EJoinRoomType.EExchange;
        TCPNetWork.GetInstance().SendMsgToServer(ServerMsgKey.CLIENT_GOLD_EXCHANGE_ROOM, mGl);
    }
Ejemplo n.º 3
0
    public void SendEnterGoldFiledServer(int groundType, uint cost, uint min)
    {
        SaveCurMode((TGoldPlaygroundType)groundType, cost, min);

        MsgGlobal mGl = new MsgGlobal();

        mGl.gold_playground = new MsgGoldPlayground();
        MsgGoldPlayground msg = mGl.gold_playground;

        msg.gold_playground_type = (TGoldPlaygroundType)groundType;
        msg.cost = cost;
        msg.min  = (uint)min;
        msg.type = (uint)EJoinRoomType.EEnter;
        TCPNetWork.GetInstance().SendMsgToServer(ServerMsgKey.CLIENT_ENTER_GOLD_FILED, mGl);
    }
Ejemplo n.º 4
0
 /// <summary>
 /// 更新当前场景信息
 /// </summary>
 /// <param name="msg"></param>
 public void UpdateGoldPlayerGroundData(MsgGoldPlayground msg)
 {
     goldPlayerGround = msg;
 }