mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 02:17:12 +08:00
15 lines
430 B
C#
15 lines
430 B
C#
namespace Parsing
|
|
{
|
|
public static class ConditionFunctions
|
|
{
|
|
public static bool EntityHealth(Entity.Entity entity, int minHealth)
|
|
{
|
|
return entity.attributes.health >= minHealth;
|
|
}
|
|
|
|
public static bool HasEnemyInSight(Entity.Entity entity)
|
|
{
|
|
return Managers.EntityManage.Instance.ExistsHostile(entity.currentDimensionId, entity.entityPrefab);
|
|
}
|
|
}
|
|
} |