Enemy resource

This commit is contained in:
Marco 2025-03-20 11:15:37 +01:00
commit fff3ddc3cf
5 changed files with 136 additions and 0 deletions

View file

@ -0,0 +1,9 @@
namespace Cirno.Scripts.Enums;
public enum DifficultyLevel
{
Easy,
Normal,
Hard,
Lunatic
}

View file

@ -0,0 +1,22 @@
using Cirno.Scripts.Resources.Loot;
using Godot;
using Godot.Collections;
namespace Cirno.Scripts.Resources;
[GlobalClass]
public partial class EnemyResource : Resource
{
[Export] public StringName EnemyName { get; private set; }
[Export] public StringName EnemyKey { get; private set; }
[Export] public StringName PrefabPath { get; private set; }
[Export] public float MaxHealth { get; private set; }
[Export] public DamageResistance Resistances { get; private set; }
[Export] public WeaponResource Weapon { get; private set; }
[Export] public Array<LootDrop> LootDrops { get; private set; }
[ExportCategory("AI")]
[Export] public float AlarmReactRange { get; private set; }
[Export] public float PlayerDisengageRange { get; private set; }
}

View file

@ -0,0 +1 @@
uid://cd5o0ceb50jki