Basic universe management, generation and simulation flow

This commit is contained in:
Aslan 2026-01-26 10:19:40 -05:00
parent 4c078dbede
commit 78fceeb95e
29 changed files with 664 additions and 29 deletions

26
scripts/Universe.cs Normal file
View file

@ -0,0 +1,26 @@
using Godot;
public class Universe
{
public Sector[,,] Sectors;
public Universe(Vector3I size)
{
Sectors = new Sector[size.X, size.Y, size.Z];
}
public Universe(int sizeX, int sizeY, int sizeZ)
{
Sectors = new Sector[sizeX, sizeY, sizeZ];
}
public Sector GetSector(Vector3I coordinates)
{
return Sectors[coordinates.X, coordinates.Y, coordinates.Z];
}
public Sector GetSector(int x, int y, int z)
{
return Sectors[x, y, z];
}
}