LogComponent.cs 760 B

1234567891011121314151617
  1. using Content.Server.Botany.Systems;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Server.Botany.Components;
  5. // TODO: This should probably be merged with SliceableFood somehow or made into a more generic Choppable.
  6. // Yeah this is pretty trash. also consolidating this type of behavior will avoid future transform parenting bugs (see #6090).
  7. [RegisterComponent]
  8. [Access(typeof(LogSystem))]
  9. public sealed partial class LogComponent : Component
  10. {
  11. [DataField("spawnedPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  12. public string SpawnedPrototype = "MaterialWoodPlank1";
  13. [DataField("spawnCount")] public int SpawnCount = 2;
  14. }