diff options
Diffstat (limited to 'scripts/actors/Actor.cs')
| -rw-r--r-- | scripts/actors/Actor.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/actors/Actor.cs b/scripts/actors/Actor.cs index 8e33b02..f35939a 100644 --- a/scripts/actors/Actor.cs +++ b/scripts/actors/Actor.cs @@ -2,6 +2,8 @@ using Godot; [GlobalClass] public abstract partial class Actor : Sprite2D { + [Export] + private ActorDefinition definition; private Vector2I gridPosition = Vector2I.Zero; public Vector2I GridPosition { set { @@ -11,6 +13,14 @@ public abstract partial class Actor : Sprite2D { get => gridPosition; } + public bool BlocksMovement { + get => definition.blocksMovement; + } + + public string ActorName { + get => definition.name; + } + public override void _Ready() { base._Ready(); |
