HolopadHologramComponent.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Serialization;
  3. using System.Numerics;
  4. namespace Content.Shared.Holopad;
  5. /// <summary>
  6. /// Holds data pertaining to holopad holograms
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  9. public sealed partial class HolopadHologramComponent : Component
  10. {
  11. /// <summary>
  12. /// Default RSI path
  13. /// </summary>
  14. [DataField]
  15. public string RsiPath = string.Empty;
  16. /// <summary>
  17. /// Default RSI state
  18. /// </summary>
  19. [DataField]
  20. public string RsiState = string.Empty;
  21. /// <summary>
  22. /// Name of the shader to use
  23. /// </summary>
  24. [DataField]
  25. public string ShaderName = string.Empty;
  26. /// <summary>
  27. /// The primary color
  28. /// </summary>
  29. [DataField]
  30. public Color Color1 = Color.White;
  31. /// <summary>
  32. /// The secondary color
  33. /// </summary>
  34. [DataField]
  35. public Color Color2 = Color.White;
  36. /// <summary>
  37. /// The shared color alpha
  38. /// </summary>
  39. [DataField]
  40. public float Alpha = 1f;
  41. /// <summary>
  42. /// The color brightness
  43. /// </summary>
  44. [DataField]
  45. public float Intensity = 1f;
  46. /// <summary>
  47. /// The scroll rate of the hologram shader
  48. /// </summary>
  49. [DataField]
  50. public float ScrollRate = 1f;
  51. /// <summary>
  52. /// The sprite offset
  53. /// </summary>
  54. [DataField]
  55. public Vector2 Offset = new Vector2();
  56. /// <summary>
  57. /// An entity that is linked to this hologram
  58. /// </summary>
  59. [ViewVariables, AutoNetworkedField]
  60. public EntityUid? LinkedEntity = null;
  61. }