Files
OldThink/Content.Shared/Nutrition/Components/SharedThirstComponent.cs

42 lines
1.0 KiB
C#
Raw Normal View History

2020-06-24 02:21:20 +02:00
using System;
2021-06-09 22:19:39 +02:00
using Content.Shared.Movement.Components;
2020-06-24 02:21:20 +02:00
using Robust.Shared.GameObjects;
using Robust.Shared.GameStates;
2020-06-24 02:21:20 +02:00
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
2020-06-24 02:21:20 +02:00
2021-06-09 22:19:39 +02:00
namespace Content.Shared.Nutrition.Components
2020-06-24 02:21:20 +02:00
{
[NetworkedComponent()]
public abstract class SharedThirstComponent : Component
2020-06-24 02:21:20 +02:00
{
public sealed override string Name => "Thirst";
[ViewVariables]
2020-06-24 02:21:20 +02:00
public abstract ThirstThreshold CurrentThirstThreshold { get; }
[Serializable, NetSerializable]
protected sealed class ThirstComponentState : ComponentState
{
public ThirstThreshold CurrentThreshold { get; }
public ThirstComponentState(ThirstThreshold currentThreshold)
2020-06-24 02:21:20 +02:00
{
CurrentThreshold = currentThreshold;
}
}
}
[NetSerializable, Serializable]
2020-06-24 02:21:20 +02:00
public enum ThirstThreshold : byte
{
// Hydrohomies
OverHydrated,
Okay,
Thirsty,
Parched,
Dead,
}
}