Basic universe management, generation and simulation flow
This commit is contained in:
parent
4c078dbede
commit
78fceeb95e
29 changed files with 664 additions and 29 deletions
|
|
@ -1,3 +1,24 @@
|
|||
public static partial class Helpers
|
||||
using Godot;
|
||||
|
||||
public static class Helpers
|
||||
{
|
||||
public static bool IsBetweenInclusive(int value, int min, int max)
|
||||
{
|
||||
return value >= min && value <= max;
|
||||
}
|
||||
|
||||
public static bool IsInsideArea(Vector3 area, Vector3 coordinates)
|
||||
{
|
||||
if (coordinates.X >= area.X && coordinates.Y >= area.Y && coordinates.Z >= area.Z)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (coordinates.X < -area.X && coordinates.Y < -area.Y && coordinates.Z < -area.Z)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue