More cleanups of custom classes in favor of .NET runtime types.

This commit is contained in:
hondacrx
2021-11-15 18:04:57 -05:00
parent a9a51d0641
commit b026ee7ef8
132 changed files with 373 additions and 6833 deletions
+2 -3
View File
@@ -16,9 +16,8 @@
*/
using Framework.Dynamic;
using Framework.GameMath;
using Game.Entities;
using System;
using System.Numerics;
namespace Game.Movement
{
@@ -80,7 +79,7 @@ namespace Game.Movement
{
if (path.Length > 2 || facing.type == Framework.Constants.MonsterMoveType.Normal)
for (uint i = 0; i < path.Length - 1; ++i)
if ((path[i + 1] - path[i]).GetLength() < 0.1f)
if ((path[i + 1] - path[i]).Length() < 0.1f)
return false;
return true;
}