From 087e3dd90fd65bf22285bd421edfb4f90962c0b2 Mon Sep 17 00:00:00 2001 From: milimoe Date: Sat, 26 Apr 2025 16:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=B8=85?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Api/Transmittal/SQLHelper.cs | 2 +- Api/Utility/General.cs | 2 +- Entity/BaseEntity.cs | 2 +- Entity/Character/AssistDetail.cs | 2 +- Entity/Item/Item.cs | 2 +- Entity/Skill/Effect.cs | 8 ++++---- Entity/System/Club.cs | 2 +- Interface/Base/IGamingQueue.cs | 2 +- Library/Constant/ConstantSet.cs | 4 ++-- Library/Constant/TypeEnum.cs | 2 +- Library/SQLScript/Entity/InventoriesQuery.cs | 2 +- Library/SQLScript/Entity/MarketItemsQuery.cs | 2 +- Library/SQLScript/Entity/OfferItemsQuery.cs | 4 ++-- Library/SQLScript/Entity/RoomQuery.cs | 4 ++-- Library/SQLScript/Entity/StoreGoodsQuery.cs | 4 ++-- Library/SQLScript/Entity/UserQuery.cs | 2 +- Model/EquilibriumConstant.cs | 2 +- 17 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Api/Transmittal/SQLHelper.cs b/Api/Transmittal/SQLHelper.cs index 33dde77..66b8066 100644 --- a/Api/Transmittal/SQLHelper.cs +++ b/Api/Transmittal/SQLHelper.cs @@ -205,7 +205,7 @@ namespace Milimoe.FunGame.Core.Api.Transmittal } } } - + /// /// 异步执行一个 sql 脚本文件 /// diff --git a/Api/Utility/General.cs b/Api/Utility/General.cs index acca331..dd7355a 100644 --- a/Api/Utility/General.cs +++ b/Api/Utility/General.cs @@ -464,7 +464,7 @@ namespace Milimoe.FunGame.Core.Api.Utility string hmac = Convert.ToHexString(hash_bytes); return hmac.ToLower(); } - + /// /// 使用 SHA256 算法对文本进行加密 /// diff --git a/Entity/BaseEntity.cs b/Entity/BaseEntity.cs index ed444e4..145cd56 100644 --- a/Entity/BaseEntity.cs +++ b/Entity/BaseEntity.cs @@ -20,7 +20,7 @@ namespace Milimoe.FunGame.Core.Entity /// 实体的名称 /// public virtual string Name { get; set; } = ""; - + /// /// 实体的当前状态(关联数据库操作) /// diff --git a/Entity/Character/AssistDetail.cs b/Entity/Character/AssistDetail.cs index 74490db..28e806f 100644 --- a/Entity/Character/AssistDetail.cs +++ b/Entity/Character/AssistDetail.cs @@ -21,7 +21,7 @@ namespace Milimoe.FunGame.Core.Entity /// 最后一次造成伤害的时间 /// public Dictionary DamageLastTime { get; } = []; - + /// /// 对某角色最后一次友方非伤害辅助的时间 /// diff --git a/Entity/Item/Item.cs b/Entity/Item/Item.cs index d63cdab..666fb65 100644 --- a/Entity/Item/Item.cs +++ b/Entity/Item/Item.cs @@ -327,7 +327,7 @@ namespace Milimoe.FunGame.Core.Entity } return result && used; } - + /// /// 局外(库存)使用物品触发 /// diff --git a/Entity/Skill/Effect.cs b/Entity/Skill/Effect.cs index 95f8d73..75f2af2 100644 --- a/Entity/Skill/Effect.cs +++ b/Entity/Skill/Effect.cs @@ -59,7 +59,7 @@ namespace Milimoe.FunGame.Core.Entity /// 是否显示在状态栏 /// public bool ShowInStatusBar => Skill.Item is null || (Durative && Duration > 0) || DurationTurn > 0 || DurativeWithoutDuration; - + /// /// 特效是否生效 /// @@ -74,7 +74,7 @@ namespace Milimoe.FunGame.Core.Entity /// 驱散性 [ 能驱散什么特效,默认无驱散 ] /// public virtual DispelType DispelType { get; set; } = DispelType.None; - + /// /// 被驱散性 [ 能被什么驱散类型驱散,默认弱驱散 ] /// @@ -649,7 +649,7 @@ namespace Milimoe.FunGame.Core.Entity { return true; } - + /// /// 当角色护盾破碎时 /// @@ -816,7 +816,7 @@ namespace Milimoe.FunGame.Core.Entity character.CharacterEffectTypes.Remove(this); character.UpdateCharacterState(); } - + /// /// 将免疫状态从角色身上移除 [ 尽可能的调用此方法而不是自己实现 ] /// diff --git a/Entity/System/Club.cs b/Entity/System/Club.cs index e47e0ff..ca13c61 100644 --- a/Entity/System/Club.cs +++ b/Entity/System/Club.cs @@ -4,7 +4,7 @@ namespace Milimoe.FunGame.Core.Entity { public class Club : BaseEntity { - public DateTime CreateTime { get;set; } = DateTime.Now; + public DateTime CreateTime { get; set; } = DateTime.Now; public string Prefix { get; set; } = ""; public string Description { get; set; } = ""; public bool IsNeedApproval { get; set; } = false; diff --git a/Interface/Base/IGamingQueue.cs b/Interface/Base/IGamingQueue.cs index d963a53..14e5ca4 100644 --- a/Interface/Base/IGamingQueue.cs +++ b/Interface/Base/IGamingQueue.cs @@ -83,7 +83,7 @@ namespace Milimoe.FunGame.Core.Interface.Base /// /// public Task DamageToEnemyAsync(Character actor, Character enemy, double damage, bool isNormalAttack, bool isMagicDamage = false, MagicType magicType = MagicType.None, DamageResult damageResult = DamageResult.Normal); - + /// /// 治疗一个目标 /// diff --git a/Library/Constant/ConstantSet.cs b/Library/Constant/ConstantSet.cs index ed3631a..ac17ba3 100644 --- a/Library/Constant/ConstantSet.cs +++ b/Library/Constant/ConstantSet.cs @@ -685,7 +685,7 @@ namespace Milimoe.FunGame.Core.Library.Constant _ => "未知效果" }; } - + public static DispelledType GetDispelledTypeByEffectType(EffectType type) { return type switch @@ -740,7 +740,7 @@ namespace Milimoe.FunGame.Core.Library.Constant _ => DispelledType.Weak }; } - + public static bool GetIsDebuffByEffectType(EffectType type) { return type switch diff --git a/Library/Constant/TypeEnum.cs b/Library/Constant/TypeEnum.cs index 3e192ad..4732a8b 100644 --- a/Library/Constant/TypeEnum.cs +++ b/Library/Constant/TypeEnum.cs @@ -991,7 +991,7 @@ namespace Milimoe.FunGame.Core.Library.Constant /// 需强驱散 /// Strong, - + /// /// 需特殊驱散 /// diff --git a/Library/SQLScript/Entity/InventoriesQuery.cs b/Library/SQLScript/Entity/InventoriesQuery.cs index 61ae4f0..fbbcb9c 100644 --- a/Library/SQLScript/Entity/InventoriesQuery.cs +++ b/Library/SQLScript/Entity/InventoriesQuery.cs @@ -18,7 +18,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity SQLHelper.Parameters["@UserId"] = UserId; return $"{Select_Inventories} {Command_Where} {Column_UserId} = @UserId"; } - + public static string Select_MainCharacterByUserId(SQLHelper SQLHelper, long UserId) { SQLHelper.Parameters["@UserId"] = UserId; diff --git a/Library/SQLScript/Entity/MarketItemsQuery.cs b/Library/SQLScript/Entity/MarketItemsQuery.cs index 96a56ac..d58e024 100644 --- a/Library/SQLScript/Entity/MarketItemsQuery.cs +++ b/Library/SQLScript/Entity/MarketItemsQuery.cs @@ -79,7 +79,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity SQLHelper.Parameters["@ItemGuid"] = ItemGuid.ToString(); return $"{Command_Delete} {Command_From} {TableName} {Command_Where} {Column_ItemGuid} = @ItemGuid"; } - + public static string Delete_MarketItemByUserId(SQLHelper SQLHelper, long UserId) { SQLHelper.Parameters["@UserId"] = UserId; diff --git a/Library/SQLScript/Entity/OfferItemsQuery.cs b/Library/SQLScript/Entity/OfferItemsQuery.cs index c155d62..20193c5 100644 --- a/Library/SQLScript/Entity/OfferItemsQuery.cs +++ b/Library/SQLScript/Entity/OfferItemsQuery.cs @@ -20,7 +20,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity SQLHelper.Parameters["@UserId"] = UserId; return $"{Select_OfferItems} {Command_Where} {Column_OfferId} = @OfferId {Command_And} {Column_UserId} = @UserId"; } - + public static string Select_OfferItemsBackupByOfferIdAndUserId(SQLHelper SQLHelper, long OfferId, long UserId) { SQLHelper.Parameters["@OfferId"] = OfferId; @@ -37,7 +37,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity return $"{Command_Insert} {Command_Into} {TableName} ({Column_OfferId}, {Column_UserId}, {Column_ItemGuid}) " + $"{Command_Values} (@OfferId, @UserId, @ItemGuid)"; } - + public static string Insert_OfferItemBackup(SQLHelper SQLHelper, long OfferId, long UserId, Guid ItemGuid) { SQLHelper.Parameters["@OfferId"] = OfferId; diff --git a/Library/SQLScript/Entity/RoomQuery.cs b/Library/SQLScript/Entity/RoomQuery.cs index a1b1564..5ad4331 100644 --- a/Library/SQLScript/Entity/RoomQuery.cs +++ b/Library/SQLScript/Entity/RoomQuery.cs @@ -47,7 +47,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity builder.Append(')'); return $"{Select_Rooms} {Command_Where} {builder}"; } - + public static string Select_RoomsByGameModuleAndRoomState(SQLHelper SQLHelper, string GameModule = "", params RoomState[] States) { string sql = Select_Rooms; @@ -139,7 +139,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity SQLHelper.Parameters["@NewRoomMaster"] = NewRoomMaster; return $"{Command_Update} {TableName} {Command_Set} {Column_RoomMaster} = @NewRoomMaster {Command_Where} {Column_Roomid} = @Roomid {Command_And} {Column_RoomMaster} = @OldRoomMaster"; } - + public static string Update_UpdateRoomMaster(SQLHelper SQLHelper, string Roomid, long NewRoomMaster) { SQLHelper.Parameters["@Roomid"] = Roomid; diff --git a/Library/SQLScript/Entity/StoreGoodsQuery.cs b/Library/SQLScript/Entity/StoreGoodsQuery.cs index 694a412..6e4f1c7 100644 --- a/Library/SQLScript/Entity/StoreGoodsQuery.cs +++ b/Library/SQLScript/Entity/StoreGoodsQuery.cs @@ -16,13 +16,13 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity SQLHelper.Parameters["@StoreId"] = StoreId; return $"{Select_StoreGoods} {Command_Where} {Column_StoreId} = @StoreId"; } - + public static string Select_StoreGoodsByGoodsId(SQLHelper SQLHelper, long GoodsId) { SQLHelper.Parameters["@GoodsId"] = GoodsId; return $"{Select_StoreGoods} {Command_Where} {Column_GoodsId} = @GoodsId"; } - + public static string Select_StoreGoodsByStoreIdAndGoodsId(SQLHelper SQLHelper, long StoreId, long goodsId) { SQLHelper.Parameters["@StoreId"] = StoreId; diff --git a/Library/SQLScript/Entity/UserQuery.cs b/Library/SQLScript/Entity/UserQuery.cs index 8e04dca..33b5713 100644 --- a/Library/SQLScript/Entity/UserQuery.cs +++ b/Library/SQLScript/Entity/UserQuery.cs @@ -32,7 +32,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity SQLHelper.Parameters["@Id"] = id; return $"{Select_Users} {Command_Where} {Column_Id} = @Id"; } - + public static string Select_IsExistEmail(SQLHelper SQLHelper, string Email) { SQLHelper.Parameters["@Email"] = Email; diff --git a/Model/EquilibriumConstant.cs b/Model/EquilibriumConstant.cs index d3185d9..df23e83 100644 --- a/Model/EquilibriumConstant.cs +++ b/Model/EquilibriumConstant.cs @@ -16,7 +16,7 @@ namespace Milimoe.FunGame.Core.Model /// 游戏材料名称(第二货币) /// public string InGameMaterial { get; set; } = "材料"; - + /// /// 游戏时间名称(如技能冷却、硬直) ///