zz
This commit is contained in:
52
GlobalTorch/LegacyConfig.cs
Normal file
52
GlobalTorch/LegacyConfig.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using System.Xml.Serialization;
|
||||
using VRageMath;
|
||||
|
||||
namespace Global
|
||||
{
|
||||
[XmlRoot("Config")]
|
||||
public class LegacyConfig
|
||||
{
|
||||
public int BlockUpdateFrequency = 100;
|
||||
public int Capacity = 8;
|
||||
public bool EnableBoundingPatches = true;
|
||||
|
||||
public bool EnableDebugLogging = false;
|
||||
public bool EnableEntityNamePatch = true;
|
||||
public bool EnableNexusIntegration = false;
|
||||
public bool LogKeenToConsole = false;
|
||||
public int MaxDepth = 10;
|
||||
|
||||
public bool OverwriteLogs = false;
|
||||
|
||||
[XmlElement("Patches")] public PatchesConfig PatchesConfig = new PatchesConfig();
|
||||
public int SendDataMs = 120;
|
||||
|
||||
public Sync Sync = new Sync();
|
||||
public Vector3 WorldCenter = Vector3.Zero;
|
||||
public Vector3 WorldSize = new Vector3(40000000, 40000000, 40000000);
|
||||
public string InstanceName { get; set; } = "Unset Instance Name";
|
||||
public static LegacyConfig Instance => GlobalPlugin.LegacyConfig;
|
||||
public static PatchesConfig Patches => Instance.PatchesConfig;
|
||||
}
|
||||
|
||||
public class PatchesConfig
|
||||
{
|
||||
public bool DisableAllPatches = false;
|
||||
public bool EnableGridMerge = true;
|
||||
public bool EnableModAPIPatch = true;
|
||||
public float MaxDistanceRelativeDamping = 100f;
|
||||
}
|
||||
|
||||
public class Sync
|
||||
{
|
||||
public bool EnableSyncOverride = false;
|
||||
|
||||
public float RadiusMultiplier = 4f;
|
||||
public float SendFrequencyMultiplier = 2f;
|
||||
|
||||
public int StartRadius = 20;
|
||||
public int StartSendFrequency = 4;
|
||||
public int StartUpdateFrequency = 60;
|
||||
public float UpdateFrequencyMultiplier = 2f;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user