public bool OnHandleRoleLeaveWriteBankerList(NetCmdBase obj) { LC_Cmd_RoleLeaveBankerList ncb = (LC_Cmd_RoleLeaveBankerList)obj; if (ncb.Result) { TableWriteBankerList.MySeatIndex = 0xffffffff; tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_NiuNiu_LeaveBankerList_Sucess); MsgEventHandle.HandleMsg(pUOM); tagNiuNiuUpdateWriteBankerList pEvent = new tagNiuNiuUpdateWriteBankerList(TableWriteBankerList); MsgEventHandle.HandleMsg(pEvent); } else { tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_NiuNiu_LeaveBankerList_Failed_2); MsgEventHandle.HandleMsg(pUOM); } return(true); }
public bool OnHandleGetWritebankerList(NetCmdBase obj) { LC_Cmd_GetBankerList ncb = (LC_Cmd_GetBankerList)obj; TableWriteBankerList.SetInfo(ncb.dwMySeatIndex, ncb.TableWriteBankerList); //string str = string.Format("排队列表变化 : ({0}:{1}) ({2}:{3}) ({4}:{5}) ({6}:{7}) ({8}:{9})", // ncb.TableWriteBankerList[0].dwUserID, ncb.TableWriteBankerList[0].GlobelSum, // ncb.TableWriteBankerList[1].dwUserID,ncb.TableWriteBankerList[1].GlobelSum, // ncb.TableWriteBankerList[2].dwUserID, ncb.TableWriteBankerList[2].GlobelSum, // ncb.TableWriteBankerList[3].dwUserID,ncb.TableWriteBankerList[3].GlobelSum, // ncb.TableWriteBankerList[4].dwUserID,ncb.TableWriteBankerList[4].GlobelSum, // ncb.TableWriteBankerList[5].dwUserID, ncb.TableWriteBankerList[5].GlobelSum, // ncb.TableWriteBankerList[6].dwUserID,ncb.TableWriteBankerList[6].GlobelSum, // ncb.TableWriteBankerList[7].dwUserID, ncb.TableWriteBankerList[7].GlobelSum); //LogMgr.Log(str); //触发事件 tagNiuNiuUpdateWriteBankerList pEvent = new tagNiuNiuUpdateWriteBankerList(TableWriteBankerList); MsgEventHandle.HandleMsg(pEvent); return(true); }