1
0

SpiderComponent.cs 845 B

1234567891011121314151617181920212223
  1. using Content.Shared.Actions;
  2. using Robust.Shared.GameStates;
  3. using Robust.Shared.Prototypes;
  4. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  5. namespace Content.Shared.Spider;
  6. [RegisterComponent, NetworkedComponent]
  7. [Access(typeof(SharedSpiderSystem))]
  8. public sealed partial class SpiderComponent : Component
  9. {
  10. [ViewVariables(VVAccess.ReadWrite)]
  11. [DataField("webPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  12. public string WebPrototype = "SpiderWeb";
  13. [ViewVariables(VVAccess.ReadWrite)]
  14. [DataField("webAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  15. public string WebAction = "ActionSpiderWeb";
  16. [DataField] public EntityUid? Action;
  17. }
  18. public sealed partial class SpiderWebActionEvent : InstantActionEvent { }