-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVirtualStorageConfig.cs
More file actions
39 lines (33 loc) · 1.15 KB
/
Copy pathVirtualStorageConfig.cs
File metadata and controls
39 lines (33 loc) · 1.15 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
using System;
using Rocket.API;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace VirtualStorage
{
public class VirtualStorageConfig : IRocketPluginConfiguration
{
public string DatabaseAddress = "localhost";
public ushort DatabasePort = 3306;
public string DatabaseUserName = "unturned";
public string DatabasePassword = "password";
public string DatabaseName = "unturned";
public string DatabaseTableName = "virtualstorage";
public int KeepaliveInterval = 10;
public int MaxContainersPerPlayer = 4;
public decimal OpenChargeCost = 50.0m;
public ushort FallbackAssetID = 328;
[XmlArray("Containers"), XmlArrayItem(ElementName = "Container")]
public List<Container> Containers = new List<Container>();
public void LoadDefaults()
{
if (Containers.Count == 0)
{
Containers = new List<Container>()
{
new Container(368, "Crate", 100.0m),
new Container(328, "Locker", 200.0m),
};
}
}
}
}