mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
34 lines
888 B
C#
34 lines
888 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.NPC.Queries;
|
|
|
|
/// <summary>
|
|
/// Utility queries that run regularly to update an NPC without re-doing their thinking logic.
|
|
/// </summary>
|
|
[DataDefinition]
|
|
public sealed partial class UtilityService
|
|
{
|
|
/// <summary>
|
|
/// Identifier to use for this service. This is used to track its cooldown.
|
|
/// </summary>
|
|
[DataField("id", required: true)]
|
|
public string ID = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Prototype of the utility query.
|
|
/// </summary>
|
|
[DataField("proto", required: true)]
|
|
public ProtoId<UtilityQueryPrototype> Prototype;
|
|
|
|
[DataField]
|
|
public float MinCooldown = 0.25f;
|
|
|
|
[DataField]
|
|
public float MaxCooldown = 0.60f;
|
|
|
|
/// <summary>
|
|
/// Key to update with the utility query.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public string Key = string.Empty;
|
|
}
|