mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 23:38:28 +07:00
Added DebugMode#PREFAB to draw prefab rects (unimplemented)
This commit is contained in:
@ -86,6 +86,9 @@ public final class Zone extends BBox implements Poolable, Disposable {
|
|||||||
case CHUNK:
|
case CHUNK:
|
||||||
drawDebugChunk(pixmap, x, y);
|
drawDebugChunk(pixmap, x, y);
|
||||||
break;
|
break;
|
||||||
|
case PREFAB:
|
||||||
|
drawDebugPrefab(pixmap, x, y);
|
||||||
|
break;
|
||||||
case TILE:
|
case TILE:
|
||||||
drawDebugTile(pixmap, x, y);
|
drawDebugTile(pixmap, x, y);
|
||||||
break;
|
break;
|
||||||
@ -100,6 +103,10 @@ public final class Zone extends BBox implements Poolable, Disposable {
|
|||||||
for (Chunk chunk : chunks) chunk.drawDebug(pixmap, x, y);
|
for (Chunk chunk : chunks) chunk.drawDebug(pixmap, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void drawDebugPrefab(Pixmap pixmap, int x, int y) {
|
||||||
|
// TODO: implement
|
||||||
|
}
|
||||||
|
|
||||||
void drawDebugTile(Pixmap pixmap, int x, int y) {
|
void drawDebugTile(Pixmap pixmap, int x, int y) {
|
||||||
pixmap.setColor(color);
|
pixmap.setColor(color);
|
||||||
pixmap.drawRectangle(
|
pixmap.drawRectangle(
|
||||||
|
@ -3,6 +3,7 @@ package com.riiablo.map2.util;
|
|||||||
public enum DebugMode {
|
public enum DebugMode {
|
||||||
UNSET,
|
UNSET,
|
||||||
CHUNK,
|
CHUNK,
|
||||||
|
PREFAB,
|
||||||
TILE,
|
TILE,
|
||||||
SUBTILE,
|
SUBTILE,
|
||||||
;
|
;
|
||||||
@ -11,7 +12,8 @@ public enum DebugMode {
|
|||||||
|
|
||||||
static {
|
static {
|
||||||
UNSET.next = CHUNK;
|
UNSET.next = CHUNK;
|
||||||
CHUNK.next = TILE;
|
CHUNK.next = PREFAB;
|
||||||
|
PREFAB.next = TILE;
|
||||||
TILE.next = SUBTILE;
|
TILE.next = SUBTILE;
|
||||||
SUBTILE.next = CHUNK;
|
SUBTILE.next = CHUNK;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user