执行代码清理

This commit is contained in:
milimoe 2024-08-16 00:16:23 +08:00
parent 3cc7b84803
commit 7027d15b18
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
6 changed files with 9 additions and 11 deletions

View File

@ -285,7 +285,7 @@ namespace Milimoe.FunGame.Core.Controller
}
throw new ConnectFailedException();
}
/// <summary>
/// 基于本地已连接的Socket创建新的数据请求<para/>
/// 加载项专用(<see cref="Library.Common.Addon.Plugin"/> / <see cref="Library.Common.Addon.GameModule"/>

View File

@ -1,5 +1,4 @@
using System;
using Milimoe.FunGame.Core.Interface.Entity;
using Milimoe.FunGame.Core.Interface.Entity;
namespace Milimoe.FunGame.Core.Entity
{

View File

@ -28,7 +28,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon
/// 长度
/// </summary>
public abstract float Length { get; }
/// <summary>
/// 宽度
/// </summary>
@ -57,7 +57,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon
/// <param name="z"></param>
/// <returns></returns>
public Grid this[float x, float y, float z = 0] => Grids.Values.Where(g => g.X == x && g.Y == y && g.Z == z).FirstOrDefault();
/// <summary>
/// 使用坐标获取格子从0号开始
/// </summary>
@ -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++)
{

View File

@ -19,7 +19,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon
/// 格子在地图中的y坐标
/// </summary>
public float Y { get; } = y;
/// <summary>
/// 格子在地图中的z坐标
/// </summary>
@ -29,7 +29,7 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon
/// 是谁站在这格子上?
/// </summary>
public Dictionary<string, Character> Characters { get; set; } = [];
/// <summary>
/// 此格子目前受到了什么影响?或者它有什么技能…
/// </summary>

View File

@ -14,13 +14,13 @@ namespace Milimoe.FunGame.Core.Service
/// 用于保存Smtp客户端
/// 一个邮件服务对应一个Smtp客户端
/// </summary>
internal static Dictionary<Guid, SmtpClient> SmtpClients { get; } = new();
internal static Dictionary<Guid, SmtpClient> SmtpClients { get; } = [];
/// <summary>
/// 用于保存邮件服务
/// 允许服务器同时存在多个服务
/// </summary>
internal static Dictionary<Guid, MailSender> MailSenders { get; } = new();
internal static Dictionary<Guid, MailSender> MailSenders { get; } = [];
/// <summary>
/// 获取某个已经保存过的邮件服务

View File

@ -1,6 +1,5 @@
using System.Collections;
using System.Collections.Concurrent;
using Milimoe.FunGame.Core.Entity;
namespace Milimoe.FunGame.Core.Service
{