Core/Refactor: Part 2

This commit is contained in:
hondacrx
2018-05-07 22:07:35 -04:00
parent 216db1c23a
commit 9b40067017
93 changed files with 321 additions and 388 deletions
@@ -124,7 +124,7 @@ namespace Game.Collision
if (1.3f * nodeNewW < nodeBoxW)
{
stats.updateBVH2();
int nextIndex1 = tempTree.Count();
int nextIndex1 = tempTree.Count;
// allocate child
tempTree.Add(0);
tempTree.Add(0);
@@ -301,7 +301,7 @@ namespace Game.Collision
public static string getMapFileName(uint mapId)
{
return string.Format("{0:D4}.vmtree", mapId);
return $"{mapId:D4}.vmtree";
}
public void setEnableLineOfSightCalc(bool pVal) { _enableLineOfSightCalc = pVal; }
+1 -1
View File
@@ -271,7 +271,7 @@ namespace Game.Collision
public static string getTileFileName(uint mapID, uint tileX, uint tileY)
{
return string.Format("{0:D4}_{1:D2}_{2:D2}.vmtile", mapID, tileY, tileX);
return $"{mapID:D4}_{tileY:D2}_{tileX:D2}.vmtile";
}
public bool getAreaInfo(ref Vector3 pos, out uint flags, out int adtId, out int rootId, out int groupId)