2021-12-23 04:14:01 -08:00
|
|
|
using Robust.Shared.Prototypes;
|
2022-02-02 00:05:55 +11:00
|
|
|
using Robust.Shared.Utility;
|
2022-09-01 03:25:05 +01:00
|
|
|
using Robust.Shared.Maths;
|
2021-12-23 04:14:01 -08:00
|
|
|
|
|
|
|
|
namespace Content.Server.Salvage
|
|
|
|
|
{
|
|
|
|
|
[Prototype("salvageMap")]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class SalvageMapPrototype : IPrototype
|
2021-12-23 04:14:01 -08:00
|
|
|
{
|
|
|
|
|
[ViewVariables]
|
2022-04-03 02:01:22 +02:00
|
|
|
[IdDataFieldAttribute]
|
2021-12-23 04:14:01 -08:00
|
|
|
public string ID { get; } = default!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Relative directory path to the given map, i.e. `Maps/Salvage/test.yml`
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
[DataField("mapPath", required: true)]
|
2022-02-02 00:05:55 +11:00
|
|
|
public ResourcePath MapPath { get; } = default!;
|
2021-12-23 04:14:01 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
2022-09-01 03:25:05 +01:00
|
|
|
/// Map rectangle in world coordinates (to check if it fits)
|
2021-12-23 04:14:01 -08:00
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables]
|
2022-09-01 03:25:05 +01:00
|
|
|
[DataField("bounds", required: true)]
|
|
|
|
|
public Box2 Bounds { get; } = Box2.UnitCentered;
|
2021-12-23 04:14:01 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name for admin use
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
[DataField("name")]
|
|
|
|
|
public string Name { get; } = "";
|
|
|
|
|
}
|
|
|
|
|
}
|