From 240156765d88db25dd092fc320005cdb5f28d7a7 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 17 Aug 2025 21:45:07 -0300 Subject: Refactor no sistema de ações MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/actors/actions/Action.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'scripts/actors/actions/Action.cs') 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; + } } -- cgit v1.2.3