Чертежи

This commit is contained in:
BIGZi0348
2024-12-14 13:02:28 +03:00
parent 104bd691cb
commit 9fff4f22e4
18 changed files with 271 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
using Content.Shared.Research.Prototypes;
using Content.Shared.Research.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Research.Components;
/// <summary>
/// This is used for an item that is inserted directly into a given lathe to provide it with a recipe.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(BlueprintSystem))]
public sealed partial class BlueprintComponent : Component
{
/// <summary>
/// The recipes that this blueprint provides.
/// </summary>
[DataField(required: true)]
public HashSet<ProtoId<LatheRecipePrototype>> ProvidedRecipes = new();
}

View File

@@ -0,0 +1,18 @@
using Content.Shared.Research.Systems;
using Content.Shared.Whitelist;
using Robust.Shared.GameStates;
namespace Content.Shared.Research.Components;
/// <summary>
/// This is used for a lathe that can utilize <see cref="BlueprintComponent"/>s to gain more recipes.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(BlueprintSystem))]
public sealed partial class BlueprintReceiverComponent : Component
{
[DataField]
public string ContainerId = "blueprint";
[DataField(required: true)]
public EntityWhitelist Whitelist = new();
}