Adds shoddy death match system.

It barely even works but oh well.
This commit is contained in:
Pieter-Jan Briers
2019-05-08 09:55:36 +02:00
parent a014b40972
commit 90620db5f8
8 changed files with 191 additions and 6 deletions

View File

@@ -112,6 +112,24 @@ namespace Content.Server.GameObjects
CurrentDamageState.EnterState(Owner);
currentstate = threshold;
Owner.RaiseEvent(new MobDamageStateChangedMessage(this));
}
}
/// <summary>
/// Fired when <see cref="SpeciesComponent.CurrentDamageState"/> changes.
/// </summary>
public sealed class MobDamageStateChangedMessage : EntitySystemMessage
{
public MobDamageStateChangedMessage(SpeciesComponent species)
{
Species = species;
}
/// <summary>
/// The species component that was changed.
/// </summary>
public SpeciesComponent Species { get; }
}
}