public tagCarAddGlobel(CarTableStates TableStates, CarTableUpdateInfo TableGlobelInfo, bool Result) : base(MsgEventType.MET_Car_AddGlobel) { this.TableStates = TableStates; this.TableGlobelInfo = TableGlobelInfo; this.Result = Result; }
public tagCarStatesChange(CarTableStates TableStates, CarTableUpdateInfo TableGlobelInfo, CarVipSeatList OldVipSeatInfo, CarVipSeatList TableVipSeatInfo, CarWriteBankerList TableWriteBankerList, CarBankerUserInfo TableBankerUserInfo, CarGameLog TableGameLog, Byte TableResult) : base(MsgEventType.MET_Car_StatesChange) { this.TableStates = TableStates; this.TableGlobelInfo = TableGlobelInfo; this.TableVipSeatInfo = TableVipSeatInfo; this.TableWriteBankerList = TableWriteBankerList; this.TableBankerUserInfo = TableBankerUserInfo; this.TableGameLog = TableGameLog; this.OldVipSeatInfo = OldVipSeatInfo; this.TableResult = TableResult; }
public tagCarJoin(Byte TableUpdateSec, CarTableStates TableStates, CarTableUpdateInfo TableGlobelInfo, CarBankerUserInfo TableBankerInfo, CarWriteBankerList TableWriteBankerList, CarVipSeatList TableVipSeatInfo, CarGameLog TableGameLog, Byte TableResult) : base(MsgEventType.MET_Car_Join) { this.TableUpdateSec = TableUpdateSec; this.TableStates = TableStates; this.TableGlobelInfo = TableGlobelInfo; this.TableBankerInfo = TableBankerInfo;//庄家数据 this.TableWriteBankerList = TableWriteBankerList; this.TableVipSeatInfo = TableVipSeatInfo; this.TableGameLog = TableGameLog; this.TableResult = TableResult; }
public bool OnHandleUpdateTable(NetCmdBase obj) { LC_Cmd_CarTableUpdate ncb = (LC_Cmd_CarTableUpdate)obj; TableStates = CarTableStates.CTS_Begin;//只有在开始阶段 才会进行更新 TableUpdateInfo.SetInfo(ncb.TableBetAreaGlobel); //事件 tagCarTableInfoChange pEvent = new tagCarTableInfoChange(TableStates, TableUpdateInfo); MsgEventHandle.HandleMsg(pEvent); return(true); }
public bool OnHandleTableJoinEnd(NetCmdBase obj) { LC_Cmd_CarTableJoinEnd ncb = (LC_Cmd_CarTableJoinEnd)obj; TableResult = ncb.TableResultIndex; TableUpdateInfo.SetInfo(ncb.TableBetAreaGlobel); TableStates = CarTableStates.CTS_End;//等待关闭状态 for (int i = 0; i < FishDataInfo.MAX_Car_ClientSum; ++i) { TableGlobelSum[i] = 0; } //金币变化 if (ncb.BankerUserGlobelInfo.dwUserID == TableBankerUserInfo.UserInfo.dwUserID) { TableBankerUserInfo.UserInfo.GlobelSum = ncb.BankerUserGlobelInfo.dwGlobelSum; } for (Byte i = 0; i < FishDataInfo.MAX_Car_BankerShowSum; ++i) { if (TableWriteBankerList.List[i] != null && ncb.BankerListGlobelInfo[i].dwUserID == TableWriteBankerList.List[i].dwUserID) { TableWriteBankerList.List[i].GlobelSum = ncb.BankerListGlobelInfo[i].dwGlobelSum; } } CarVipSeatList pOldlist = new CarVipSeatList(); for (Byte i = 0; i < FishDataInfo.MAX_Car_VipSeat; ++i) { if (TableVipSeatInfo.List[i] != null && ncb.VipGlobelInfo[i].dwUserID == TableVipSeatInfo.List[i].dwUserID) { pOldlist.List[i] = TableVipSeatInfo.List[i]; TableVipSeatInfo.List[i].GlobelSum = ncb.VipGlobelInfo[i].dwGlobelSum; } } TableGameLog.GameLog = ncb.TableResultLog; TableGameLog.GameSum = ncb.TableGameSum; LogMgr.Log(string.Format("玩家金币变化 {0}", ncb.AddGlobelSum)); //触发事件 tagCarStatesChange pEvent = new tagCarStatesChange(TableStates, TableUpdateInfo, pOldlist, TableVipSeatInfo, TableWriteBankerList, TableBankerUserInfo, TableGameLog, TableResult); MsgEventHandle.HandleMsg(pEvent); return(true); }
public void EnterGameCar(byte TableUpdateSec, CarTableStates TableStates, CarTableUpdateInfo TableGlobelInfo, CarBankerUserInfo TableBankerInfo, CarWriteBankerList TableWriteBankerList, CarVipSeatList TableVipSeatInfo, CarGameLog TableGameLog, byte TableResult) { m_GameCarUI.EnterGameCar(TableUpdateSec, TableStates, TableGlobelInfo, TableBankerInfo, TableWriteBankerList, TableVipSeatInfo, TableGameLog, TableResult); }
public void CarStatusChange(CarTableStates TableStates, CarTableUpdateInfo TableGlobelInfo, CarVipSeatList OldVipSeatInfo, CarVipSeatList TableVipSeatInfo, CarWriteBankerList TableWriteBankerList, CarBankerUserInfo TableBankerUserInfo, CarGameLog TableGameLog, byte TableResult) { m_GameCarUI.CarStatusChange( TableStates, TableGlobelInfo, OldVipSeatInfo, TableVipSeatInfo, TableWriteBankerList, TableBankerUserInfo, TableGameLog, TableResult); }
public bool OnHandleTableJoinBegin(NetCmdBase obj) { LC_Cmd_CarTableJoinBegin ncb = (LC_Cmd_CarTableJoinBegin)obj; TableStates = CarTableStates.CTS_Begin; TableUpdateInfo = new CarTableUpdateInfo(); UInt64[] BetGlobel = new UInt64[FishDataInfo.MAX_Car_ClientSum]; LogTableGlobelSum = TableGlobelSum;//记录上次押注的情况 for (int i = 0; i < FishDataInfo.MAX_Car_ClientSum; ++i) { TableGlobelSum[i] = 0; BetGlobel[i] = 0; } TableUpdateInfo.SetInfo(BetGlobel); TableBankerUserInfo.GameSum++; //触发事件 tagCarStatesChange pEvent = new tagCarStatesChange(TableStates, TableUpdateInfo, null, TableVipSeatInfo, TableWriteBankerList, TableBankerUserInfo, TableGameLog, 0); MsgEventHandle.HandleMsg(pEvent); return(true); }
//处理函数 public bool OnHandleRoleJoinTable(NetCmdBase obj) { LC_Cmd_CarRoleJoinTable ncb = (LC_Cmd_CarRoleJoinTable)obj; if (ncb.Result) { //赋值 将消息里携带的数据 赋值到结构里面去 TableStates = (CarTableStates)ncb.TableStates; TableUpdateInfo.SetInfo(ncb.TableBetAreaGlobel); TableBankerUserInfo.SetInfo(ncb.TableBankerInfo, ncb.TableBankerUseGameSum); TableWriteBankerList.SetInfo(0xffffffff, ncb.TableWriteBankerList); TableVipSeatInfo.SetInfo(ncb.VipSeatList); for (Byte i = 0; i < FishDataInfo.MAX_Car_ClientSum; ++i) { TableGlobelSum[i] = 0; LogTableGlobelSum[i] = 0; } IsInBankerList = false; TableResult = ncb.TableResultIndex; TableGameLog.GameLog = ncb.TableResultLog; TableGameLog.GameSum = ncb.TableGameSum; tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Car_JoinRoom_Sucess); MsgEventHandle.HandleMsg(pUOM); tagCarJoin pEvent = new tagCarJoin(ncb.TableStatesUpdateSec, TableStates, TableUpdateInfo, TableBankerUserInfo, TableWriteBankerList, TableVipSeatInfo, TableGameLog, TableResult); MsgEventHandle.HandleMsg(pEvent); } else { //进入房间失败了 tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Car_JoinRoom_Failed_2); MsgEventHandle.HandleMsg(pUOM); } return(true); }
public tagCarTableInfoChange(CarTableStates TableStates, CarTableUpdateInfo TableGlobelInfo) : base(MsgEventType.MET_Car_Update) { this.TableStates = TableStates; this.TableGlobelInfo = TableGlobelInfo; }