mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
* Add RoomFill markers * weh * Also deez * Working * Randomised fills working * Fixes * Fix lack of prototypes * Fix tests * Fix tests? (cherry picked from commit f533a1a543af7784f7f9788073a6aae404761022)
38 lines
959 B
C#
38 lines
959 B
C#
using Content.Shared.Procedural;
|
|
using Content.Shared.Whitelist;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Procedural;
|
|
|
|
/// <summary>
|
|
/// Marker that indicates the specified room prototype should occupy this space.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class RoomFillComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Are we allowed to rotate room templates?
|
|
/// If the room is not a square this will only do 180 degree rotations.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool Rotation = true;
|
|
|
|
/// <summary>
|
|
/// Size of the room to fill.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public Vector2i Size;
|
|
|
|
/// <summary>
|
|
/// Rooms allowed for the marker.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityWhitelist? RoomWhitelist;
|
|
|
|
/// <summary>
|
|
/// Should any existing entities / decals be bulldozed first.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool ClearExisting;
|
|
}
|