-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConfig.cs
49 lines (36 loc) · 918 Bytes
/
Config.cs
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
47
48
49
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Terraria;
using Terraria.ModLoader.Config;
namespace TimeLimit {
public class TimeLimitConfig : ModConfig {
public override ConfigScope Mode => ConfigScope.ServerSide;
////
public bool DebugModeInfo = false;
public bool DebugModeNetInfo = false;
public List<string> Afflictions = new List<string> {
"Potion Sickness",
"Darkness",
"Bleeding",
"Weak",
"Broken Armor",
"Ichor",
"Chaos State",
"Stinky",
"Creative Shock"
};
[Range( -2048, 2048 )]
[DefaultValue( -384 )]
public int TimerDisplayX = -384;
[Range( -1024, 1024 )]
[DefaultValue( 256 )]
public int TimerDisplayY = -256;
////////////////
public override ModConfig Clone() {
var clone = (TimeLimitConfig)base.Clone();
clone.Afflictions = new List<string>( this.Afflictions );
return clone;
}
}
}