forked from project-redbud/FunGame-Core
执行代码清理
This commit is contained in:
parent
0c24d27d19
commit
087e3dd90f
@ -205,7 +205,7 @@ namespace Milimoe.FunGame.Core.Api.Transmittal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 异步执行一个 sql 脚本文件
|
/// 异步执行一个 sql 脚本文件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -464,7 +464,7 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
|||||||
string hmac = Convert.ToHexString(hash_bytes);
|
string hmac = Convert.ToHexString(hash_bytes);
|
||||||
return hmac.ToLower();
|
return hmac.ToLower();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 使用 SHA256 算法对文本进行加密
|
/// 使用 SHA256 算法对文本进行加密
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -20,7 +20,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
/// 实体的名称
|
/// 实体的名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual string Name { get; set; } = "";
|
public virtual string Name { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实体的当前状态(关联数据库操作)
|
/// 实体的当前状态(关联数据库操作)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -21,7 +21,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
/// 最后一次造成伤害的时间
|
/// 最后一次造成伤害的时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<Character, double> DamageLastTime { get; } = [];
|
public Dictionary<Character, double> DamageLastTime { get; } = [];
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 对某角色最后一次友方非伤害辅助的时间
|
/// 对某角色最后一次友方非伤害辅助的时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -327,7 +327,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
}
|
}
|
||||||
return result && used;
|
return result && used;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 局外(库存)使用物品触发
|
/// 局外(库存)使用物品触发
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -59,7 +59,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
/// 是否显示在状态栏
|
/// 是否显示在状态栏
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool ShowInStatusBar => Skill.Item is null || (Durative && Duration > 0) || DurationTurn > 0 || DurativeWithoutDuration;
|
public bool ShowInStatusBar => Skill.Item is null || (Durative && Duration > 0) || DurationTurn > 0 || DurativeWithoutDuration;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 特效是否生效
|
/// 特效是否生效
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -74,7 +74,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
/// 驱散性 [ 能驱散什么特效,默认无驱散 ]
|
/// 驱散性 [ 能驱散什么特效,默认无驱散 ]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual DispelType DispelType { get; set; } = DispelType.None;
|
public virtual DispelType DispelType { get; set; } = DispelType.None;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 被驱散性 [ 能被什么驱散类型驱散,默认弱驱散 ]
|
/// 被驱散性 [ 能被什么驱散类型驱散,默认弱驱散 ]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -649,7 +649,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当角色护盾破碎时
|
/// 当角色护盾破碎时
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -816,7 +816,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
character.CharacterEffectTypes.Remove(this);
|
character.CharacterEffectTypes.Remove(this);
|
||||||
character.UpdateCharacterState();
|
character.UpdateCharacterState();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 将免疫状态从角色身上移除 [ 尽可能的调用此方法而不是自己实现 ]
|
/// 将免疫状态从角色身上移除 [ 尽可能的调用此方法而不是自己实现 ]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -4,7 +4,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
{
|
{
|
||||||
public class Club : BaseEntity
|
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 Prefix { get; set; } = "";
|
||||||
public string Description { get; set; } = "";
|
public string Description { get; set; } = "";
|
||||||
public bool IsNeedApproval { get; set; } = false;
|
public bool IsNeedApproval { get; set; } = false;
|
||||||
|
|||||||
@ -83,7 +83,7 @@ namespace Milimoe.FunGame.Core.Interface.Base
|
|||||||
/// <param name="magicType"></param>
|
/// <param name="magicType"></param>
|
||||||
/// <param name="damageResult"></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);
|
public Task DamageToEnemyAsync(Character actor, Character enemy, double damage, bool isNormalAttack, bool isMagicDamage = false, MagicType magicType = MagicType.None, DamageResult damageResult = DamageResult.Normal);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 治疗一个目标
|
/// 治疗一个目标
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -685,7 +685,7 @@ namespace Milimoe.FunGame.Core.Library.Constant
|
|||||||
_ => "未知效果"
|
_ => "未知效果"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DispelledType GetDispelledTypeByEffectType(EffectType type)
|
public static DispelledType GetDispelledTypeByEffectType(EffectType type)
|
||||||
{
|
{
|
||||||
return type switch
|
return type switch
|
||||||
@ -740,7 +740,7 @@ namespace Milimoe.FunGame.Core.Library.Constant
|
|||||||
_ => DispelledType.Weak
|
_ => DispelledType.Weak
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool GetIsDebuffByEffectType(EffectType type)
|
public static bool GetIsDebuffByEffectType(EffectType type)
|
||||||
{
|
{
|
||||||
return type switch
|
return type switch
|
||||||
|
|||||||
@ -991,7 +991,7 @@ namespace Milimoe.FunGame.Core.Library.Constant
|
|||||||
/// 需强驱散
|
/// 需强驱散
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Strong,
|
Strong,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 需特殊驱散
|
/// 需特殊驱散
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -18,7 +18,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity
|
|||||||
SQLHelper.Parameters["@UserId"] = UserId;
|
SQLHelper.Parameters["@UserId"] = UserId;
|
||||||
return $"{Select_Inventories} {Command_Where} {Column_UserId} = @UserId";
|
return $"{Select_Inventories} {Command_Where} {Column_UserId} = @UserId";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string Select_MainCharacterByUserId(SQLHelper SQLHelper, long UserId)
|
public static string Select_MainCharacterByUserId(SQLHelper SQLHelper, long UserId)
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@UserId"] = UserId;
|
SQLHelper.Parameters["@UserId"] = UserId;
|
||||||
|
|||||||
@ -79,7 +79,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity
|
|||||||
SQLHelper.Parameters["@ItemGuid"] = ItemGuid.ToString();
|
SQLHelper.Parameters["@ItemGuid"] = ItemGuid.ToString();
|
||||||
return $"{Command_Delete} {Command_From} {TableName} {Command_Where} {Column_ItemGuid} = @ItemGuid";
|
return $"{Command_Delete} {Command_From} {TableName} {Command_Where} {Column_ItemGuid} = @ItemGuid";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string Delete_MarketItemByUserId(SQLHelper SQLHelper, long UserId)
|
public static string Delete_MarketItemByUserId(SQLHelper SQLHelper, long UserId)
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@UserId"] = UserId;
|
SQLHelper.Parameters["@UserId"] = UserId;
|
||||||
|
|||||||
@ -20,7 +20,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity
|
|||||||
SQLHelper.Parameters["@UserId"] = UserId;
|
SQLHelper.Parameters["@UserId"] = UserId;
|
||||||
return $"{Select_OfferItems} {Command_Where} {Column_OfferId} = @OfferId {Command_And} {Column_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)
|
public static string Select_OfferItemsBackupByOfferIdAndUserId(SQLHelper SQLHelper, long OfferId, long UserId)
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@OfferId"] = OfferId;
|
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}) " +
|
return $"{Command_Insert} {Command_Into} {TableName} ({Column_OfferId}, {Column_UserId}, {Column_ItemGuid}) " +
|
||||||
$"{Command_Values} (@OfferId, @UserId, @ItemGuid)";
|
$"{Command_Values} (@OfferId, @UserId, @ItemGuid)";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string Insert_OfferItemBackup(SQLHelper SQLHelper, long OfferId, long UserId, Guid ItemGuid)
|
public static string Insert_OfferItemBackup(SQLHelper SQLHelper, long OfferId, long UserId, Guid ItemGuid)
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@OfferId"] = OfferId;
|
SQLHelper.Parameters["@OfferId"] = OfferId;
|
||||||
|
|||||||
@ -47,7 +47,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity
|
|||||||
builder.Append(')');
|
builder.Append(')');
|
||||||
return $"{Select_Rooms} {Command_Where} {builder}";
|
return $"{Select_Rooms} {Command_Where} {builder}";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string Select_RoomsByGameModuleAndRoomState(SQLHelper SQLHelper, string GameModule = "", params RoomState[] States)
|
public static string Select_RoomsByGameModuleAndRoomState(SQLHelper SQLHelper, string GameModule = "", params RoomState[] States)
|
||||||
{
|
{
|
||||||
string sql = Select_Rooms;
|
string sql = Select_Rooms;
|
||||||
@ -139,7 +139,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity
|
|||||||
SQLHelper.Parameters["@NewRoomMaster"] = NewRoomMaster;
|
SQLHelper.Parameters["@NewRoomMaster"] = NewRoomMaster;
|
||||||
return $"{Command_Update} {TableName} {Command_Set} {Column_RoomMaster} = @NewRoomMaster {Command_Where} {Column_Roomid} = @Roomid {Command_And} {Column_RoomMaster} = @OldRoomMaster";
|
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)
|
public static string Update_UpdateRoomMaster(SQLHelper SQLHelper, string Roomid, long NewRoomMaster)
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@Roomid"] = Roomid;
|
SQLHelper.Parameters["@Roomid"] = Roomid;
|
||||||
|
|||||||
@ -16,13 +16,13 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity
|
|||||||
SQLHelper.Parameters["@StoreId"] = StoreId;
|
SQLHelper.Parameters["@StoreId"] = StoreId;
|
||||||
return $"{Select_StoreGoods} {Command_Where} {Column_StoreId} = @StoreId";
|
return $"{Select_StoreGoods} {Command_Where} {Column_StoreId} = @StoreId";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string Select_StoreGoodsByGoodsId(SQLHelper SQLHelper, long GoodsId)
|
public static string Select_StoreGoodsByGoodsId(SQLHelper SQLHelper, long GoodsId)
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@GoodsId"] = GoodsId;
|
SQLHelper.Parameters["@GoodsId"] = GoodsId;
|
||||||
return $"{Select_StoreGoods} {Command_Where} {Column_GoodsId} = @GoodsId";
|
return $"{Select_StoreGoods} {Command_Where} {Column_GoodsId} = @GoodsId";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string Select_StoreGoodsByStoreIdAndGoodsId(SQLHelper SQLHelper, long StoreId, long goodsId)
|
public static string Select_StoreGoodsByStoreIdAndGoodsId(SQLHelper SQLHelper, long StoreId, long goodsId)
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@StoreId"] = StoreId;
|
SQLHelper.Parameters["@StoreId"] = StoreId;
|
||||||
|
|||||||
@ -32,7 +32,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Entity
|
|||||||
SQLHelper.Parameters["@Id"] = id;
|
SQLHelper.Parameters["@Id"] = id;
|
||||||
return $"{Select_Users} {Command_Where} {Column_Id} = @Id";
|
return $"{Select_Users} {Command_Where} {Column_Id} = @Id";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string Select_IsExistEmail(SQLHelper SQLHelper, string Email)
|
public static string Select_IsExistEmail(SQLHelper SQLHelper, string Email)
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@Email"] = Email;
|
SQLHelper.Parameters["@Email"] = Email;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ namespace Milimoe.FunGame.Core.Model
|
|||||||
/// 游戏材料名称(第二货币)
|
/// 游戏材料名称(第二货币)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string InGameMaterial { get; set; } = "材料";
|
public string InGameMaterial { get; set; } = "材料";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 游戏时间名称(如技能冷却、硬直)
|
/// 游戏时间名称(如技能冷却、硬直)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user