GatherableSystem/Component (#8041)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
33
Content.Server/Gatherable/Components/GatherableComponent.cs
Normal file
33
Content.Server/Gatherable/Components/GatherableComponent.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Content.Shared.EntityList;
|
||||
using Content.Shared.Whitelist;
|
||||
|
||||
namespace Content.Server.Gatherable.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(GatherableSystem))]
|
||||
public sealed class GatherableComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Whitelist for specifying the kind of tools can be used on a resource
|
||||
/// Supports multiple tags.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("whitelist", required: true)]
|
||||
public EntityWhitelist? ToolWhitelist;
|
||||
|
||||
/// <summary>
|
||||
/// YAML example below
|
||||
/// (Tag1, Tag2, LootTableID1, LootTableID2 are placeholders for example)
|
||||
/// --------------------
|
||||
/// useMappedLoot: true
|
||||
/// whitelist:
|
||||
/// tags:
|
||||
/// - Tag1
|
||||
/// - Tag2
|
||||
/// mappedLoot:
|
||||
/// Tag1: LootTableID1
|
||||
/// Tag2: LootTableID2
|
||||
/// </summary>
|
||||
[DataField("loot")]
|
||||
public Dictionary<string, string>? MappedLoot = new();
|
||||
}
|
||||
Reference in New Issue
Block a user