public bool OnHandleAddGlobel(NetCmdBase obj) { LC_Cmd_DialRoleBetGlobel ncb = (LC_Cmd_DialRoleBetGlobel)obj; if (ncb.Result) { TableUpdateInfo.GlobelNum[ncb.Index] += ncb.AddGlobel; TableGlobelSum[ncb.Index] += ncb.AddGlobel; tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Dial_AddGlobel_Sucess); MsgEventHandle.HandleMsg(pUOM); } else { if (TableBankerUserInfo.UserInfo.dwUserID == 0) { tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Dial_AddGlobel_Failed_3); MsgEventHandle.HandleMsg(pUOM); } else { tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Dial_AddGlobel_Failed_4); MsgEventHandle.HandleMsg(pUOM); } } tagDialAddGlobel pEvent = new tagDialAddGlobel(TableStates, TableUpdateInfo, AreaData, ncb.Result, TableGlobelSum); MsgEventHandle.HandleMsg(pEvent); return(true); }
public bool OnHandleRoleBetGlobelByLog(NetCmdBase obj) { LC_Cmd_DialRoleBetGlobelByLog ncb = (LC_Cmd_DialRoleBetGlobelByLog)obj; if (ncb.Result) { //继续下注成功了 for (Byte i = 0; i < FishDataInfo.MAX_Dial_ClientSum; ++i) { TableGlobelSum[i] += ncb.betGlobel[i]; TableUpdateInfo.GlobelNum[i] += ncb.betGlobel[i]; LogTableGlobelSum[i] = 0; } tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Dial_AddGlobel_Sucess); MsgEventHandle.HandleMsg(pUOM); } else { //玩家继续下注失败 无法下注 if (TableBankerUserInfo.UserInfo.dwUserID == 0) { tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Dial_AddGlobel_Failed_3); MsgEventHandle.HandleMsg(pUOM); } else { tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Dial_AddGlobel_Failed_4); MsgEventHandle.HandleMsg(pUOM); } } tagDialAddGlobel pEvent = new tagDialAddGlobel(TableStates, TableUpdateInfo, AreaData, ncb.Result, TableGlobelSum); MsgEventHandle.HandleMsg(pEvent); return(true); }