13234546tyu
This commit is contained in:
@@ -4,6 +4,9 @@ using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared._CP14.Fishing;
|
||||
|
||||
/// <summary>
|
||||
/// Prototype of fishing minigame stylesheet.
|
||||
/// </summary>
|
||||
[Prototype("CP14FishingMinigameStyle")]
|
||||
public sealed partial class CP14FishingMinigamePrototype : IPrototype
|
||||
{
|
||||
@@ -11,20 +14,33 @@ public sealed partial class CP14FishingMinigamePrototype : IPrototype
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[DataField(required: true)]
|
||||
public Dictionary<CP14FishingMinigameElement, FishingMinigameElementData>? Texture;
|
||||
public FishingMinigameElementData Background;
|
||||
|
||||
[DataField(required: true)]
|
||||
public FishingMinigameElementData FishIcon;
|
||||
|
||||
[DataField(required: true)]
|
||||
public FishingMinigameElementData Progressbar;
|
||||
|
||||
[DataField(required: true)]
|
||||
public FishingMinigameElementData Float;
|
||||
|
||||
[DataDefinition]
|
||||
public partial struct FishingMinigameElementData
|
||||
{
|
||||
/// <summary>
|
||||
/// Texture path.
|
||||
/// </summary>
|
||||
[DataField(required: true)] public ResPath Texture;
|
||||
[DataField] public Vector2 Size;
|
||||
|
||||
/// <summary>
|
||||
/// Size of a texture.
|
||||
/// </summary>
|
||||
[DataField(required: true)] public Vector2 Size;
|
||||
|
||||
/// <summary>
|
||||
/// Offset from top left corner. Starter position in the bottom.
|
||||
/// </summary>
|
||||
[DataField(required: true)] public Vector2 Offset;
|
||||
}
|
||||
}
|
||||
|
||||
public enum CP14FishingMinigameElement : byte
|
||||
{
|
||||
Background,
|
||||
DefaultFishIcon,
|
||||
Progressbar,
|
||||
Float,
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared._CP14.Fishing;
|
||||
|
||||
public abstract class CP14SharedFishingSystem : EntitySystem
|
||||
|
||||
@@ -4,12 +4,9 @@ using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared._CP14.Fishing.Components;
|
||||
|
||||
/// <summary>
|
||||
/// This is used for...
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class CP14FishingPondComponent : Component
|
||||
{
|
||||
[DataField]
|
||||
public ProtoId<EntityTablePrototype> LootTable;
|
||||
public ProtoId<EntityTablePrototype>? LootTable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user