Files
hotdesking/Gameplay/Battle.cs

34 lines
650 B
C#

using Godot;
using System;
using System.Collections.Generic;
using System.Linq;
public partial class Battle : Node
{
public bool _current;
public Vector2 _startPosition = new Vector2(890, 340);
public List<Sprite2D> _potted = new();
public List<Ball> _balls = new();
public Table _table;
public List<Pocket> _pockets = new();
public override void _Ready()
{
_table = GetNode<Table>("Table");
_pockets = _table.GetNode<Node2D>("Pockets").GetChildren().Select(n => (Pocket)n).ToList();
}
public override void _Process(double DELTA_)
{
}
public void Start()
{
_current = true;
Globals.Instance._currentBattle = this;
}
}