diff --git a/Controller/RunTimeController.cs b/Controller/RunTimeController.cs index e51d998..268b392 100644 --- a/Controller/RunTimeController.cs +++ b/Controller/RunTimeController.cs @@ -285,7 +285,7 @@ namespace Milimoe.FunGame.Core.Controller } throw new ConnectFailedException(); } - + /// /// 基于本地已连接的Socket创建新的数据请求 /// 加载项专用( / ) diff --git a/Entity/Item/Item.cs b/Entity/Item/Item.cs index d0bd868..1d07b8c 100644 --- a/Entity/Item/Item.cs +++ b/Entity/Item/Item.cs @@ -1,5 +1,4 @@ -using System; -using Milimoe.FunGame.Core.Interface.Entity; +using Milimoe.FunGame.Core.Interface.Entity; namespace Milimoe.FunGame.Core.Entity { diff --git a/Library/Common/Addon/GameMap.cs b/Library/Common/Addon/GameMap.cs index 8a8c754..52aa9ca 100644 --- a/Library/Common/Addon/GameMap.cs +++ b/Library/Common/Addon/GameMap.cs @@ -28,7 +28,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon /// 长度 /// public abstract float Length { get; } - + /// /// 宽度 /// @@ -57,7 +57,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon /// /// public Grid this[float x, float y, float z = 0] => Grids.Values.Where(g => g.X == x && g.Y == y && g.Z == z).FirstOrDefault(); - + /// /// 使用坐标获取格子,从0号开始 /// @@ -89,7 +89,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon // 生成格子 for (float x = 0; x < Length; x++) { - for (float y = 0; y< Width; y++) + for (float y = 0; y < Width; y++) { for (float z = 0; z < Height; z++) { diff --git a/Library/Common/Addon/Grid.cs b/Library/Common/Addon/Grid.cs index ccaa4db..81d5c7d 100644 --- a/Library/Common/Addon/Grid.cs +++ b/Library/Common/Addon/Grid.cs @@ -19,7 +19,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon /// 格子在地图中的y坐标 /// public float Y { get; } = y; - + /// /// 格子在地图中的z坐标 /// @@ -29,7 +29,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon /// 是谁站在这格子上? /// public Dictionary Characters { get; set; } = []; - + /// /// 此格子目前受到了什么影响?或者它有什么技能… /// diff --git a/Service/MailManager.cs b/Service/MailManager.cs index c6c46c9..370b73d 100644 --- a/Service/MailManager.cs +++ b/Service/MailManager.cs @@ -14,13 +14,13 @@ namespace Milimoe.FunGame.Core.Service /// 用于保存Smtp客户端 /// 一个邮件服务对应一个Smtp客户端 /// - internal static Dictionary SmtpClients { get; } = new(); + internal static Dictionary SmtpClients { get; } = []; /// /// 用于保存邮件服务 /// 允许服务器同时存在多个服务 /// - internal static Dictionary MailSenders { get; } = new(); + internal static Dictionary MailSenders { get; } = []; /// /// 获取某个已经保存过的邮件服务 diff --git a/Service/ModelManager.cs b/Service/ModelManager.cs index ef69cc5..eab3a35 100644 --- a/Service/ModelManager.cs +++ b/Service/ModelManager.cs @@ -1,6 +1,5 @@ using System.Collections; using System.Collections.Concurrent; -using Milimoe.FunGame.Core.Entity; namespace Milimoe.FunGame.Core.Service {