From 9e701275ec8a5d1c8d7939994ef4c2e7e5e9ef0f Mon Sep 17 00:00:00 2001 From: Yui Date: Tue, 4 Nov 2025 16:32:31 -0300 Subject: [PATCH] refactor(project): renamed project and namespace --- {moe.yuyui.weebsights-port => Server}/Mod.cs | 4 ++-- {moe.yuyui.weebsights-port => Server}/ModMetadata.cs | 4 ++-- .../Models/WeebItemConfig.cs | 2 +- .../Models/WeebLocaleConfig.cs | 2 +- .../moe.yuyui.weebsights-port.csproj => Server/Server.csproj | 2 +- .../Services/WeebItemService.cs | 5 ++--- .../Services/WeebLocaleService.cs | 4 ++-- .../Services/WeebTraderService.cs | 2 +- {moe.yuyui.weebsights-port => Server}/db/items.jsonc | 0 {moe.yuyui.weebsights-port => Server}/db/locales/en.json | 0 WeebSights-Port.sln | 2 +- 11 files changed, 13 insertions(+), 14 deletions(-) rename {moe.yuyui.weebsights-port => Server}/Mod.cs (95%) rename {moe.yuyui.weebsights-port => Server}/ModMetadata.cs (87%) rename {moe.yuyui.weebsights-port => Server}/Models/WeebItemConfig.cs (91%) rename {moe.yuyui.weebsights-port => Server}/Models/WeebLocaleConfig.cs (88%) rename moe.yuyui.weebsights-port/moe.yuyui.weebsights-port.csproj => Server/Server.csproj (92%) rename {moe.yuyui.weebsights-port => Server}/Services/WeebItemService.cs (97%) rename {moe.yuyui.weebsights-port => Server}/Services/WeebLocaleService.cs (90%) rename {moe.yuyui.weebsights-port => Server}/Services/WeebTraderService.cs (97%) rename {moe.yuyui.weebsights-port => Server}/db/items.jsonc (100%) rename {moe.yuyui.weebsights-port => Server}/db/locales/en.json (100%) diff --git a/moe.yuyui.weebsights-port/Mod.cs b/Server/Mod.cs similarity index 95% rename from moe.yuyui.weebsights-port/Mod.cs rename to Server/Mod.cs index de0967f..f64a6aa 100644 --- a/moe.yuyui.weebsights-port/Mod.cs +++ b/Server/Mod.cs @@ -1,13 +1,13 @@ using System.Diagnostics; using System.Reflection; -using moe.yuyui.weebsights_port.Services; using SPTarkov.DI.Annotations; using SPTarkov.Server.Core.DI; using SPTarkov.Server.Core.Models.Enums; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Services; +using WeebSights.Services; -namespace moe.yuyui.weebsights_port; +namespace WeebSights; [Injectable(TypePriority = OnLoadOrder.PostSptModLoader + 1)] public class Mod(ISptLogger logger, diff --git a/moe.yuyui.weebsights-port/ModMetadata.cs b/Server/ModMetadata.cs similarity index 87% rename from moe.yuyui.weebsights-port/ModMetadata.cs rename to Server/ModMetadata.cs index 82a1434..59c5de0 100644 --- a/moe.yuyui.weebsights-port/ModMetadata.cs +++ b/Server/ModMetadata.cs @@ -1,6 +1,6 @@ using SPTarkov.Server.Core.Models.Spt.Mod; -namespace moe.yuyui.weebsights_port; +namespace WeebSights; public record ModMetadata : AbstractModMetadata { @@ -16,5 +16,5 @@ public record ModMetadata : AbstractModMetadata public override string? Url { get; init; } public override bool? IsBundleMod { get; init; } = true; public override string? License { get; init; } = "MIT"; - public override string ModGuid { get; init; } = "moe.yuyui.weebsights-port"; + public override string ModGuid { get; init; } = "moe.yuyui.animesights-port"; } \ No newline at end of file diff --git a/moe.yuyui.weebsights-port/Models/WeebItemConfig.cs b/Server/Models/WeebItemConfig.cs similarity index 91% rename from moe.yuyui.weebsights-port/Models/WeebItemConfig.cs rename to Server/Models/WeebItemConfig.cs index 67a7735..ba62cfe 100644 --- a/moe.yuyui.weebsights-port/Models/WeebItemConfig.cs +++ b/Server/Models/WeebItemConfig.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using SPTarkov.Server.Core.Models.Common; -namespace moe.yuyui.weebsights_port.Models; +namespace WeebSights.Models; public record WeebItemConfig() { diff --git a/moe.yuyui.weebsights-port/Models/WeebLocaleConfig.cs b/Server/Models/WeebLocaleConfig.cs similarity index 88% rename from moe.yuyui.weebsights-port/Models/WeebLocaleConfig.cs rename to Server/Models/WeebLocaleConfig.cs index 1474ea7..30b26e6 100644 --- a/moe.yuyui.weebsights-port/Models/WeebLocaleConfig.cs +++ b/Server/Models/WeebLocaleConfig.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using SPTarkov.Server.Core.Models.Common; -namespace moe.yuyui.weebsights_port.Models; +namespace WeebSights.Models; public record WeebLocaleConfig() { diff --git a/moe.yuyui.weebsights-port/moe.yuyui.weebsights-port.csproj b/Server/Server.csproj similarity index 92% rename from moe.yuyui.weebsights-port/moe.yuyui.weebsights-port.csproj rename to Server/Server.csproj index 17a9b77..ab7d046 100644 --- a/moe.yuyui.weebsights-port/moe.yuyui.weebsights-port.csproj +++ b/Server/Server.csproj @@ -2,7 +2,7 @@ net9.0 - moe.yuyui.weebsights_port + WeebSights enable enable diff --git a/moe.yuyui.weebsights-port/Services/WeebItemService.cs b/Server/Services/WeebItemService.cs similarity index 97% rename from moe.yuyui.weebsights-port/Services/WeebItemService.cs rename to Server/Services/WeebItemService.cs index 0ac5d15..a3f317c 100644 --- a/moe.yuyui.weebsights-port/Services/WeebItemService.cs +++ b/Server/Services/WeebItemService.cs @@ -1,16 +1,15 @@ -using moe.yuyui.weebsights_port.Models; using SPTarkov.DI.Annotations; using SPTarkov.Server.Core.DI; using SPTarkov.Server.Core.Models.Common; using SPTarkov.Server.Core.Models.Eft.Common.Tables; -using SPTarkov.Server.Core.Models.Spt.Config; using SPTarkov.Server.Core.Models.Spt.Mod; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Services; using SPTarkov.Server.Core.Services.Mod; using SPTarkov.Server.Core.Utils; +using WeebSights.Models; -namespace moe.yuyui.weebsights_port.Services; +namespace WeebSights.Services; [Injectable(TypePriority = OnLoadOrder.PostDBModLoader + 3)] public class WeebItemService(ISptLogger logger, JsonUtil jsonUtil, CustomItemService customItemService, DatabaseService databaseService) diff --git a/moe.yuyui.weebsights-port/Services/WeebLocaleService.cs b/Server/Services/WeebLocaleService.cs similarity index 90% rename from moe.yuyui.weebsights-port/Services/WeebLocaleService.cs rename to Server/Services/WeebLocaleService.cs index 8295b53..70caf73 100644 --- a/moe.yuyui.weebsights-port/Services/WeebLocaleService.cs +++ b/Server/Services/WeebLocaleService.cs @@ -1,10 +1,10 @@ -using moe.yuyui.weebsights_port.Models; using SPTarkov.DI.Annotations; using SPTarkov.Server.Core.DI; using SPTarkov.Server.Core.Models.Common; using SPTarkov.Server.Core.Utils; +using WeebSights.Models; -namespace moe.yuyui.weebsights_port.Services; +namespace WeebSights.Services; [Injectable(TypePriority = OnLoadOrder.PostDBModLoader + 4)] public class WeebLocaleService(JsonUtil jsonUtil) diff --git a/moe.yuyui.weebsights-port/Services/WeebTraderService.cs b/Server/Services/WeebTraderService.cs similarity index 97% rename from moe.yuyui.weebsights-port/Services/WeebTraderService.cs rename to Server/Services/WeebTraderService.cs index 5ac5daa..b3868b0 100644 --- a/moe.yuyui.weebsights-port/Services/WeebTraderService.cs +++ b/Server/Services/WeebTraderService.cs @@ -8,7 +8,7 @@ using SPTarkov.Server.Core.Models.Spt.Mod; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Services; -namespace moe.yuyui.weebsights_port.Services; +namespace WeebSights.Services; [Injectable(TypePriority = OnLoadOrder.PostDBModLoader + 2)] public class WeebTraderService(ISptLogger logger, DatabaseService databaseService) diff --git a/moe.yuyui.weebsights-port/db/items.jsonc b/Server/db/items.jsonc similarity index 100% rename from moe.yuyui.weebsights-port/db/items.jsonc rename to Server/db/items.jsonc diff --git a/moe.yuyui.weebsights-port/db/locales/en.json b/Server/db/locales/en.json similarity index 100% rename from moe.yuyui.weebsights-port/db/locales/en.json rename to Server/db/locales/en.json diff --git a/WeebSights-Port.sln b/WeebSights-Port.sln index 3e55a0a..24df5e7 100644 --- a/WeebSights-Port.sln +++ b/WeebSights-Port.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "moe.yuyui.weebsights-port", "moe.yuyui.weebsights-port\moe.yuyui.weebsights-port.csproj", "{D2A6BE7F-0C34-4655-88EF-BC319CD2C069}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "Server\Server.csproj", "{D2A6BE7F-0C34-4655-88EF-BC319CD2C069}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution