diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c9490a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/site diff --git a/client/Configuration.cs b/client/Configuration.cs index 28385c5..32062a6 100644 --- a/client/Configuration.cs +++ b/client/Configuration.cs @@ -1,6 +1,6 @@ using Dalamud.Configuration; -namespace PlayerMap; +namespace MegaMappingway; [Serializable] public class Configuration : IPluginConfiguration { diff --git a/client/ListExt.cs b/client/ListExt.cs index a8ab270..279cd3f 100644 --- a/client/ListExt.cs +++ b/client/ListExt.cs @@ -1,4 +1,4 @@ -namespace PlayerMap; +namespace MegaMappingway; internal static class ListExt { public static void Shuffle(this IList list) { diff --git a/client/PlayerMap.csproj b/client/MegaMappingway.csproj similarity index 100% rename from client/PlayerMap.csproj rename to client/MegaMappingway.csproj diff --git a/client/PlayerMap.sln b/client/MegaMappingway.sln similarity index 82% rename from client/PlayerMap.sln rename to client/MegaMappingway.sln index 4922a36..5fa1757 100644 --- a/client/PlayerMap.sln +++ b/client/MegaMappingway.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlayerMap", "PlayerMap.csproj", "{3F5E5BFF-B5B9-416C-BAD6-5F154B8A7A35}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MegaMappingway", "MegaMappingway.csproj", "{3F5E5BFF-B5B9-416C-BAD6-5F154B8A7A35}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/client/PlayerMap.yaml b/client/MegaMappingway.yaml similarity index 55% rename from client/PlayerMap.yaml rename to client/MegaMappingway.yaml index 4ed5242..e884143 100755 --- a/client/PlayerMap.yaml +++ b/client/MegaMappingway.yaml @@ -1,7 +1,8 @@ -name: Player Map +name: MegaMappingway Uploader author: Anna -punchline: Crowdsourced location maps +punchline: Contribute to crowdsourced, anonymous, live player maps description: |- Use this plugin to upload player data to the crowdsourced location maps at - https://map.anna.lgbt/. It uploads the players around you every five seconds. + https://map.anna.lgbt/. It uploads the players around you every five seconds + by default, but the frequency is configurable repo_url: https://map.anna.lgbt/ diff --git a/client/OnDispose.cs b/client/OnDispose.cs index 0a61c7f..70ef3e0 100644 --- a/client/OnDispose.cs +++ b/client/OnDispose.cs @@ -1,4 +1,4 @@ -namespace PlayerMap; +namespace MegaMappingway; internal class OnDispose : IDisposable { private Action Action { get; } diff --git a/client/Plugin.cs b/client/Plugin.cs index 4d97cb7..24e6fa4 100644 --- a/client/Plugin.cs +++ b/client/Plugin.cs @@ -10,7 +10,7 @@ using Dalamud.Plugin; using Dalamud.Plugin.Services; using MessagePack; -namespace PlayerMap; +namespace MegaMappingway; public class Plugin : IDalamudPlugin { [PluginService] diff --git a/client/PluginUi.cs b/client/PluginUi.cs index 541d5ae..3c8b106 100644 --- a/client/PluginUi.cs +++ b/client/PluginUi.cs @@ -1,6 +1,6 @@ using ImGuiNET; -namespace PlayerMap; +namespace MegaMappingway; internal class PluginUi : IDisposable { private Plugin Plugin { get; } diff --git a/server/src/main.rs b/server/src/main.rs index 46f198d..a1610f5 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -297,10 +297,10 @@ struct AnonymousPlayerInfo { w: f64, gender: u8, race: u8, - level: i64, - job: i64, + level: u8, + job: u8, hp_percent: f64, - age: i64, + age: i8, territory_unique_id: u64, } @@ -316,10 +316,10 @@ impl AnonymousPlayerInfo { w: value.w, gender: customize.gender, race: customize.race, - level: value.level, - job: value.job, + level: value.level as u8, + job: value.job as u8, hp_percent: value.current_hp as f64 / value.max_hp as f64, - age: value.age, + age: value.age as i8, } } }