Salvage spawning adjustments and AABBs in prototypes (#10789)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user