diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 20:03:46 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 20:03:46 -0300 |
| commit | 6fb1eb6a6fe0f3f4c2f4e9d7fc476566168eba5d (patch) | |
| tree | 89b89e2d991d2e83fb8398044120115b39112bad /scripts/actors/Actor.cs | |
| parent | ca782d7310f2df854a8727535ac92337c85ed445 (diff) | |
Refactor
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(); |
