newlon/scripts/components/level/PoolContainer.cs

24 lines
588 B
C#

using Godot;
using System;
//
// 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 Node Zombies { get; private set; }
[Export]
public Node Plants { get; private set; }
[Export]
public Node Projectiles { get; private set; }
[Export]
public Node Structures { get; private set; }
public override void _Ready()
{
LevelController.Instance.Pools = this;
}
}