Implement RPC Node
This commit is contained in:
parent
f7ee533d5a
commit
605e43273e
13 changed files with 524 additions and 206 deletions
|
|
@ -30,9 +30,9 @@ public class TestGenerator : IGenerator
|
|||
public Vector3I GetSectorOffset(Vector3I universeSize)
|
||||
{
|
||||
return new(
|
||||
(int)Mathf.Floor(UNIVERSE_SIZE.X / 2),
|
||||
(int)Mathf.Floor(UNIVERSE_SIZE.X / 2),
|
||||
(int)Mathf.Floor(UNIVERSE_SIZE.X / 2)
|
||||
(int)Mathf.Floor(universeSize.X / 2),
|
||||
(int)Mathf.Floor(universeSize.X / 2),
|
||||
(int)Mathf.Floor(universeSize.X / 2)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -118,10 +118,13 @@ public class TestGenerator : IGenerator
|
|||
|
||||
for (int i = 0; i < starCount; i++)
|
||||
{
|
||||
Vector3 localCoordinates = GenerateLocalCoordinates();
|
||||
Star star = GenerateStar(sector, localCoordinates);
|
||||
if (coordinates.X == 5 && coordinates.Y == 5 && coordinates.Z == 5)
|
||||
{
|
||||
Vector3 localCoordinates = GenerateLocalCoordinates();
|
||||
Star star = GenerateStar(sector, localCoordinates);
|
||||
|
||||
sector.GameObjects.Add(star);
|
||||
sector.GameObjects.Add(star);
|
||||
}
|
||||
}
|
||||
|
||||
int shipCount = rng.RandiRange(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue