Holiday System (#3122)
This commit is contained in:
committed by
GitHub
parent
857c65d968
commit
9ee0ec4106
22
Content.Server/Holiday/Greet/Custom.cs
Normal file
22
Content.Server/Holiday/Greet/Custom.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Content.Server.Holiday.Interfaces;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Server.Holiday.Greet
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public class Custom : IHolidayGreet
|
||||
{
|
||||
private string _greet;
|
||||
|
||||
void IExposeData.ExposeData(ObjectSerializer serializer)
|
||||
{
|
||||
serializer.DataField(ref _greet, "text", string.Empty);
|
||||
}
|
||||
|
||||
public string Greet(HolidayPrototype holiday)
|
||||
{
|
||||
return _greet;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user