-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfig.cs
More file actions
42 lines (37 loc) · 1.79 KB
/
Copy pathConfig.cs
File metadata and controls
42 lines (37 loc) · 1.79 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
using System;
using System.Linq;
using BepInEx.Configuration;
public static class ConfigHandler {
public static ConfigEntry<string> ConnectionsList;
public static ConfigEntry<int> ActiveSlot;
public static ConfigEntry<string> OfflineItems;
public static ConfigEntry<bool> PrintHammerCollision;
public static ConfigEntry<bool> PrintGravity;
public static void InitConfig(ConfigFile Config) {
ConnectionsList = Config.Bind(
"General", "ConnectionList",
"[{'slot':'SlotName','addressPort':'archipelago.gg:38281','password':'psswrd123'},"+
"{'slot':'AnotherPlayer','addressPort':'your.APServer.com','password':'top.scrt'},"+
"{'slot':'Player1','addressPort':'localhost:38281'}]",
"A list of connection details, so you don't have to re-enter them every time you play another slot. " +
"Has to be formatted as a JSON string."
);
ActiveSlot = Config.Bind(
"General", "ActiveSlot", -1,
"The ConnectionList entry to use for connecting to a sever. Begins with 0 as the first entry. Use -1 to disable connecting."
);
OfflineItems = Config.Bind(
"General", "OfflineItems",
"{'Gravity Reduction':2,'Goal Height Reduction':0,'Wind Trap':0}",
"Define a set inventory that should be used if the game is not connected to any Archipelago server."
);
PrintHammerCollision = Config.Bind(
"General", "PrintHammerCollision", false,
"Print every collision of the hammer with anything to the console. For debug purposes."
);
PrintGravity = Config.Bind(
"General", "PrintGravity", false,
"Print every change of gravity to the console. For debug purposes."
);
}
}