mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 00:06:02 +00:00
执行代码清理
This commit is contained in:
parent
0c24d27d19
commit
087e3dd90f
@ -205,7 +205,7 @@ namespace Milimoe.FunGame.Core.Api.Transmittal
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 异步执行一个 sql 脚本文件
|
||||
/// </summary>
|
||||
|
||||
@ -464,7 +464,7 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
||||
string hmac = Convert.ToHexString(hash_bytes);
|
||||
return hmac.ToLower();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 使用 SHA256 算法对文本进行加密
|
||||
/// </summary>
|
||||
|
||||
@ -20,7 +20,7 @@ namespace Milimoe.FunGame.Core.Entity
|
||||
/// 实体的名称
|
||||
/// </summary>
|
||||
public virtual string Name { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 实体的当前状态(关联数据库操作)
|
||||
/// </summary>
|
||||
|
||||
@ -21,7 +21,7 @@ namespace Milimoe.FunGame.Core.Entity
|
||||
/// 最后一次造成伤害的时间
|
||||
/// </summary>
|
||||
public Dictionary<Character, double> DamageLastTime { get; } = [];
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 对某角色最后一次友方非伤害辅助的时间
|
||||
/// </summary>
|
||||
|
||||
@ -327,7 +327,7 @@ namespace Milimoe.FunGame.Core.Entity
|
||||
}
|
||||
return result && used;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 局外(库存)使用物品触发
|
||||
/// </summary>
|
||||
|
||||
@ -59,7 +59,7 @@ namespace Milimoe.FunGame.Core.Entity
|
||||
/// 是否显示在状态栏
|
||||
/// </summary>
|
||||
public bool ShowInStatusBar => Skill.Item is null || (Durative && Duration > 0) || DurationTurn > 0 || DurativeWithoutDuration;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 特效是否生效
|
||||
/// </summary>
|
||||
@ -74,7 +74,7 @@ namespace Milimoe.FunGame.Core.Entity
|
||||
/// 驱散性 [ 能驱散什么特效,默认无驱散 ]
|
||||
/// </summary>
|
||||
public virtual DispelType DispelType { get; set; } = DispelType.None;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 被驱散性 [ 能被什么驱散类型驱散,默认弱驱散 ]
|
||||
/// </summary>
|
||||
@ -649,7 +649,7 @@ namespace Milimoe.FunGame.Core.Entity
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 当角色护盾破碎时
|
||||
/// </summary>
|
||||
@ -816,7 +816,7 @@ namespace Milimoe.FunGame.Core.Entity
|
||||
character.CharacterEffectTypes.Remove(this);
|
||||
character.UpdateCharacterState();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 将免疫状态从角色身上移除 [ 尽可能的调用此方法而不是自己实现 ]
|
||||
/// </summary>
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -83,7 +83,7 @@ namespace Milimoe.FunGame.Core.Interface.Base
|
||||
/// <param name="magicType"></param>
|
||||
/// <param name="damageResult"></param>
|
||||
public Task DamageToEnemyAsync(Character actor, Character enemy, double damage, bool isNormalAttack, bool isMagicDamage = false, MagicType magicType = MagicType.None, DamageResult damageResult = DamageResult.Normal);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 治疗一个目标
|
||||
/// </summary>
|
||||
|
||||
@ -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
|
||||
|
||||
@ -991,7 +991,7 @@ namespace Milimoe.FunGame.Core.Library.Constant
|
||||
/// 需强驱散
|
||||
/// </summary>
|
||||
Strong,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 需特殊驱散
|
||||
/// </summary>
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -16,7 +16,7 @@ namespace Milimoe.FunGame.Core.Model
|
||||
/// 游戏材料名称(第二货币)
|
||||
/// </summary>
|
||||
public string InGameMaterial { get; set; } = "材料";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 游戏时间名称(如技能冷却、硬直)
|
||||
/// </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user