| 12345678910111213141516171819202122232425262728 |
- using System.Collections.Generic;
- namespace ET
- {
- public static class OpcodeHelper
- {
- private static readonly HashSet<ushort> ignoreDebugLogMessageSet = new HashSet<ushort>
- {
- OuterOpcode.C2R_Ping,
- OuterOpcode.R2C_Ping,
- };
- public static bool IsNeedDebugLogMessage(ushort opcode)
- {
- if (ignoreDebugLogMessageSet.Contains(opcode))
- {
- return false;
- }
- return true;
- }
- public static bool IsClientHotfixMessage(ushort opcode)
- {
- return opcode > 10000;
- }
- }
- }
|