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);
|
|
}
|
|
}
|
|
} |