fix some shit, add triangle count
This commit is contained in:
@@ -4,4 +4,4 @@ public class TransientConfig : IMareConfiguration
|
||||
{
|
||||
public Dictionary<string, HashSet<string>> PlayerPersistentTransientCache { get; set; } = new(StringComparer.Ordinal);
|
||||
public int Version { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
namespace MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
public class TriangleCalculationConfig : IMareConfiguration
|
||||
{
|
||||
public ConcurrentDictionary<string, long> TriangleDictionary { get; set; } = new(StringComparer.OrdinalIgnoreCase);
|
||||
public int Version { get; set; } = 0;
|
||||
}
|
||||
@@ -11,4 +11,4 @@ public class TransientConfigService : ConfigurationServiceBase<TransientConfig>
|
||||
}
|
||||
|
||||
protected override string ConfigurationName => ConfigName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
namespace MareSynchronos.MareConfiguration;
|
||||
|
||||
public class TriangleCalculationConfigService : ConfigurationServiceBase<TriangleCalculationConfig>
|
||||
{
|
||||
public const string ConfigName = "trianglecache.json";
|
||||
|
||||
public TriangleCalculationConfigService(string configDir) : base(configDir) { }
|
||||
|
||||
protected override string ConfigurationName => ConfigName;
|
||||
}
|
||||
Reference in New Issue
Block a user