mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 12:39:52 +00:00
63 lines
1.7 KiB
C#
63 lines
1.7 KiB
C#
using QSB.Animation;
|
|
using QSB.ConversationSync;
|
|
using QSB.DeathSync;
|
|
using QSB.ElevatorSync;
|
|
using QSB.GeyserSync;
|
|
using QSB.Instruments.Events;
|
|
using QSB.OrbSync;
|
|
using QSB.TimeSync;
|
|
using QSB.Tools;
|
|
using QSB.TransformSync;
|
|
using System.Collections.Generic;
|
|
|
|
namespace QSB.Events
|
|
{
|
|
public static class EventList
|
|
{
|
|
public static bool Ready { get; private set; }
|
|
|
|
private static List<IQSBEvent> _eventList = new List<IQSBEvent>();
|
|
|
|
public static void Init()
|
|
{
|
|
_eventList = new List<IQSBEvent>
|
|
{
|
|
new PlayerReadyEvent(),
|
|
new PlayerJoinEvent(),
|
|
new PlayerSuitEvent(),
|
|
new PlayerFlashlightEvent(),
|
|
new PlayerSignalscopeEvent(),
|
|
new PlayerTranslatorEvent(),
|
|
new PlayerProbeLauncherEvent(),
|
|
new PlayerProbeEvent(),
|
|
new PlayerSectorEvent(),
|
|
new PlayerLeaveEvent(),
|
|
new PlayerDeathEvent(),
|
|
new PlayerStatesRequestEvent(),
|
|
new ElevatorEvent(),
|
|
new GeyserEvent(),
|
|
new ServerTimeEvent(),
|
|
new AnimTriggerEvent(),
|
|
new OrbSlotEvent(),
|
|
new OrbUserEvent(),
|
|
new ConversationEvent(),
|
|
new ConversationStartEndEvent(),
|
|
new PlayInstrumentEvent()
|
|
};
|
|
|
|
_eventList.ForEach(ev => ev.SetupListener());
|
|
|
|
Ready = true;
|
|
}
|
|
|
|
public static void Reset()
|
|
{
|
|
Ready = false;
|
|
|
|
_eventList.ForEach(ev => ev.CloseListener());
|
|
|
|
_eventList = new List<IQSBEvent>();
|
|
}
|
|
}
|
|
}
|