From 8cf1f1e60bc0826e5dbc8a0e8f3b400ce94202c0 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 27 Oct 2023 20:07:43 -0500 Subject: [PATCH] dev command work --- src/engine/devcmd/cmds/RegionCmd.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/engine/devcmd/cmds/RegionCmd.java b/src/engine/devcmd/cmds/RegionCmd.java index 7ba118eb..110701e5 100644 --- a/src/engine/devcmd/cmds/RegionCmd.java +++ b/src/engine/devcmd/cmds/RegionCmd.java @@ -12,6 +12,7 @@ package engine.devcmd.cmds; import engine.Enum; import engine.devcmd.AbstractDevCmd; import engine.gameManager.BuildingManager; +import engine.gameManager.ZoneManager; import engine.objects.*; import java.lang.reflect.Field; @@ -46,6 +47,14 @@ public class RegionCmd extends AbstractDevCmd { output += "Region Height: " + region.lerpY((AbstractCharacter)target) + newline; output += "is Stairs: " + region.isStairs() + newline; 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); }