public void DebugDraw(IDebug debug) { if (_menuState.IsMenuOpen) { return; } if (IsDebugMode()) { if (_debugType == 0) { DebugDrawEntities(debug); } else if (_debugType == 1) { DebugDrawPlaceList(debug); } else if (_debugType == 2) { debug.Println("Press X to return to title screen"); } } else { debug.Println($"MAP: {Kh2.Constants.WorldIds[Kernel.World]}{Kernel.Area:D02}"); debug.Println($"POS ({_camera.CameraPosition.X:F0}, {_camera.CameraPosition.Y:F0}, {_camera.CameraPosition.Z:F0})"); debug.Println($"LKT ({_camera.CameraLookAt.X:F0}, {_camera.CameraLookAt.Y:F0}, {_camera.CameraLookAt.Z:F0})"); } }
public void DebugDraw(IDebug debug) { if (_menuState.IsMenuOpen) { return; } if (IsDebugMode()) { if (_debugType == 0) { DebugDrawEntities(debug); } else if (_debugType == 1) { DebugDrawPlaceList(debug); } else if (_debugType == 2) { debug.Println("Press X to return to title screen"); } } else { debug.Println($"MAP: {Constants.WorldIds[_worldId]}{_placeId:D02}"); debug.Println($"POS ({_camera.CameraPosition.X:F0}, {_camera.CameraPosition.Y:F0}, {_camera.CameraPosition.Z:F0})"); debug.Println($"YPR ({_camera.CameraRotationYawPitchRoll.X:F0}, {_camera.CameraRotationYawPitchRoll.Y:F0}, {_camera.CameraRotationYawPitchRoll.Z:F0})"); } }
private void DebugDrawPlaceList(IDebug debug) { debug.Println("MAP SELECTION"); debug.Println(""); foreach (var place in _places.Skip(_debugPlaceCursor)) { debug.Print($"{(place.Index == _debugPlaceCursor ? '>' : ' ')} "); debug.Print($"{Constants.WorldIds[place.WorldId]}{place.PlaceId:D02} "); debug.Println(place.MessageId); } }
public void DebugDraw(IDebug debug) { if (_menuState.IsMenuOpen) { return; } if (Kernel.DebugMode) { debug.Println($"MAP: {Kh2.Constants.WorldIds[Kernel.World]}{Kernel.Area:D02}"); debug.Println($"POS ({_camera.CameraPosition.X:F0}, {_camera.CameraPosition.Y:F0}, {_camera.CameraPosition.Z:F0})"); debug.Println($"LKT ({_camera.CameraLookAt.X:F0}, {_camera.CameraLookAt.Y:F0}, {_camera.CameraLookAt.Z:F0})"); } }
private void DebugDrawObjentryList(IDebug debug) { debug.Println("OBJENTRY SELECTION"); debug.Println(""); var index = 0; foreach (var entry in _kernel.ObjEntries) { if (index >= _debugObjentryCursor) { debug.Print($"{(index == _debugObjentryCursor ? '>' : ' ')} "); debug.Print($"{entry.ObjectId:X04} "); debug.Println(entry.ModelName.Replace('_', '-')); } index++; } }
public void DebugDraw(IDebug debug) { debug.Println("TITLE SCREEN"); }