HandlerAttribute.cs 340 B

1234567891011121314151617181920212223242526
  1. using System;
  2. namespace Logic
  3. {
  4. [AttributeUsage(AttributeTargets.Class)]
  5. public class HandlerAttribute : Attribute
  6. {
  7. private short opcode;
  8. public HandlerAttribute(short opcode)
  9. {
  10. this.opcode = opcode;
  11. }
  12. public short Opcode
  13. {
  14. get
  15. {
  16. return this.opcode;
  17. }
  18. set
  19. {
  20. this.opcode = value;
  21. }
  22. }
  23. }
  24. }