OpcodeHelper.cs 419 B

12345678910111213141516171819202122232425
  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> { 1 };
  7. public static bool IsNeedDebugLogMessage(ushort opcode)
  8. {
  9. //return true;
  10. if (opcode > 1000)
  11. {
  12. return true;
  13. }
  14. if (needDebugLogMessageSet.Contains(opcode))
  15. {
  16. return true;
  17. }
  18. return false;
  19. }
  20. }
  21. }