using Godot; using System.Collections.Generic; namespace Newlon.Components.Level; // // PoolContainer contains nodes that contain different elemnts that generate during runtime // Is not pool in traditional sense, but named like that to prevent repetition // public partial class PoolContainer : Node { [Export] public Node2D Zombies { get; private set; } [Export] public Node2D Plants { get; private set; } [Export] public Node2D Projectiles { get; private set; } [Export] public Node2D Structures { get; private set; } public static PoolContainer Instance {get; private set;} public Dictionary[] EntityField = { new Dictionary(), new Dictionary(), new Dictionary() }; public override void _Ready() { Instance = this; } }