using System.Collections.Generic; namespace ETModel { public static class OpcodeHelper { private static readonly HashSet needDebugLogMessageSet = new HashSet { 1 }; public static bool IsNeedDebugLogMessage(ushort opcode) { return true; if (opcode > 1000) { return true; } if (needDebugLogMessageSet.Contains(opcode)) { return true; } return false; } public static bool IsClientHotfixMessage(ushort opcode) { return opcode > 10000; } } }