Player-field manipulations

This commit is contained in:
Фёдор Веселов 2024-09-15 19:19:59 +05:00
commit 74759e9e16
21 changed files with 270 additions and 54 deletions

View file

@ -1,5 +1,5 @@
using Godot;
using System;
using System.Collections.Generic;
//
// PoolContainer contains nodes that contain different elemnts that generate during runtime
@ -17,6 +17,7 @@ public partial class PoolContainer : Node
[Export]
public Node Structures { get; private set; }
public Dictionary<Vector2, IEntity>[] EntityField = { new Dictionary<Vector2, IEntity>(), new Dictionary<Vector2, IEntity>(), new Dictionary<Vector2, IEntity>() };
public override void _Ready()
{
LevelController.Instance.Pools = this;