Salvage spawning adjustments and AABBs in prototypes (#10789)

This commit is contained in:
20kdc
2022-09-01 03:25:05 +01:00
committed by GitHub
parent 68ff34c538
commit b76f88ccc5
8 changed files with 149 additions and 44 deletions

View File

@@ -1,5 +1,6 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
using Robust.Shared.Maths;
namespace Content.Server.Salvage
{
@@ -18,11 +19,11 @@ namespace Content.Server.Salvage
public ResourcePath MapPath { get; } = default!;
/// <summary>
/// Size *from 0,0* in units of the map (used to determine if it fits)
/// Map rectangle in world coordinates (to check if it fits)
/// </summary>
[ViewVariables]
[DataField("size", required: true)]
public float Size { get; } = 1.0f; // TODO: Find a way to figure out the size automatically
[DataField("bounds", required: true)]
public Box2 Bounds { get; } = Box2.UnitCentered;
/// <summary>
/// Name for admin use