From 5146895cf537dd69867da612abed5b4abaf805cd Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 18 Sep 2025 12:06:59 -0300 Subject: ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA --- scripts/Entities/Entity.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'scripts/Entities/Entity.cs') diff --git a/scripts/Entities/Entity.cs b/scripts/Entities/Entity.cs index 412bd7a..c0e026d 100644 --- a/scripts/Entities/Entity.cs +++ b/scripts/Entities/Entity.cs @@ -26,6 +26,12 @@ public abstract partial class Entity : Sprite2D private bool blocksMovement; private string displayName; + /// + /// A definição da entidade possui caracterísitcas padrões que definem + /// a entidade em questão. + /// + private EntityDefinition definition; + public Entity(Vector2I initialPosition, MapData map, EntityDefinition definition) { GridPosition = initialPosition; @@ -94,12 +100,6 @@ public abstract partial class Entity : Sprite2D } } - /// - /// A definição da entidade possui caracterísitcas padrões que definem - /// a entidade em questão. - /// - private EntityDefinition Definition; - public override void _Ready() { base._Ready(); @@ -118,7 +118,7 @@ public abstract partial class Entity : Sprite2D /// A definição do ator. public virtual void SetDefinition(EntityDefinition definition) { - Definition = definition; + this.definition = definition; BlocksMovement = definition.blocksMovement; DisplayName = definition.name; Type = definition.Type; -- cgit v1.2.3