summaryrefslogtreecommitdiff
path: root/scripts/entities/actors/Player.cs
blob: d1c4c7f7132cc0959fbaffd77d91f2d1baf1aad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Godot;
using System;

/// <summary>
/// Classe do jogador. Por enquanto não é diferente do Ator, mas isso pode mudar.
/// </summary>
[GlobalClass]
public partial class Player : Actor
{
	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);
	}
}