From 3bafba6f4f4e4de6924e68efd574e2e6efbdec1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com>
Date: Tue, 27 Feb 2024 11:24:26 +0800
Subject: [PATCH] fix: make some methods public.
---
Directory.Build.props | 2 +-
RotationSolver.Basic/Helpers/ObjectHelper.cs | 22 ++++++++++++++++----
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index e1e36a74f..9796471a9 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -3,7 +3,7 @@
net7.0-windows
enable
ArchiTed
- 4.0.3.4
+ 4.0.3.5
x64
AnyCPU
latest
diff --git a/RotationSolver.Basic/Helpers/ObjectHelper.cs b/RotationSolver.Basic/Helpers/ObjectHelper.cs
index 8e1f248c0..84a5a2391 100644
--- a/RotationSolver.Basic/Helpers/ObjectHelper.cs
+++ b/RotationSolver.Basic/Helpers/ObjectHelper.cs
@@ -262,7 +262,12 @@ internal static bool CanInterrupt(this GameObject o)
internal static bool IsDummy(this BattleChara obj) => obj?.NameId == 541;
- internal static bool IsBossFromTTK(this BattleChara obj)
+ ///
+ /// Is target a boss depends on the ttk.
+ ///
+ /// the object.
+ ///
+ public static bool IsBossFromTTK(this BattleChara obj)
{
if (obj == null) return false;
@@ -273,8 +278,12 @@ internal static bool IsBossFromTTK(this BattleChara obj)
return false;
}
-
- internal static bool IsBossFromIcon(this BattleChara obj)
+ ///
+ /// Is target a boss depends on the icon.
+ ///
+ /// the object.
+ ///
+ public static bool IsBossFromIcon(this BattleChara obj)
{
if (obj == null) return false;
@@ -286,7 +295,12 @@ internal static bool IsBossFromIcon(this BattleChara obj)
return false;
}
- internal static bool IsDying(this BattleChara b)
+ ///
+ /// Is object dying.
+ ///
+ ///
+ ///
+ public static bool IsDying(this BattleChara b)
{
if (b == null) return false;
if (b.IsDummy() && !Service.Config.ShowTargetTimeToKill) return false;