public bool ProcessCmdPrestigeMedalInfo(GameClient client, int nID, byte[] bytes, string[] cmdParams) { try { if (cmdParams.Length != 1) { LogManager.WriteLog(LogTypes.Error, string.Format("指令参数个数错误, CMD={0}, Client={1}, Recv={2}", (TCPGameServerCmds)nID, Global.GetSocketRemoteEndPoint(client.ClientSocket, false), cmdParams.Length), null, true); return(false); } int roleID = Convert.ToInt32(cmdParams[0]); if (KuaFuManager.getInstance().ClientCmdCheckFaild(nID, client, ref roleID)) { LogManager.WriteLog(LogTypes.Error, string.Format("根据RoleID定位GameClient对象失败, CMD={0}, Client={1}, RoleID={2}", (TCPGameServerCmds)nID, Global.GetSocketRemoteEndPoint(client.ClientSocket, false), roleID), null, true); return(false); } PrestigeMedalData runeData = PrestigeMedalManager.GetPrestigeMedalData(client); client.sendCmd <PrestigeMedalData>(782, runeData, false); return(true); } catch (Exception ex) { DataHelper.WriteFormatExceptionLog(ex, Global.GetDebugHelperInfo(client.ClientSocket), false, false); } return(false); }
public static void initSetPrestigeMedalProps(GameClient client) { if (!GameFuncControlManager.IsGameFuncDisabled(GameFuncType.System1Dot4Dot1)) { if (GlobalNew.IsGongNengOpened(client, GongNengIDs.PrestigeMedal, false)) { PrestigeMedalData PrestigeMedalData = PrestigeMedalManager.GetPrestigeMedalData(client); PrestigeMedalManager.SetPrestigeMedalProps(client, PrestigeMedalData); } } }