* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
29 lines
691 B
C#
29 lines
691 B
C#
#nullable enable
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Shared.GameObjects.Components.Mobs.State
|
|
{
|
|
public interface IMobStateComponent : IComponent
|
|
{
|
|
IMobState? CurrentState { get; }
|
|
|
|
bool IsAlive();
|
|
|
|
bool IsCritical();
|
|
|
|
bool IsDead();
|
|
|
|
bool IsIncapacitated();
|
|
|
|
(IMobState state, int threshold)? GetEarliestIncapacitatedState(int minimumDamage);
|
|
|
|
bool TryGetEarliestIncapacitatedState(
|
|
int minimumDamage,
|
|
[NotNullWhen(true)] out IMobState? state,
|
|
out int threshold);
|
|
|
|
void UpdateState(int damage, bool syncing = false);
|
|
}
|
|
}
|