OpcodeHelper.cs 446 B

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. namespace Model
  3. {
  4. public static class OpcodeHelper
  5. {
  6. private static readonly HashSet<ushort> needDebugLogMessageSet = new HashSet<ushort>
  7. {
  8. Opcode.S2C_StartGame,
  9. };
  10. public static bool IsNeedDebugLogMessage(ushort opcode)
  11. {
  12. //return true;
  13. if (opcode > 1000)
  14. {
  15. return true;
  16. }
  17. if (needDebugLogMessageSet.Contains(opcode))
  18. {
  19. return true;
  20. }
  21. return false;
  22. }
  23. }
  24. }