From e2b46fa1cc1c3912c40187eee183497751f5aecf Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Sun, 15 Sep 2019 10:38:21 -0700 Subject: [PATCH] adjust some protection levels --- Bonk/Edge.cs | 2 +- Bonk/SpatialHash.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bonk/Edge.cs b/Bonk/Edge.cs index 8ac02b9..65ccf4e 100644 --- a/Bonk/Edge.cs +++ b/Bonk/Edge.cs @@ -2,7 +2,7 @@ namespace MoonTools.Core.Bonk { - public struct Edge + internal struct Edge { public float distance; public Vector2 normal; diff --git a/Bonk/SpatialHash.cs b/Bonk/SpatialHash.cs index a06b1bc..9dafeb8 100644 --- a/Bonk/SpatialHash.cs +++ b/Bonk/SpatialHash.cs @@ -16,7 +16,7 @@ namespace MoonTools.Core.Bonk 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)); }