diff options
Diffstat (limited to 'scripts/actors/actions/Action.cs')
| -rw-r--r-- | scripts/actors/actions/Action.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/actors/actions/Action.cs b/scripts/actors/actions/Action.cs index 21efa1a..76ae5d5 100644 --- a/scripts/actors/actions/Action.cs +++ b/scripts/actors/actions/Action.cs @@ -1,6 +1,17 @@ using Godot; using System; +using System.Data; public abstract partial class Action : RefCounted { - public abstract void Perform(Game game, Actor actor); + protected Actor actor; + + public Action(Actor actor) { + this.actor = actor; + } + + public abstract void Perform(); + + protected DungeonLevel Map { + get => actor.Map; + } } |
