Add MCDO (#80)
* update api * mcd online editor impl * most of chara data hub impl * some state of things * some refactoring * random bullshit go * more nearby impl * add uid to peformance msg * cleanup/homogenization * some split, update nuget packages * migrate to latest packages where possible, remove lz4net, do some split, idk * some polish and cleanup * more cleanup, beautification, etc. * fixes and cleanups --------- Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
This commit is contained in:
11
MareSynchronos/MareConfiguration/CharaDataConfigService.cs
Normal file
11
MareSynchronos/MareConfiguration/CharaDataConfigService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
namespace MareSynchronos.MareConfiguration;
|
||||
|
||||
public class CharaDataConfigService : ConfigurationServiceBase<CharaDataConfig>
|
||||
{
|
||||
public const string ConfigName = "charadata.json";
|
||||
|
||||
public CharaDataConfigService(string configDir) : base(configDir) { }
|
||||
public override string ConfigurationName => ConfigName;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using MareSynchronos.MareConfiguration.Models;
|
||||
|
||||
namespace MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
public class CharaDataConfig : IMareConfiguration
|
||||
{
|
||||
public bool OpenMareHubOnGposeStart { get; set; } = false;
|
||||
public string LastSavedCharaDataLocation { get; set; } = string.Empty;
|
||||
public Dictionary<string, CharaDataFavorite> FavoriteCodes { get; set; } = [];
|
||||
public bool DownloadMcdDataOnConnection { get; set; } = true;
|
||||
public int Version { get; set; } = 0;
|
||||
public bool NearbyOwnServerOnly { get; set; } = false;
|
||||
public bool NearbyIgnoreHousingLimitations { get; set; } = false;
|
||||
public bool NearbyDrawWisps { get; set; } = true;
|
||||
public int NearbyDistanceFilter { get; set; } = 100;
|
||||
public bool NearbyShowOwnData { get; set; } = false;
|
||||
public bool ShowHelpTexts { get; set; } = true;
|
||||
}
|
||||
@@ -7,4 +7,4 @@ public class UidNotesConfig : IMareConfiguration
|
||||
{
|
||||
public Dictionary<string, ServerNotesStorage> ServerNotes { get; set; } = new(StringComparer.Ordinal);
|
||||
public int Version { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace MareSynchronos.MareConfiguration.Models;
|
||||
|
||||
[Serializable]
|
||||
public class CharaDataFavorite
|
||||
{
|
||||
public DateTime LastDownloaded { get; set; } = DateTime.MaxValue;
|
||||
public string CustomDescription { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -6,4 +6,4 @@ public class ServerTagStorage
|
||||
public HashSet<string> OpenPairTags { get; set; } = new(StringComparer.Ordinal);
|
||||
public HashSet<string> ServerAvailablePairTags { get; set; } = new(StringComparer.Ordinal);
|
||||
public Dictionary<string, List<string>> UidServerPairedUserTags { get; set; } = new(StringComparer.Ordinal);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,4 +9,4 @@ public class XivDataStorageService : ConfigurationServiceBase<XivDataStorageConf
|
||||
public XivDataStorageService(string configDir) : base(configDir) { }
|
||||
|
||||
public override string ConfigurationName => ConfigName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user