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:
eclips_e
2022-11-09 05:02:14 +08:00
committed by GitHub
parent eed3cc04ad
commit e09f0ffef0
11 changed files with 195 additions and 0 deletions

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