Prayer Fixes (#12752)

* fixe

* no more ahelp spam

* More fixes

* i hate

* typo fix

Co-authored-by: Just-a-Unity-Dev <just-a-unity-dev@users.noreply.github.com>
This commit is contained in:
eclips_e
2022-11-29 12:49:20 +08:00
committed by GitHub
parent d05b2a8e71
commit e923b15e27
4 changed files with 27 additions and 66 deletions

View File

@@ -1,30 +0,0 @@
using Robust.Shared.Serialization;
namespace Content.Shared.Prayer;
/// <summary>
/// Shared system for handling Prayers
/// </summary>
public abstract class SharedPrayerSystem : EntitySystem
{
public override void Initialize()
{
SubscribeNetworkEvent<PrayerTextMessage>(OnPrayerTextMessage);
}
protected virtual void OnPrayerTextMessage(PrayerTextMessage message, EntitySessionEventArgs eventArgs)
{
// Specific side code in target.
}
[Serializable, NetSerializable]
public sealed class PrayerTextMessage : EntityEventArgs
{
public string Text { get; }
public PrayerTextMessage(string text)
{
Text = text;
}
}
}