* 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>
31 lines
721 B
C#
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;
|
|
}
|
|
}
|
|
}
|