31 lines
806 B
C#
31 lines
806 B
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;
|
|
|
|
namespace Content.Server.StationEvents.Components;
|
|
|
|
/// <summary>
|
|
/// Spawns random debris in space around a loaded grid.
|
|
/// Requires <see cref="LoadFarGridRuleComponent"/>.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(DebrisSpawnerRule))]
|
|
public sealed partial class DebrisSpawnerRuleComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// How many debris grids to spawn.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public int Count;
|
|
|
|
/// <summary>
|
|
/// Modifier for debris distance.
|
|
/// Should be between 3 and 10 generally.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public float DistanceModifier;
|
|
}
|