This repository was archived by the owner on Nov 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventManagerConfiguration.cs
More file actions
46 lines (42 loc) · 1.52 KB
/
EventManagerConfiguration.cs
File metadata and controls
46 lines (42 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using Rocket.API;
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace Game4Freak.EventManager
{
public class EventManagerConfiguration : IRocketPluginConfiguration
{
public bool freeRandomItemEventPreNotification;
public int freeRandomItemEventMinPlayers;
public string messageEventColor;
public string messageColor;
public bool useRandomEvents;
public bool useUICountdown;
public float countdownStartMin;
public bool resetOnReload;
public Int32 lastEventUnixTime;
public float minutesBetweenEvents;
[XmlArrayItem(ElementName = "notification")]
public List<float> minutesNotificationBefore;
[XmlArrayItem(ElementName = "event")]
public List<Event> events;
[XmlArrayItem(ElementName = "eventType")]
public List<EventType> eventTypes;
public void LoadDefaults()
{
freeRandomItemEventPreNotification = true;
freeRandomItemEventMinPlayers = 2;
messageEventColor = "cyan";
messageColor = "cyan";
useRandomEvents = true;
useUICountdown = false;
countdownStartMin = 10;
resetOnReload = true;
lastEventUnixTime = EventManager.getCurrentTime();
minutesBetweenEvents = 2;
minutesNotificationBefore = new List<float>() { 1, 0.5f };
events = new List<Event>();
eventTypes = new List<EventType>();
}
}
}