fix(map): disable generated paths while correcting mapping
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
import { InstancedMapAsset } from "@/world/map-instancing/InstancedMapAsset";
|
||||
import { PATH_TILE_MODEL_PATH } from "@/world/paths/pathConfig";
|
||||
import {
|
||||
PATH_SYSTEM_ENABLED,
|
||||
PATH_TILE_MODEL_PATH,
|
||||
} from "@/world/paths/pathConfig";
|
||||
import { usePathTileData } from "@/world/paths/usePathTileData";
|
||||
|
||||
export function PathSystem(): React.JSX.Element | null {
|
||||
if (!PATH_SYSTEM_ENABLED) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <PathTiles />;
|
||||
}
|
||||
|
||||
function PathTiles(): React.JSX.Element | null {
|
||||
const pathTiles = usePathTileData();
|
||||
|
||||
if (pathTiles.length === 0) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { TERRAIN_COLORS, TERRAIN_TILE_SIZE } from "@/data/world/terrainConfig";
|
||||
|
||||
export const PATH_SURFACE_KEY = "chemin";
|
||||
export const PATH_SYSTEM_ENABLED = false;
|
||||
export const PATH_TILE_MODEL_PATH = TERRAIN_COLORS.chemin.modelPath;
|
||||
export const PATH_TILE_SIZE =
|
||||
TERRAIN_COLORS.chemin.tileSize ?? TERRAIN_TILE_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user