2022-02-06 13:14:41 -07:00
|
|
|
using Content.Server.Botany.Systems;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2020-10-26 23:19:46 +01:00
|
|
|
|
2022-02-06 13:14:41 -07:00
|
|
|
namespace Content.Server.Botany.Components;
|
|
|
|
|
// TODO: This should probably be merged with SliceableFood somehow or made into a more generic Choppable.
|
2022-09-06 17:08:19 +12:00
|
|
|
// Yeah this is pretty trash. also consolidating this type of behavior will avoid future transform parenting bugs (see #6090).
|
2020-10-26 23:19:46 +01:00
|
|
|
|
2022-02-06 13:14:41 -07:00
|
|
|
[RegisterComponent]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(LogSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class LogComponent : Component
|
2022-02-06 13:14:41 -07:00
|
|
|
{
|
|
|
|
|
[DataField("spawnedPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
public string SpawnedPrototype = "MaterialWoodPlank1";
|
2020-10-26 23:19:46 +01:00
|
|
|
|
2022-02-06 13:14:41 -07:00
|
|
|
[DataField("spawnCount")] public int SpawnCount = 2;
|
2020-10-26 23:19:46 +01:00
|
|
|
}
|