-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Config.cs
55 lines (42 loc) · 2.06 KB
/
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
50
51
52
53
54
55
using CommonLib.Config;
using Vintagestory.API.Config;
using Vintagestory.API.Server;
namespace PlayerCorpse
{
[Config("playercorpse.json")]
public class Config
{
[Description("Burns in 15 seconds. LET EVERYTHING BURN IN LAVA!")]
public bool CanFired { get; set; } = false;
[Description("Has 100 hp, can be broken by another player")]
public bool HasHealth { get; set; } = false;
public bool CreateCorpse { get; set; } = true;
public string[] SaveInventoryTypes { get; set; } =
[
GlobalConstants.hotBarInvClassName,
GlobalConstants.backpackInvClassName,
GlobalConstants.craftingInvClassName,
GlobalConstants.mousecursorInvClassName,
GlobalConstants.characterInvClassName
];
[Privileges]
public string NeedPrivilegeForReturnThings { get; set; } = Privilege.gamemode;
[Range(0, int.MaxValue)]
public int MaxDeathContentSavedPerPlayer { get; set; } = 10;
[Description("auto mode will try to resolve conflicts with other mods")]
[Strings("auto", "always", "none")]
public string CreateWaypoint { get; set; } = "auto";
[Description("circle, bee, cave, home, ladder, pick, rocks, ruins, spiral, star1, star2, trader, vessel, etc")]
public string WaypointIcon { get; set; } = "bee";
[Description("https://www.99colors.net/dot-net-colors")]
public string WaypointColor { get; set; } = "crimson";
public bool PinWaypoint { get; set; } = true;
public bool DebugMode { get; set; } = false;
[Description("Makes corpses available to everyone after N in-game hours (0 - always, below zero - never)")]
public int FreeCorpseAfterTime { get; set; } = 240;
[Description("Corpse collection time in seconds")]
public float CorpseCollectionTime { get; set; } = 1;
[Description("If you set it to false, all already existing compasses will turn into an unknown item")]
public bool CorpseCompassEnabled { get; set; } = true;
}
}