1
0

SharedLogicGate.cs 688 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.DeviceLinking;
  3. /// <summary>
  4. /// Types of logic gates that can be used, determines how the output port is set.
  5. /// </summary>
  6. [Serializable, NetSerializable]
  7. public enum LogicGate : byte
  8. {
  9. Or,
  10. And,
  11. Xor,
  12. Nor,
  13. Nand,
  14. Xnor
  15. }
  16. /// <summary>
  17. /// Tells clients which logic gate layer to draw.
  18. /// </summary>
  19. [Serializable, NetSerializable]
  20. public enum LogicGateVisuals : byte
  21. {
  22. Gate,
  23. InputA,
  24. InputB,
  25. Output
  26. }
  27. /// <summary>
  28. /// Sprite layer for the logic gate.
  29. /// </summary>
  30. [Serializable, NetSerializable]
  31. public enum LogicGateLayers : byte
  32. {
  33. Gate,
  34. InputA,
  35. InputB,
  36. Output
  37. }