cirnogodot/Scripts/Components/FSM/Enemy/EnemyStorageModule.cs
2025-03-21 16:05:44 +01:00

23 lines
No EOL
573 B
C#

using System.Collections.Generic;
using System.Linq;
using Cirno.Scripts.Resources.Loot;
using Godot;
using Godot.Collections;
namespace Cirno.Scripts.Components.FSM.Enemy;
public partial class EnemyStorageModule : Node2D
{
[Export]
public EnemyFSMProxy Root { get; private set; }
public Vector2 MovementDirection { get; set; }
public Vector2 FacingDirection { get; set; }
public float MovementSpeed => Root.EnemyResource.MovementSpeed;
public IEnumerable<LootDrop> LootDrops => Root.EnemyResource.LootDrops.Concat(Root.ExtraLoot);
}