1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
using Godot; using System; public abstract partial class DirectionalAction : Action { public Vector2I Offset { get; private set; } public DirectionalAction(Actor actor, Vector2I offset) : base(actor) { Offset = offset; } protected Actor GetBlockingActorAtPosition(Vector2I pos) { return Map.GetBlockingActorAtPosition(pos); } }