Holiday System (#3122)

This commit is contained in:
Vera Aguilera Puerto
2021-02-12 10:45:22 +01:00
committed by GitHub
parent 857c65d968
commit 9ee0ec4106
36 changed files with 1086 additions and 24 deletions

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

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

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

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