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