Browse Source

dev command work

hull4
FatBoy-DOTC 1 year ago
parent
commit
8cf1f1e60b
  1. 9
      src/engine/devcmd/cmds/RegionCmd.java

9
src/engine/devcmd/cmds/RegionCmd.java

@ -12,6 +12,7 @@ package engine.devcmd.cmds;
import engine.Enum; import engine.Enum;
import engine.devcmd.AbstractDevCmd; import engine.devcmd.AbstractDevCmd;
import engine.gameManager.BuildingManager; import engine.gameManager.BuildingManager;
import engine.gameManager.ZoneManager;
import engine.objects.*; import engine.objects.*;
import java.lang.reflect.Field; import java.lang.reflect.Field;
@ -46,6 +47,14 @@ public class RegionCmd extends AbstractDevCmd {
output += "Region Height: " + region.lerpY((AbstractCharacter)target) + newline; output += "Region Height: " + region.lerpY((AbstractCharacter)target) + newline;
output += "is Stairs: " + region.isStairs() + newline; output += "is Stairs: " + region.isStairs() + newline;
output += "is Outside: " + region.isOutside(); output += "is Outside: " + region.isOutside();
output += "NavMesh Data" + newline;
Zone zone = ZoneManager.findSmallestZone(((AbstractCharacter) target).loc);
if(zone != null) {
output += "zone: " + zone.zoneName + newline;
output += "on navmesh: " + zone.navMesh.contains(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z) + newline;
}else {
output += "zone: null" + newline;
}
this.throwbackInfo(pc, output); this.throwbackInfo(pc, output);
} }

Loading…
Cancel
Save