From 5dde4ce3756100620cbbeffe324b24db73b1fe15 Mon Sep 17 00:00:00 2001 From: Maddy Thorson Date: Sat, 6 Feb 2021 18:38:53 -0800 Subject: [PATCH] Cleaning --- src/Core/Entity.bf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Core/Entity.bf b/src/Core/Entity.bf index 05cd6c0..55a8b7f 100644 --- a/src/Core/Entity.bf +++ b/src/Core/Entity.bf @@ -62,7 +62,9 @@ namespace Strawberry Scene?.Remove(this); } - // ===== Components ===== + /* + Components + */ public T First() where T : Component { @@ -132,7 +134,9 @@ namespace Strawberry } } - // ===== Position ===== + /* + Position + */ public Vector Positionf; @@ -186,7 +190,7 @@ namespace Strawberry [Inline] get { - return (int)Math.Round(Positionf.X); + return Calc.RoundToInt(Positionf.X); } [Inline] @@ -201,7 +205,7 @@ namespace Strawberry [Inline] get { - return (int)Math.Round(Positionf.Y); + return Calc.RoundToInt(Positionf.Y); } [Inline]