From 6f2c2edd52171a4df7f35de695c9b2e7801d3e5f Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 4 Sep 2025 16:58:58 -0300 Subject: Preparação para itens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/Game.tscn | 2 +- scripts/GUI/Details.cs | 8 +- scripts/Time/TurnManager.cs | 10 +-- scripts/entities/Entity.cs | 82 +++++++++++++++++++ scripts/entities/Entity.cs.uid | 1 + scripts/entities/EntityDefinition.cs | 17 ++++ scripts/entities/EntityDefinition.cs.uid | 1 + scripts/entities/actors/AI/HostileEnemyAI.cs | 4 +- scripts/entities/actors/Actor.cs | 70 +++------------- scripts/entities/actors/ActorDefinition.cs | 11 +-- scripts/entities/actors/Enemy.cs | 6 +- scripts/entities/actors/actions/BumpAction.cs | 2 +- .../entities/actors/actions/DirectionalAction.cs | 4 +- scripts/entities/actors/actions/MeleeAction.cs | 14 +++- scripts/entities/actors/actions/MovementAction.cs | 4 +- scripts/map/DungeonGenerator.cs | 12 +-- scripts/map/Map.cs | 14 ++-- scripts/map/MapData.cs | 94 +++++++++------------- 18 files changed, 198 insertions(+), 158 deletions(-) create mode 100644 scripts/entities/Entity.cs create mode 100644 scripts/entities/Entity.cs.uid create mode 100644 scripts/entities/EntityDefinition.cs create mode 100644 scripts/entities/EntityDefinition.cs.uid diff --git a/scenes/Game.tscn b/scenes/Game.tscn index 242a489..98d918d 100644 --- a/scenes/Game.tscn +++ b/scenes/Game.tscn @@ -28,7 +28,7 @@ script = ExtResource("5_s0nni") [node name="Tiles" type="Node2D" parent="Map"] -[node name="Actors" type="Node2D" parent="Map"] +[node name="Entities" type="Node2D" parent="Map"] [node name="InspectDetails" parent="Map" instance=ExtResource("5_qy1jj")] visible = false diff --git a/scripts/GUI/Details.cs b/scripts/GUI/Details.cs index 0e342aa..814d2ac 100644 --- a/scripts/GUI/Details.cs +++ b/scripts/GUI/Details.cs @@ -6,7 +6,7 @@ public partial class Details : CanvasLayer private static readonly LabelSettings lblSettings = GD.Load("res://assets/definitions/message_label_settings.tres"); private Map map; private VBoxContainer entityNames; - private Godot.Collections.Array actors = []; + private Godot.Collections.Array entities = []; private Godot.Collections.Array