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>
This commit is contained in:
30
Content.Shared/Prayer/SharedPrayerSystem.cs
Normal file
30
Content.Shared/Prayer/SharedPrayerSystem.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user