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); }
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); }
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); }
/// <summary> /// 更新当前场景信息 /// </summary> /// <param name="msg"></param> public void UpdateGoldPlayerGroundData(MsgGoldPlayground msg) { goldPlayerGround = msg; }