Auto comp (#6416)
This commit is contained in:
@@ -14,9 +14,6 @@ namespace Content.Shared.Lathe
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
[Dependency] protected readonly IPrototypeManager PrototypeManager = default!;
|
||||
|
||||
public override string Name => "Lathe";
|
||||
|
||||
public bool CanProduce(LatheRecipePrototype recipe, int quantity = 1)
|
||||
{
|
||||
if (!_entMan.TryGetComponent(Owner, out SharedMaterialStorageComponent? storage)
|
||||
|
||||
@@ -15,8 +15,6 @@ namespace Content.Shared.Lathe
|
||||
[NetworkedComponent()]
|
||||
public class SharedLatheDatabaseComponent : Component, IEnumerable<LatheRecipePrototype>, ISerializationHooks
|
||||
{
|
||||
public override string Name => "LatheDatabase";
|
||||
|
||||
[DataField("recipes", customTypeSerializer: typeof(PrototypeIdListSerializer<LatheRecipePrototype>))] private List<string> _recipeIds = new();
|
||||
|
||||
private readonly List<LatheRecipePrototype> _recipes = new();
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Content.Shared.Lathe
|
||||
[NetworkedComponent()]
|
||||
public class SharedMaterialStorageComponent : Component, IEnumerable<KeyValuePair<string, int>>
|
||||
{
|
||||
public override string Name => "MaterialStorage";
|
||||
|
||||
[ViewVariables]
|
||||
protected virtual Dictionary<string, int> Storage { get; set; } = new();
|
||||
|
||||
|
||||
@@ -17,8 +17,6 @@ namespace Content.Shared.Lathe
|
||||
{
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
|
||||
public override string Name => "ProtolatheDatabase";
|
||||
|
||||
[DataField("protolatherecipes", customTypeSerializer:typeof(PrototypeIdListSerializer<LatheRecipePrototype>))]
|
||||
private List<string> _recipeIds = new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user