adjust some protection levels
parent
de76559181
commit
e2b46fa1cc
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace MoonTools.Core.Bonk
|
namespace MoonTools.Core.Bonk
|
||||||
{
|
{
|
||||||
public struct Edge
|
internal struct Edge
|
||||||
{
|
{
|
||||||
public float distance;
|
public float distance;
|
||||||
public Vector2 normal;
|
public Vector2 normal;
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace MoonTools.Core.Bonk
|
||||||
this.cellSize = cellSize;
|
this.cellSize = cellSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public (int, int) Hash(int x, int y)
|
private (int, int) Hash(int x, int y)
|
||||||
{
|
{
|
||||||
return ((int)Math.Floor((float)x / cellSize), (int)Math.Floor((float)y / cellSize));
|
return ((int)Math.Floor((float)x / cellSize), (int)Math.Floor((float)y / cellSize));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue