Files
tbd-station-14/Content.Server/Worldgen/Components/LocalityLoaderComponent.cs
Moony e91fc652a3 Dynamic space world generation and debris. (#15120)
* World generation (squash)

* Test fixes.

* command

* o

* Access cleanup.

* Documentation touchups.

* Use a prototype serializer for BiomeSelectionComponent

* Struct enumerator in SimpleFloorPlanPopulatorSystem

* Safety margins around PoissonDiskSampler, cookie acquisition methodologies

* Struct enumerating PoissonDiskSampler; internal side

* Struct enumerating PoissonDiskSampler: Finish it

* Update WorldgenConfigSystem.cs

awa

---------

Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
Co-authored-by: 20kdc <asdd2808@gmail.com>
2023-05-16 06:36:45 -05:00

20 lines
678 B
C#

using Content.Server.Worldgen.Systems;
namespace Content.Server.Worldgen.Components;
/// <summary>
/// This is used for sending a signal to the entity it's on to load contents whenever a loader gets close enough.
/// Does not support unloading.
/// </summary>
[RegisterComponent]
[Access(typeof(LocalityLoaderSystem))]
public sealed class LocalityLoaderComponent : Component
{
/// <summary>
/// The maximum distance an entity can be from the loader for it to not load.
/// Once a loader is closer than this, the event is fired and this component removed.
/// </summary>
[DataField("loadingDistance")] public int LoadingDistance = 32;
}