Holiday System (#3122)
This commit is contained in:
committed by
GitHub
parent
857c65d968
commit
9ee0ec4106
15
Content.Server/Holiday/Interfaces/IHolidayCelebrate.cs
Normal file
15
Content.Server/Holiday/Interfaces/IHolidayCelebrate.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Server.Holiday.Interfaces
|
||||
{
|
||||
public interface IHolidayCelebrate : IExposeData
|
||||
{
|
||||
void IExposeData.ExposeData(ObjectSerializer serializer) {}
|
||||
|
||||
/// <summary>
|
||||
/// This method is called before a round starts.
|
||||
/// Use it to do any fun festive modifications.
|
||||
/// </summary>
|
||||
void Celebrate(HolidayPrototype holiday);
|
||||
}
|
||||
}
|
||||
10
Content.Server/Holiday/Interfaces/IHolidayGreet.cs
Normal file
10
Content.Server/Holiday/Interfaces/IHolidayGreet.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Server.Holiday.Interfaces
|
||||
{
|
||||
public interface IHolidayGreet : IExposeData
|
||||
{
|
||||
void IExposeData.ExposeData(ObjectSerializer serializer) { }
|
||||
string Greet(HolidayPrototype holiday);
|
||||
}
|
||||
}
|
||||
14
Content.Server/Holiday/Interfaces/IHolidayManager.cs
Normal file
14
Content.Server/Holiday/Interfaces/IHolidayManager.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Content.Server.Holiday.Interfaces
|
||||
{
|
||||
public interface IHolidayManager
|
||||
{
|
||||
void Initialize();
|
||||
void RefreshCurrentHolidays();
|
||||
void DoGreet();
|
||||
void DoCelebrate();
|
||||
IEnumerable<HolidayPrototype> GetCurrentHolidays();
|
||||
bool IsCurrentlyHoliday(string holiday);
|
||||
}
|
||||
}
|
||||
11
Content.Server/Holiday/Interfaces/IHolidayShouldCelebrate.cs
Normal file
11
Content.Server/Holiday/Interfaces/IHolidayShouldCelebrate.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Server.Holiday.Interfaces
|
||||
{
|
||||
public interface IHolidayShouldCelebrate : IExposeData
|
||||
{
|
||||
void IExposeData.ExposeData(ObjectSerializer serializer) {}
|
||||
bool ShouldCelebrate(DateTime date, HolidayPrototype holiday);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user