diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-04 21:08:57 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-04 21:08:57 -0300 |
| commit | 4b2afd3e2144e42bfa7f11a870584b9255052cf7 (patch) | |
| tree | 11bcb45e3c93532d2aeaea69b4387ccda365bc22 /scripts/entities/actors/Player.cs | |
| parent | 1e248d3dd18f7c6bfaf8066c4662facbbb89e8f9 (diff) | |
INVENTÁRIO PEGÁVEL AAAAAAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'scripts/entities/actors/Player.cs')
| -rw-r--r-- | scripts/entities/actors/Player.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/entities/actors/Player.cs b/scripts/entities/actors/Player.cs index 324e67a..d1c4c7f 100644 --- a/scripts/entities/actors/Player.cs +++ b/scripts/entities/actors/Player.cs @@ -7,7 +7,16 @@ using System; [GlobalClass] public partial class Player : Actor { - public Player(Vector2I initialPosition, MapData map, ActorDefinition definition) : base(initialPosition, map, definition) + public Inventory inventory; + + public Player(Vector2I initialPosition, MapData map, PlayerDefinition definition) : base(initialPosition, map, definition) { + SetDefinition(definition); + } + + public void SetDefinition(PlayerDefinition definition) { + inventory = new(definition.InventoryCapacity); + + AddChild(inventory); } } |
