Files
tbd-station-14/Content.Shared/Prayer/SharedPrayerSystem.cs
eclips_e e09f0ffef0 Prayers Again (#10960)
* prayer system

* verbs

* localize

* Praying changes

* praying + cleanup

* Revert "praying + cleanup"

This reverts commit e8ee90f9f0be9a2eeb4d660359f0913c9e82aba3.

* Prayers (actually)

* forgot to remove this

* slight fixes

* veritius reviews

* I did it

* less HD images

Co-authored-by: Just-a-Unity-Dev <just-a-unity-dev@users.noreply.github.com>
2022-11-08 15:02:14 -06:00

31 lines
721 B
C#

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;
}
}
}