Files
Delta-v/Content.Server/DeltaV/StationEvents/Components/LoadFarGridRuleComponent.cs
T
deltanedasanddeltanedas 5e812e0f27 listening post rewrite (#1369)
* rename pirate radio map to listening post, change spawner prototype

* refactor pirate radio spawn rule into DebrisSpawner and LoadFarGrid

* remove obsolete yml

* -m make listening post rule use new stuff and antag selection

* other changes

* fixes

* more

* fixy

* fix nan

* final fix

* what

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2024-06-13 18:40:41 +02:00

38 lines
1.0 KiB
C#

/*
* Delta-V - This file is licensed under AGPLv3
* Copyright (c) 2024 Delta-V Contributors
* See AGPLv3.txt for details.
*/
using Content.Server.StationEvents.Events;
using Robust.Shared.Utility;
namespace Content.Server.StationEvents.Components;
/// <summary>
/// Loads a grid far away from a random station.
/// Requires <see cref="RuleGridsComponent"/>.
/// </summary>
[RegisterComponent, Access(typeof(LoadFarGridRule))]
public sealed partial class LoadFarGridRuleComponent : Component
{
/// <summary>
/// Path to the grid to spawn.
/// </summary>
[DataField(required: true)]
public ResPath Path = new();
/// <summary>
/// Roughly how many AABBs away
/// </summary>
[DataField(required: true)]
public float DistanceModifier;
/// <summary>
/// "Stations of Unusual Size Constant", derived from the AABB.Width of Shoukou.
/// This Constant is used to check the size of a station relative to the reference point
/// </summary>
[DataField]
public float Sousk = 123.44f;
}