Change imports
This commit is contained in:
+3
-3
@@ -3,9 +3,9 @@
|
||||
|
||||
// the texture atlas: the engine's textures and every mod's in one image, built by the client when it joins a server
|
||||
// from the textures in the server's .bmod files
|
||||
import { TEXTURE_SIZE } from "$/common/constants.ts";
|
||||
import type { SpriteRegion } from "$/common/constants.ts";
|
||||
import { type Animation, texture_animation, type TextureJson } from "$/common/texture_animation.ts";
|
||||
import { TEXTURE_SIZE } from "@/common/constants.ts";
|
||||
import type { SpriteRegion } from "@/common/constants.ts";
|
||||
import { type Animation, texture_animation, type TextureJson } from "@/common/texture_animation.ts";
|
||||
import { AnimatedTexture } from "./texture_animations.ts";
|
||||
|
||||
export interface AtlasLayout {
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
// entities, visuals and changing blocks. it's made of what the loaded mods' worldgen data makes the ground of, and other
|
||||
// blocks picked by what they are (a cutout plant, a translucent cube), not by their ids
|
||||
import { Alea } from "@paulaboks/rng";
|
||||
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE } from "$/common/constants.ts";
|
||||
import { type BlockRegistry, EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import { DEFAULT_MODEL } from "$/common/block_models.ts";
|
||||
import { OctaveNoise2D, OctaveNoise3D, smoothstep } from "$/common/worldgen/noise.ts";
|
||||
import { can_stand_on, default_block_value } from "$/common/utils.ts";
|
||||
import type { Biome } from "$/common/worldgen/biomes.ts";
|
||||
import type { NoiseSettingsJson } from "$/common/worldgen/data.ts";
|
||||
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE } from "@/common/constants.ts";
|
||||
import { type BlockRegistry, EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import { DEFAULT_MODEL } from "@/common/block_models.ts";
|
||||
import { OctaveNoise2D, OctaveNoise3D, smoothstep } from "@/common/worldgen/noise.ts";
|
||||
import { can_stand_on, default_block_value } from "@/common/utils.ts";
|
||||
import type { Biome } from "@/common/worldgen/biomes.ts";
|
||||
import type { NoiseSettingsJson } from "@/common/worldgen/data.ts";
|
||||
|
||||
const SEED = "benchmark";
|
||||
// chunks go from -LEVEL_RADIUS to LEVEL_RADIUS - 1 each way. the outermost ring is only there so the ones inside it
|
||||
|
||||
@@ -7,17 +7,17 @@
|
||||
// so what's around the player doesn't change the numbers. each scene is timed with frames paced by the display, then
|
||||
// with frames back to back (see render_debug.uncapped), after a warmup. meshing the whole level is timed too, the
|
||||
// first time and again. the report says what the computer and the browser are, see report.ts
|
||||
import { Camera } from "$/client/camera.ts";
|
||||
import { ClientLevel } from "$/client/level/client_level.ts";
|
||||
import type { GameRenderer } from "$/client/rendering/game_renderer.ts";
|
||||
import { block_visuals } from "$/client/rendering/visuals.ts";
|
||||
import { draw_item } from "$/client/rendering/render_utils.ts";
|
||||
import { InputManager } from "$/client/input_manager.ts";
|
||||
import { type FrameSample, profiler } from "$/client/profiler.ts";
|
||||
import { RemotePlayer } from "$/client/entity/remote_player.ts";
|
||||
import { RemoteEntity } from "$/client/entity/remote_entity.ts";
|
||||
import { ItemEntity } from "$/client/entity/item_entity.ts";
|
||||
import { tick_texture_animations } from "$/client/texture_animations.ts";
|
||||
import { Camera } from "@/client/camera.ts";
|
||||
import { ClientLevel } from "@/client/level/client_level.ts";
|
||||
import type { GameRenderer } from "@/client/rendering/game_renderer.ts";
|
||||
import { block_visuals } from "@/client/rendering/visuals.ts";
|
||||
import { draw_item } from "@/client/rendering/render_utils.ts";
|
||||
import { InputManager } from "@/client/input_manager.ts";
|
||||
import { type FrameSample, profiler } from "@/client/profiler.ts";
|
||||
import { RemotePlayer } from "@/client/entity/remote_player.ts";
|
||||
import { RemoteEntity } from "@/client/entity/remote_entity.ts";
|
||||
import { ItemEntity } from "@/client/entity/item_entity.ts";
|
||||
import { tick_texture_animations } from "@/client/texture_animations.ts";
|
||||
import {
|
||||
adapter_info,
|
||||
device,
|
||||
@@ -26,15 +26,15 @@ import {
|
||||
render_debug,
|
||||
render_stats,
|
||||
set_canvas_size,
|
||||
} from "$/client/renderer/mod.ts";
|
||||
import { ID_MASK, SLOT_SIZE, STATE_SHIFT } from "$/common/constants.ts";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { TIMES_OF_DAY } from "$/common/time.ts";
|
||||
import { type BlockRegistry, EverythingRegistry, RENDER_LAYERS } from "$/common/everything_registry.ts";
|
||||
import type { EntityJson } from "$/common/mod_data.ts";
|
||||
import type { ModListing } from "$/common/mod_loader.ts";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import { display_name } from "$/common/utils.ts";
|
||||
} from "@/client/renderer/mod.ts";
|
||||
import { ID_MASK, SLOT_SIZE, STATE_SHIFT } from "@/common/constants.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { TIMES_OF_DAY } from "@/common/time.ts";
|
||||
import { type BlockRegistry, EverythingRegistry, RENDER_LAYERS } from "@/common/everything_registry.ts";
|
||||
import type { EntityJson } from "@/common/mod_data.ts";
|
||||
import type { ModListing } from "@/common/mod_loader.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import { display_name } from "@/common/utils.ts";
|
||||
import {
|
||||
bench_blocks,
|
||||
type BenchBlocks,
|
||||
|
||||
+5
-5
@@ -22,11 +22,11 @@ import { InputManager } from "./input_manager.ts";
|
||||
import { Connection } from "./network.ts";
|
||||
import { PauseScreen } from "./gui/pause_screen.ts";
|
||||
import { back_to_title } from "./gui/title_screen.ts";
|
||||
import { TICK_DELTA } from "$/common/constants.ts";
|
||||
import { Container } from "$/common/inventory.ts";
|
||||
import { PLAYER_MENU } from "$/common/protocol.ts";
|
||||
import { type BlockRegistry, EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import type { EntityJson } from "$/common/mod_data.ts";
|
||||
import { TICK_DELTA } from "@/common/constants.ts";
|
||||
import { Container } from "@/common/inventory.ts";
|
||||
import { PLAYER_MENU } from "@/common/protocol.ts";
|
||||
import { type BlockRegistry, EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import type { EntityJson } from "@/common/mod_data.ts";
|
||||
import { tick_texture_animations } from "./texture_animations.ts";
|
||||
import type { RenderBenchmark } from "./benchmark/benchmark.ts";
|
||||
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { point_inside_rec } from "$/common/utils.ts";
|
||||
import { InputManager } from "$/client/input_manager.ts";
|
||||
import { TextInput } from "$/client/gui/widgets.ts";
|
||||
import { point_inside_rec } from "@/common/utils.ts";
|
||||
import { InputManager } from "@/client/input_manager.ts";
|
||||
import { TextInput } from "@/client/gui/widgets.ts";
|
||||
import { begin_clip, draw_rect, draw_rect_stroke, draw_text, end_clip } from "./renderer/mod.ts";
|
||||
|
||||
const HEADER_HEIGHT = 24;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { physics } from "$/common/physics.ts";
|
||||
import { physics } from "@/common/physics.ts";
|
||||
import type { ClientLevel } from "../level/client_level.ts";
|
||||
|
||||
// anything that exists in the level and moves, like minecraft's Entity. position is the middle of its feet.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import type { EntityInfo } from "$/common/protocol.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import type { EntityInfo } from "@/common/protocol.ts";
|
||||
import type { ClientLevel } from "../level/client_level.ts";
|
||||
import { Entity } from "./entity.ts";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { PLAYER_EYE_HEIGHT, PLAYER_HEIGHT, PLAYER_SWIM_EYE_HEIGHT, TICK_DELTA } from "$/common/constants.ts";
|
||||
import { physics } from "$/common/physics.ts";
|
||||
import { PLAYER_EYE_HEIGHT, PLAYER_HEIGHT, PLAYER_SWIM_EYE_HEIGHT, TICK_DELTA } from "@/common/constants.ts";
|
||||
import { physics } from "@/common/physics.ts";
|
||||
import type { Client } from "../client.ts";
|
||||
import { InputManager } from "../input_manager.ts";
|
||||
import { ClientInventories } from "../inventory.ts";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { PLAYER_EYE_HEIGHT, PLAYER_HEIGHT, PLAYER_SWIM_HEIGHT, PLAYER_WIDTH } from "$/common/constants.ts";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import { PLAYER_EYE_HEIGHT, PLAYER_HEIGHT, PLAYER_SWIM_HEIGHT, PLAYER_WIDTH } from "@/common/constants.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import type { ClientLevel } from "../level/client_level.ts";
|
||||
import type { Texture } from "../renderer/mod.ts";
|
||||
import { decode_skin } from "../skins.ts";
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { EntityData, EntityEvent, EntityInfo } from "$/common/protocol.ts";
|
||||
import type { EntityJson } from "$/common/mod_data.ts";
|
||||
import { EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import { wrap_angle } from "$/common/utils.ts";
|
||||
import type { EntityData, EntityEvent, EntityInfo } from "@/common/protocol.ts";
|
||||
import type { EntityJson } from "@/common/mod_data.ts";
|
||||
import { EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import { wrap_angle } from "@/common/utils.ts";
|
||||
import type { ClientLevel } from "../level/client_level.ts";
|
||||
import { Entity } from "./entity.ts";
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { EntityEvent, PlayerInfo } from "$/common/protocol.ts";
|
||||
import { TICK_DELTA } from "$/common/constants.ts";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import type { EntityEvent, PlayerInfo } from "@/common/protocol.ts";
|
||||
import { TICK_DELTA } from "@/common/constants.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import type { ClientLevel } from "../level/client_level.ts";
|
||||
import { Player } from "./player.ts";
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// the fluids' rules from the mods' shared scripts on this client, the same as the server's (see common/fluids.ts), for
|
||||
// drawing fluids and naming them in tooltips. its own module so those don't import client/mods.ts, which loads the mods
|
||||
// and makes it again for each server's
|
||||
import { FluidRules } from "$/common/fluids.ts";
|
||||
import { FluidRules } from "@/common/fluids.ts";
|
||||
|
||||
export let fluid_rules = new FluidRules(() => undefined);
|
||||
|
||||
|
||||
+7
-7
@@ -1,16 +1,16 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { BlockRegistry, EverythingRegistry, ItemRegistry } from "$/common/everything_registry.ts";
|
||||
import { AIR, FACE_OFFSETS, TICK_DELTA } from "$/common/constants.ts";
|
||||
import { BlockRegistry, EverythingRegistry, ItemRegistry } from "@/common/everything_registry.ts";
|
||||
import { AIR, FACE_OFFSETS, TICK_DELTA } from "@/common/constants.ts";
|
||||
import type { Client } from "./client.ts";
|
||||
import type { BlockHitResult } from "./level/client_level.ts";
|
||||
import type { Container } from "$/common/inventory.ts";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { box_overlaps_block, can_place, fluid_block, placement_target, waterlog_placement } from "$/common/utils.ts";
|
||||
import type { Container } from "@/common/inventory.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { box_overlaps_block, can_place, fluid_block, placement_target, waterlog_placement } from "@/common/utils.ts";
|
||||
import { block_rules, predict_neighbors } from "./mods.ts";
|
||||
import { collision_shape_at } from "$/common/block_shapes.ts";
|
||||
import type { EntityJson } from "$/common/mod_data.ts";
|
||||
import { collision_shape_at } from "@/common/block_shapes.ts";
|
||||
import type { EntityJson } from "@/common/mod_data.ts";
|
||||
import { RemoteEntity } from "./entity/remote_entity.ts";
|
||||
import { Player } from "./entity/player.ts";
|
||||
import type { Entity } from "./entity/entity.ts";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { canvas, draw_rect, draw_text } from "$/client/renderer/mod.ts";
|
||||
import { canvas, draw_rect, draw_text } from "@/client/renderer/mod.ts";
|
||||
|
||||
const LINE_HEIGHT = 24;
|
||||
const VISIBLE_SECONDS = 10;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { Marked } from "marked";
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import { mod_credits } from "$/client/mods.ts";
|
||||
import { canvas, draw_rect } from "$/client/renderer/mod.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import { mod_credits } from "@/client/mods.ts";
|
||||
import { canvas, draw_rect } from "@/client/renderer/mod.ts";
|
||||
import { GuiScreen } from "./gui_screen.ts";
|
||||
|
||||
// credits come from servers' mods, so markdown only: raw html is shown as text and links can't run code
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { Client } from "$/client/client.ts";
|
||||
import { DebugUI } from "$/client/debug_ui.ts";
|
||||
import { format_clock } from "$/common/time.ts";
|
||||
import { profiler, type SectionStats } from "$/client/profiler.ts";
|
||||
import { canvas, gpu_timer, render_debug, render_stats } from "$/client/renderer/mod.ts";
|
||||
import { RENDER_LAYERS } from "$/common/everything_registry.ts";
|
||||
import { atlas_png } from "$/client/atlas.ts";
|
||||
import { RenderBenchmark } from "$/client/benchmark/benchmark.ts";
|
||||
import { format_report } from "$/client/benchmark/report.ts";
|
||||
import type { Client } from "@/client/client.ts";
|
||||
import { DebugUI } from "@/client/debug_ui.ts";
|
||||
import { format_clock } from "@/common/time.ts";
|
||||
import { profiler, type SectionStats } from "@/client/profiler.ts";
|
||||
import { canvas, gpu_timer, render_debug, render_stats } from "@/client/renderer/mod.ts";
|
||||
import { RENDER_LAYERS } from "@/common/everything_registry.ts";
|
||||
import { atlas_png } from "@/client/atlas.ts";
|
||||
import { RenderBenchmark } from "@/client/benchmark/benchmark.ts";
|
||||
import { format_report } from "@/client/benchmark/report.ts";
|
||||
|
||||
// how often the totals that go through every chunk are worked out again, so the overlay doesn't slow the frames it's
|
||||
// measuring
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "$/client/renderer/mod.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "@/client/renderer/mod.ts";
|
||||
import { GuiScreen } from "./gui_screen.ts";
|
||||
import { back_to_title } from "./title_screen.ts";
|
||||
import { Button, TEXT_HEIGHT, TEXT_SCALE } from "./widgets.ts";
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { GuiScreen } from "./gui_screen.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "$/client/renderer/mod.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "@/client/renderer/mod.ts";
|
||||
import { InputManager } from "../input_manager.ts";
|
||||
import type { Client } from "../client.ts";
|
||||
import { MAX_CHAT_LENGTH, type ServerMessage } from "$/common/protocol.ts";
|
||||
import type { Suggestion } from "$/common/commands.ts";
|
||||
import { MAX_CHAT_LENGTH, type ServerMessage } from "@/common/protocol.ts";
|
||||
import type { Suggestion } from "@/common/commands.ts";
|
||||
import { TEXT_HEIGHT, TextInput } from "./widgets.ts";
|
||||
|
||||
const SCALE = 2;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
// screens mods' client scripts make, see docs/modding/gui/index.md: the screens of their menus, and screens with no
|
||||
// menu. a mod's screen that throws is closed, with the error in the console
|
||||
import { TICK_DELTA } from "$/common/constants.ts";
|
||||
import type { ClientMenu as ModClientMenu, MenuScreen, Screen } from "$/common/mod_api/client.ts";
|
||||
import { TICK_DELTA } from "@/common/constants.ts";
|
||||
import type { ClientMenu as ModClientMenu, MenuScreen, Screen } from "@/common/mod_api/client.ts";
|
||||
import { canvas } from "../renderer/mod.ts";
|
||||
import type { Client } from "../client.ts";
|
||||
import type { ClientMenu } from "../menu.ts";
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
import { GuiMenuScreen } from "./gui_screen.ts";
|
||||
import type { LocalPlayer } from "../entity/local_player.ts";
|
||||
import { EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import type { EffectJson } from "$/common/mod_data.ts";
|
||||
import { TICKS_PER_SECOND } from "$/common/constants.ts";
|
||||
import { display_name } from "$/common/utils.ts";
|
||||
import { ClientMessage, PLAYER_MENU_EXTRA } from "$/common/protocol.ts";
|
||||
import { EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import type { EffectJson } from "@/common/mod_data.ts";
|
||||
import { TICKS_PER_SECOND } from "@/common/constants.ts";
|
||||
import { display_name } from "@/common/utils.ts";
|
||||
import { ClientMessage, PLAYER_MENU_EXTRA } from "@/common/protocol.ts";
|
||||
import { player_menu } from "../menu.ts";
|
||||
import type { ModGraphics } from "./mod_graphics.ts";
|
||||
import { draw_gui_player } from "../rendering/gui_player.ts";
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { SLOT_SIZE } from "$/common/constants.ts";
|
||||
import { SLOT_SIZE } from "@/common/constants.ts";
|
||||
import { draw_gui_sprite, GUI_SCALE } from "./gui_sprites.ts";
|
||||
import { click_slot } from "$/common/inventory.ts";
|
||||
import { ClientMessage, CRAFTING_RESULT_SLOT, PLAYER_MENU } from "$/common/protocol.ts";
|
||||
import { click_slot } from "@/common/inventory.ts";
|
||||
import { ClientMessage, CRAFTING_RESULT_SLOT, PLAYER_MENU } from "@/common/protocol.ts";
|
||||
import { point_inside_rec } from "../../common/utils.ts";
|
||||
import { InputManager } from "../input_manager.ts";
|
||||
import { ClientInventories } from "../inventory.ts";
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import type { Texture } from "$/client/renderer/mod.ts";
|
||||
import { draw_nine_slice } from "$/client/rendering/render_utils.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import type { Texture } from "@/client/renderer/mod.ts";
|
||||
import { draw_nine_slice } from "@/client/rendering/render_utils.ts";
|
||||
import { GUI_ATLAS, type GuiSprite } from "./gui_atlas.ts";
|
||||
|
||||
// gui sprites are drawn 3 times bigger, like minecraft at gui scale 3. SLOT_SIZE is its 18 pixel slot at this scale
|
||||
|
||||
+8
-8
@@ -1,14 +1,14 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { Client } from "$/client/client.ts";
|
||||
import type { LocalPlayer } from "$/client/entity/local_player.ts";
|
||||
import type { ClientInventories } from "$/client/inventory.ts";
|
||||
import { draw_item } from "$/client/rendering/render_utils.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "$/client/renderer/mod.ts";
|
||||
import { display_name } from "$/common/utils.ts";
|
||||
import { clock } from "$/common/time.ts";
|
||||
import { biome_season } from "$/common/worldgen/biomes.ts";
|
||||
import type { Client } from "@/client/client.ts";
|
||||
import type { LocalPlayer } from "@/client/entity/local_player.ts";
|
||||
import type { ClientInventories } from "@/client/inventory.ts";
|
||||
import { draw_item } from "@/client/rendering/render_utils.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "@/client/renderer/mod.ts";
|
||||
import { display_name } from "@/common/utils.ts";
|
||||
import { clock } from "@/common/time.ts";
|
||||
import { biome_season } from "@/common/worldgen/biomes.ts";
|
||||
import { TEXT_HEIGHT, TEXT_SCALE } from "./widgets.ts";
|
||||
import { draw_gui_sprite, GUI_SCALE } from "./gui_sprites.ts";
|
||||
|
||||
|
||||
+10
-10
@@ -4,13 +4,13 @@
|
||||
// the immediate mode drawing mods' client scripts get (Graphics in common/mod_api/client.ts), on top of the renderer.
|
||||
// one per screen, so text inputs keep their text and focus while it's open. mods work in gui pixels, GUI_SCALE canvas
|
||||
// pixels each
|
||||
import { EverythingRegistry, type ItemRegistry } from "$/common/everything_registry.ts";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import type { Color, Graphics } from "$/common/mod_api/client.ts";
|
||||
import type { FluidVariant, KeyCode } from "$/common/mod_api/shared.ts";
|
||||
import { point_inside_rec } from "$/common/utils.ts";
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import { InputManager, type KeyCode as InputKey } from "$/client/input_manager.ts";
|
||||
import { EverythingRegistry, type ItemRegistry } from "@/common/everything_registry.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import type { Color, Graphics } from "@/common/mod_api/client.ts";
|
||||
import type { FluidVariant, KeyCode } from "@/common/mod_api/shared.ts";
|
||||
import { point_inside_rec } from "@/common/utils.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import { InputManager, type KeyCode as InputKey } from "@/client/input_manager.ts";
|
||||
import {
|
||||
begin_clip,
|
||||
canvas,
|
||||
@@ -20,9 +20,9 @@ import {
|
||||
end_clip,
|
||||
measure_text,
|
||||
Texture,
|
||||
} from "$/client/renderer/mod.ts";
|
||||
import { draw_fluid, draw_item } from "$/client/rendering/render_utils.ts";
|
||||
import { get_sprite_region } from "$/client/sprites.ts";
|
||||
} from "@/client/renderer/mod.ts";
|
||||
import { draw_fluid, draw_item } from "@/client/rendering/render_utils.ts";
|
||||
import { get_sprite_region } from "@/client/sprites.ts";
|
||||
import { draw_tooltip, item_tooltip, type TooltipLine } from "./tooltip.ts";
|
||||
import { TEXT_HEIGHT, TEXT_SCALE, TextInput } from "./widgets.ts";
|
||||
import { GUI_ATLAS } from "./gui_atlas.ts";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { Client } from "$/client/client.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "$/client/renderer/mod.ts";
|
||||
import type { Client } from "@/client/client.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "@/client/renderer/mod.ts";
|
||||
import { GuiScreen } from "./gui_screen.ts";
|
||||
import { Button, TEXT_HEIGHT } from "./widgets.ts";
|
||||
import { CreditsScreen } from "./credits_screen.ts";
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { MAX_NAME_LENGTH } from "$/common/protocol.ts";
|
||||
import { InputManager } from "$/client/input_manager.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "$/client/renderer/mod.ts";
|
||||
import { default_server, HandshakeError, server_address, ServerAddress } from "$/client/handshake.ts";
|
||||
import { default_player_name } from "$/client/network.ts";
|
||||
import { MAX_NAME_LENGTH } from "@/common/protocol.ts";
|
||||
import { InputManager } from "@/client/input_manager.ts";
|
||||
import { canvas, draw_rect, draw_text, measure_text } from "@/client/renderer/mod.ts";
|
||||
import { default_server, HandshakeError, server_address, ServerAddress } from "@/client/handshake.ts";
|
||||
import { default_player_name } from "@/client/network.ts";
|
||||
import { GuiScreen } from "./gui_screen.ts";
|
||||
import { CreditsScreen } from "./credits_screen.ts";
|
||||
import { Button, EditBox, TEXT_HEIGHT, TEXT_SCALE, TextInput } from "./widgets.ts";
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
|
||||
// the box next to the mouse saying what an item is, like minecraft's: its name, the fluid in it, what it's worth, then
|
||||
// its lore
|
||||
import { EverythingRegistry, ItemRegistry } from "$/common/everything_registry.ts";
|
||||
import { contained_fluid, type ItemStack, sell_value } from "$/common/inventory.ts";
|
||||
import { display_name } from "$/common/utils.ts";
|
||||
import { fluid_rules } from "$/client/fluid_rules.ts";
|
||||
import { canvas, draw_text, draw_texture_region, measure_text, type Texture } from "$/client/renderer/mod.ts";
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import type { MenuTank } from "$/common/protocol.ts";
|
||||
import { get_sprite_region } from "$/client/sprites.ts";
|
||||
import { EverythingRegistry, ItemRegistry } from "@/common/everything_registry.ts";
|
||||
import { contained_fluid, type ItemStack, sell_value } from "@/common/inventory.ts";
|
||||
import { display_name } from "@/common/utils.ts";
|
||||
import { fluid_rules } from "@/client/fluid_rules.ts";
|
||||
import { canvas, draw_text, draw_texture_region, measure_text, type Texture } from "@/client/renderer/mod.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import type { MenuTank } from "@/common/protocol.ts";
|
||||
import { get_sprite_region } from "@/client/sprites.ts";
|
||||
import { draw_gui_sprite, GUI_SCALE } from "./gui_sprites.ts";
|
||||
import { TEXT_HEIGHT, TEXT_SCALE } from "./widgets.ts";
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { point_inside_rec } from "$/common/utils.ts";
|
||||
import { InputManager, type KeyCode } from "$/client/input_manager.ts";
|
||||
import { draw_rect, draw_text, measure_text } from "$/client/renderer/mod.ts";
|
||||
import { point_inside_rec } from "@/common/utils.ts";
|
||||
import { InputManager, type KeyCode } from "@/client/input_manager.ts";
|
||||
import { draw_rect, draw_text, measure_text } from "@/client/renderer/mod.ts";
|
||||
import { draw_gui_sprite } from "./gui_sprites.ts";
|
||||
|
||||
export const TEXT_SCALE = 2;
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
// connecting to a server and getting what it needs before joining, see docs/modding/networking/index.md:
|
||||
// hello -> welcome, download and check everything, ready -> join
|
||||
import { ClientMessage, PROTOCOL_VERSION, ServerMessage } from "$/common/protocol.ts";
|
||||
import { ClientMessage, PROTOCOL_VERSION, ServerMessage } from "@/common/protocol.ts";
|
||||
|
||||
const CONNECT_TIMEOUT_MS = 5000;
|
||||
const TRUST_KEY_PREFIX = "bworld:trusted:";
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { Container, Cursor } from "$/common/inventory.ts";
|
||||
import type { MenuSlotInfo } from "$/common/protocol.ts";
|
||||
import { Container, Cursor } from "@/common/inventory.ts";
|
||||
import type { MenuSlotInfo } from "@/common/protocol.ts";
|
||||
|
||||
// the local copies of the containers the server syncs to this player
|
||||
export class ClientInventories {
|
||||
|
||||
@@ -8,10 +8,10 @@ import {
|
||||
fluid_block,
|
||||
fluid_in_cell,
|
||||
is_waterlogged,
|
||||
} from "$/common/utils.ts";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { decode_level_chunk } from "$/common/chunk_streaming.ts";
|
||||
import { DEFAULT_WATER_COLOR, foliage_color, grass_color, water_color } from "$/common/worldgen/biome_colors.ts";
|
||||
} from "@/common/utils.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { decode_level_chunk } from "@/common/chunk_streaming.ts";
|
||||
import { DEFAULT_WATER_COLOR, foliage_color, grass_color, water_color } from "@/common/worldgen/biome_colors.ts";
|
||||
import {
|
||||
block_light_emission,
|
||||
block_light_opacity,
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
is_fluid_block,
|
||||
RENDER_LAYERS,
|
||||
RenderLayer,
|
||||
} from "$/common/everything_registry.ts";
|
||||
} from "@/common/everything_registry.ts";
|
||||
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE, Faces, ID_MASK, VOID } from "../../common/constants.ts";
|
||||
import { AssetManager } from "../assets.ts";
|
||||
import { ChunkWorkerPool } from "../chunk_workers.ts";
|
||||
@@ -29,8 +29,8 @@ import { create_index_buffer, create_vertex_buffer, destroy_buffer, Texture } fr
|
||||
import { crosses_planes } from "../workers/translucent_sort.ts";
|
||||
import { Camera } from "../camera.ts";
|
||||
import type { Entity } from "../entity/entity.ts";
|
||||
import type { ModelJson } from "$/common/block_models.ts";
|
||||
import { clip_shape, collision_shape_at, FULL_SHAPE, type Shape, shape_at } from "$/common/block_shapes.ts";
|
||||
import type { ModelJson } from "@/common/block_models.ts";
|
||||
import { clip_shape, collision_shape_at, FULL_SHAPE, type Shape, shape_at } from "@/common/block_shapes.ts";
|
||||
import { BlockPredictions } from "./block_predictions.ts";
|
||||
import { block_visuals, Visuals } from "../rendering/visuals.ts";
|
||||
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ import { connect, HandshakeError, is_trusted, join, remember_trust, ServerAddres
|
||||
import { build_atlas, engine_textures } from "./atlas.ts";
|
||||
import { confirm_mods } from "./confirm_mods.ts";
|
||||
import { set_texture_animations } from "./texture_animations.ts";
|
||||
import type { TextureJson } from "$/common/texture_animation.ts";
|
||||
import { ModLoadError } from "$/common/mod_loader.ts";
|
||||
import type { TextureJson } from "@/common/texture_animation.ts";
|
||||
import { ModLoadError } from "@/common/mod_loader.ts";
|
||||
import {
|
||||
begin_drawing,
|
||||
canvas,
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
|
||||
// the client's copy of a menu, like neoforge's client menu: built from what the server sent when it opened, kept up
|
||||
// to date with what it syncs. clicks go to the server, which decides what they do
|
||||
import { Container } from "$/common/inventory.ts";
|
||||
import { Container } from "@/common/inventory.ts";
|
||||
import {
|
||||
CRAFTING_RESULT_SLOT,
|
||||
type MenuFluidSlotInfo,
|
||||
@@ -11,9 +11,9 @@ import {
|
||||
type MenuTank,
|
||||
PLAYER_MENU,
|
||||
PLAYER_MENU_EXTRA,
|
||||
} from "$/common/protocol.ts";
|
||||
} from "@/common/protocol.ts";
|
||||
import type { ClientInventories } from "./inventory.ts";
|
||||
import type { ItemStack as ApiItemStack } from "$/common/mod_api/client.ts";
|
||||
import type { ItemStack as ApiItemStack } from "@/common/mod_api/client.ts";
|
||||
|
||||
export interface ClientSlot {
|
||||
// where its item is on this client
|
||||
|
||||
+16
-16
@@ -3,9 +3,9 @@
|
||||
|
||||
// loads the mods the server lists: downloads their .bmod files, registers their data, then runs their client scripts.
|
||||
// see docs/modding/networking/index.md
|
||||
import { AIR } from "$/common/constants.ts";
|
||||
import { BlockRegistry, EverythingRegistry, type ItemRegistry } from "$/common/everything_registry.ts";
|
||||
import type { ClientContext, ClientMenu, InventoryOverlay, KeyMappings, MenuScreen } from "$/common/mod_api/client.ts";
|
||||
import { AIR } from "@/common/constants.ts";
|
||||
import { BlockRegistry, EverythingRegistry, type ItemRegistry } from "@/common/everything_registry.ts";
|
||||
import type { ClientContext, ClientMenu, InventoryOverlay, KeyMappings, MenuScreen } from "@/common/mod_api/client.ts";
|
||||
import {
|
||||
check_recipe_types,
|
||||
ModListing,
|
||||
@@ -14,25 +14,25 @@ import {
|
||||
RecipeBook,
|
||||
register_mod_data,
|
||||
shared_recipes_api,
|
||||
} from "$/common/mod_loader.ts";
|
||||
import { type Bmod, read_bmod } from "$/common/bmod.ts";
|
||||
import { get_state_value, set_state_value, shared_items_api } from "$/common/utils.ts";
|
||||
import { BlockRules } from "$/common/block_rules.ts";
|
||||
import { fluid_exists, FluidRules, same_fluid } from "$/common/fluids.ts";
|
||||
} from "@/common/mod_loader.ts";
|
||||
import { type Bmod, read_bmod } from "@/common/bmod.ts";
|
||||
import { get_state_value, set_state_value, shared_items_api } from "@/common/utils.ts";
|
||||
import { BlockRules } from "@/common/block_rules.ts";
|
||||
import { fluid_exists, FluidRules, same_fluid } from "@/common/fluids.ts";
|
||||
import { fluid_rules, set_fluid_rules } from "./fluid_rules.ts";
|
||||
import { covers_face, EMPTY_SHAPE, FULL_SHAPE, is_solid } from "$/common/block_shapes.ts";
|
||||
import type { SharedContext, SharedWorld } from "$/common/mod_api/shared.ts";
|
||||
import { tag_api } from "$/common/tags.ts";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { covers_face, EMPTY_SHAPE, FULL_SHAPE, is_solid } from "@/common/block_shapes.ts";
|
||||
import type { SharedContext, SharedWorld } from "@/common/mod_api/shared.ts";
|
||||
import { tag_api } from "@/common/tags.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import type { Client } from "./client.ts";
|
||||
import { code_url, fetch_verified } from "./handshake.ts";
|
||||
import { GuiModScreen } from "./gui/gui_mod_screens.ts";
|
||||
import { clear_hooks, expose_engine, loading_mod } from "$/common/hooks.ts";
|
||||
import { common_engine } from "$/common/engine_modules.ts";
|
||||
import { clear_hooks, expose_engine, loading_mod } from "@/common/hooks.ts";
|
||||
import { common_engine } from "@/common/engine_modules.ts";
|
||||
import { client_engine } from "./engine_modules.ts";
|
||||
import { block_visuals } from "./rendering/visuals.ts";
|
||||
import { biome_season } from "$/common/worldgen/biomes.ts";
|
||||
import type { LootTableJson } from "$/common/loot.ts";
|
||||
import { biome_season } from "@/common/worldgen/biomes.ts";
|
||||
import type { LootTableJson } from "@/common/loot.ts";
|
||||
|
||||
// each loaded mod's credits file, for the credits screen
|
||||
export const mod_credits: { name: string; version: string; text: string }[] = [];
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { ClientMessage, EntityInfo, MenuSlotInfo, PlayerInfo, ServerMessage } from "$/common/protocol.ts";
|
||||
import type { ModListing } from "$/common/mod_loader.ts";
|
||||
import { ClientMessage, EntityInfo, MenuSlotInfo, PlayerInfo, ServerMessage } from "@/common/protocol.ts";
|
||||
import type { ModListing } from "@/common/mod_loader.ts";
|
||||
import type { Join, ServerSocket, Welcome } from "./handshake.ts";
|
||||
|
||||
export class Connection {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { ServerMessage } from "$/common/protocol.ts";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import type { ServerMessage } from "@/common/protocol.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import type { Client } from "./client.ts";
|
||||
import { GuiModMenuScreen } from "./gui/gui_mod_screens.ts";
|
||||
import { ClientMenu } from "./menu.ts";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Camera } from "../camera.ts";
|
||||
import { mat4 } from "gl-matrix";
|
||||
import type { RenderLayer } from "$/common/everything_registry.ts";
|
||||
import type { RenderLayer } from "@/common/everything_registry.ts";
|
||||
import { TERRAIN_VERTEX_BYTES } from "../workers/chunk_messages.ts";
|
||||
import { GpuTimer } from "./gpu_timing.ts";
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
// lighting entities like minecraft: one light level per entity each frame, at its eyes, looked up in the same lightmap
|
||||
// as terrain and multiplied into its vertex colors. burning ones have full block light
|
||||
import type { Entity } from "$/client/entity/entity.ts";
|
||||
import type { ClientLevel } from "$/client/level/client_level.ts";
|
||||
import { light_color } from "$/client/renderer/mod.ts";
|
||||
import type { Entity } from "@/client/entity/entity.ts";
|
||||
import type { ClientLevel } from "@/client/level/client_level.ts";
|
||||
import { light_color } from "@/client/renderer/mod.ts";
|
||||
import type { Vec3 } from "./player_renderer.ts";
|
||||
|
||||
// the color for the light at a point, times tint (like the hurt flash)
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
// animation files yet: the model turns to the entity's yaw, a bone named "head" to where it looks, and bones named
|
||||
// like minecraft's humanoid ones (right_arm, left_arm, right_leg, left_leg) swing as it walks, the right arm when it
|
||||
// attacks too. entities without a model are their texture facing the camera, like minecraft's fishing hook
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import type { Camera } from "$/client/camera.ts";
|
||||
import type { RemoteEntity } from "$/client/entity/remote_entity.ts";
|
||||
import { push_vertex, type Texture } from "$/client/renderer/mod.ts";
|
||||
import { get_sprite_region } from "$/client/sprites.ts";
|
||||
import type { SpriteRegion } from "$/common/constants.ts";
|
||||
import { EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import type { EntityBoneJson, EntityJson, EntityModelJson } from "$/common/mod_data.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import type { Camera } from "@/client/camera.ts";
|
||||
import type { RemoteEntity } from "@/client/entity/remote_entity.ts";
|
||||
import { push_vertex, type Texture } from "@/client/renderer/mod.ts";
|
||||
import { get_sprite_region } from "@/client/sprites.ts";
|
||||
import type { SpriteRegion } from "@/common/constants.ts";
|
||||
import { EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import type { EntityBoneJson, EntityJson, EntityModelJson } from "@/common/mod_data.ts";
|
||||
import { HURT_TINT } from "./player_renderer.ts";
|
||||
import { IDENTITY, model_pivot, multiply, rotation_around, type Vec3 } from "./model_math.ts";
|
||||
import { push_model } from "./model_renderer.ts";
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { Client } from "$/client/client.ts";
|
||||
import type { Camera } from "$/client/camera.ts";
|
||||
import type { ClientLevel } from "$/client/level/client_level.ts";
|
||||
import type { Client } from "@/client/client.ts";
|
||||
import type { Camera } from "@/client/camera.ts";
|
||||
import type { ClientLevel } from "@/client/level/client_level.ts";
|
||||
import {
|
||||
begin_mode_3d,
|
||||
canvas,
|
||||
@@ -12,14 +12,14 @@ import {
|
||||
end_mode_3d,
|
||||
set_render_time,
|
||||
update_lightmap,
|
||||
} from "$/client/renderer/mod.ts";
|
||||
import { daylight } from "$/common/time.ts";
|
||||
import { Hud } from "$/client/gui/hud.ts";
|
||||
import { DebugOverlay } from "$/client/gui/debug_overlay.ts";
|
||||
} from "@/client/renderer/mod.ts";
|
||||
import { daylight } from "@/common/time.ts";
|
||||
import { Hud } from "@/client/gui/hud.ts";
|
||||
import { DebugOverlay } from "@/client/gui/debug_overlay.ts";
|
||||
import { LevelRenderer } from "./level_renderer.ts";
|
||||
import { HandRenderer } from "./hand_renderer.ts";
|
||||
import { render_nameplates } from "./nameplate_renderer.ts";
|
||||
import { profiler } from "$/client/profiler.ts";
|
||||
import { profiler } from "@/client/profiler.ts";
|
||||
|
||||
// the sky at noon and in the middle of the night
|
||||
const DAY_SKY = [0.69, 0.8, 1];
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// they wear, like their curios. the gui has no depth buffer, so the faces are drawn back to front with the ones facing
|
||||
// away left out, like 3d items in slots
|
||||
import { push_vertex, type Texture, use_texture } from "../renderer/mod.ts";
|
||||
import type { ItemStack } from "$/common/inventory.ts";
|
||||
import type { ItemStack } from "@/common/inventory.ts";
|
||||
import { AssetManager } from "../assets.ts";
|
||||
import { rotation_around } from "./model_math.ts";
|
||||
import { part_point, PARTS, type PlayerPose, pose_at, pose_to_world, SLIM_PARTS } from "./player_model.ts";
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
// ItemInHandRenderer. with empty hands it's their right arm, in their skin, like minecraft's
|
||||
// FirstPersonHandsAndItemsRenderer.renderPlayerArm
|
||||
import { mat4, vec3 } from "gl-matrix";
|
||||
import type { ItemStack } from "$/common/inventory.ts";
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import type { LocalPlayer } from "$/client/entity/local_player.ts";
|
||||
import type { ItemStack } from "@/common/inventory.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import type { LocalPlayer } from "@/client/entity/local_player.ts";
|
||||
import {
|
||||
begin_view_model,
|
||||
end_mode_3d,
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
set_current_texture,
|
||||
Texture,
|
||||
use_texture,
|
||||
} from "$/client/renderer/mod.ts";
|
||||
} from "@/client/renderer/mod.ts";
|
||||
import { display_transform, drawn_as_model, item_model_of, push_item } from "./item_renderer.ts";
|
||||
import { push_cube, type Vec3 } from "./player_renderer.ts";
|
||||
import { right_arm } from "./player_model.ts";
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
// the 3d model of a flat item, like minecraft's item/generated: its sprite on the front and back, one pixel apart, with
|
||||
// a side face along every edge between a pixel that can be seen and one that can't (or the sprite's border)
|
||||
import { TEXTURE_SIZE } from "$/common/constants.ts";
|
||||
import { opaque_pixels, type OpaqueMask } from "$/client/atlas.ts";
|
||||
import { TEXTURE_SIZE } from "@/common/constants.ts";
|
||||
import { opaque_pixels, type OpaqueMask } from "@/client/atlas.ts";
|
||||
|
||||
export interface ItemQuad {
|
||||
// 4 corners counter clockwise seen from outside. x from -0.5 to 0.5 and y from 0 to 1 across the sprite, z its
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { mat4, vec3 } from "gl-matrix";
|
||||
import type { SpriteRegion } from "$/common/constants.ts";
|
||||
import { BlockRegistry, EverythingRegistry, type ItemLayer, ItemRegistry } from "$/common/everything_registry.ts";
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import { get_sprite_region } from "$/client/sprites.ts";
|
||||
import type { ItemEntity } from "$/client/entity/item_entity.ts";
|
||||
import { contained_fluid, type ItemData, ItemStack } from "$/common/inventory.ts";
|
||||
import type { FluidVariant } from "$/common/mod_api/shared.ts";
|
||||
import type { FluidJson } from "$/common/mod_data.ts";
|
||||
import { light_color, push_vertex, Texture } from "$/client/renderer/mod.ts";
|
||||
import type { SpriteRegion } from "@/common/constants.ts";
|
||||
import { BlockRegistry, EverythingRegistry, type ItemLayer, ItemRegistry } from "@/common/everything_registry.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import { get_sprite_region } from "@/client/sprites.ts";
|
||||
import type { ItemEntity } from "@/client/entity/item_entity.ts";
|
||||
import { contained_fluid, type ItemData, ItemStack } from "@/common/inventory.ts";
|
||||
import type { FluidVariant } from "@/common/mod_api/shared.ts";
|
||||
import type { FluidJson } from "@/common/mod_data.ts";
|
||||
import { light_color, push_vertex, Texture } from "@/client/renderer/mod.ts";
|
||||
import {
|
||||
bake_model,
|
||||
type BakedQuad,
|
||||
@@ -24,15 +24,15 @@ import {
|
||||
item_tint,
|
||||
type ModelDisplay,
|
||||
type ModelJson,
|
||||
} from "$/common/block_models.ts";
|
||||
} from "@/common/block_models.ts";
|
||||
import { item_model, type ItemQuad } from "./item_model.ts";
|
||||
import { get_state_value, item_texture } from "$/common/utils.ts";
|
||||
import { ID_MASK, TEXTURE_SIZE } from "$/common/constants.ts";
|
||||
import type { ClientLevel } from "$/client/level/client_level.ts";
|
||||
import { get_state_value, item_texture } from "@/common/utils.ts";
|
||||
import { ID_MASK, TEXTURE_SIZE } from "@/common/constants.ts";
|
||||
import type { ClientLevel } from "@/client/level/client_level.ts";
|
||||
import { entity_tint } from "./entity_light.ts";
|
||||
import type { Vec3 } from "./player_renderer.ts";
|
||||
import { fluid_rules } from "$/client/fluid_rules.ts";
|
||||
import { color_rgb, tint_without_biome, type TintColor } from "$/common/worldgen/biome_colors.ts";
|
||||
import { fluid_rules } from "@/client/fluid_rules.ts";
|
||||
import { color_rgb, tint_without_biome, type TintColor } from "@/common/worldgen/biome_colors.ts";
|
||||
|
||||
// how big items on the ground are drawn, minecraft's ground transform
|
||||
const BLOCK_SCALE = 0.25;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { type Chunk, CHUNK_SIZE, type ChunkMesh, ClientLevel } from "$/client/level/client_level.ts";
|
||||
import { profiler } from "$/client/profiler.ts";
|
||||
import { Camera } from "$/client/camera.ts";
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import { get_sprite_region } from "$/client/sprites.ts";
|
||||
import type { MultiPlayerGameMode } from "$/client/game_mode.ts";
|
||||
import type { Entity } from "$/client/entity/entity.ts";
|
||||
import { RemotePlayer } from "$/client/entity/remote_player.ts";
|
||||
import { ItemEntity } from "$/client/entity/item_entity.ts";
|
||||
import { type Chunk, CHUNK_SIZE, type ChunkMesh, ClientLevel } from "@/client/level/client_level.ts";
|
||||
import { profiler } from "@/client/profiler.ts";
|
||||
import { Camera } from "@/client/camera.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import { get_sprite_region } from "@/client/sprites.ts";
|
||||
import type { MultiPlayerGameMode } from "@/client/game_mode.ts";
|
||||
import type { Entity } from "@/client/entity/entity.ts";
|
||||
import { RemotePlayer } from "@/client/entity/remote_player.ts";
|
||||
import { ItemEntity } from "@/client/entity/item_entity.ts";
|
||||
import { render_block_items, render_item_entity } from "./item_renderer.ts";
|
||||
import { HURT_TINT, player_pose, render_player } from "./player_renderer.ts";
|
||||
import { render_worn } from "./worn_renderer.ts";
|
||||
@@ -17,7 +17,7 @@ import type { PlayerPose } from "./player_model.ts";
|
||||
import type { Vec3 } from "./model_math.ts";
|
||||
import { render_mod_entity } from "./entity_renderer.ts";
|
||||
import { entity_tint } from "./entity_light.ts";
|
||||
import { RemoteEntity } from "$/client/entity/remote_entity.ts";
|
||||
import { RemoteEntity } from "@/client/entity/remote_entity.ts";
|
||||
import {
|
||||
draw_terrain,
|
||||
flush_batch,
|
||||
@@ -28,14 +28,14 @@ import {
|
||||
use_texture,
|
||||
view_projection,
|
||||
white_tex,
|
||||
} from "$/client/renderer/mod.ts";
|
||||
import { type BlockRegistry, EverythingRegistry, type RenderLayer } from "$/common/everything_registry.ts";
|
||||
import { bake_block, type BakedQuad, FACE_INDEX, looks_by_state, type ModelJson } from "$/common/block_models.ts";
|
||||
import { BREAK_STAGES, ID_MASK } from "$/common/constants.ts";
|
||||
import { type Shape, shape_at } from "$/common/block_shapes.ts";
|
||||
import type { BlockHitResult } from "$/client/level/client_level.ts";
|
||||
import { FACE_GROUPS, UNALIGNED_GROUP } from "$/client/workers/chunk_messages.ts";
|
||||
import { FACE_AXIS, FACE_NORMALS } from "$/client/workers/translucent_sort.ts";
|
||||
} from "@/client/renderer/mod.ts";
|
||||
import { type BlockRegistry, EverythingRegistry, type RenderLayer } from "@/common/everything_registry.ts";
|
||||
import { bake_block, type BakedQuad, FACE_INDEX, looks_by_state, type ModelJson } from "@/common/block_models.ts";
|
||||
import { BREAK_STAGES, ID_MASK } from "@/common/constants.ts";
|
||||
import { type Shape, shape_at } from "@/common/block_shapes.ts";
|
||||
import type { BlockHitResult } from "@/client/level/client_level.ts";
|
||||
import { FACE_GROUPS, UNALIGNED_GROUP } from "@/client/workers/chunk_messages.ts";
|
||||
import { FACE_AXIS, FACE_NORMALS } from "@/client/workers/translucent_sort.ts";
|
||||
import { Frustum } from "./frustum.ts";
|
||||
import { draw_visuals } from "./visuals.ts";
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
// turning and moving the parts of models: entity models' bones, the player's parts and what's worn on them. no
|
||||
// drawing here, so tests can use it
|
||||
import type { EntityBoneJson, EntityModelJson } from "$/common/mod_data.ts";
|
||||
import type { EntityBoneJson, EntityModelJson } from "@/common/mod_data.ts";
|
||||
|
||||
export type Vec3 = [number, number, number];
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// entity models' boxes, for mod entities and for what players wear. the atlas has to be the current texture
|
||||
import type { Texture } from "$/client/renderer/mod.ts";
|
||||
import type { SpriteRegion } from "$/common/constants.ts";
|
||||
import type { EntityBoneJson, EntityModelJson } from "$/common/mod_data.ts";
|
||||
import type { Texture } from "@/client/renderer/mod.ts";
|
||||
import type { SpriteRegion } from "@/common/constants.ts";
|
||||
import type { EntityBoneJson, EntityModelJson } from "@/common/mod_data.ts";
|
||||
import { apply, bone_matrices, type Matrix, type Vec3 } from "./model_math.ts";
|
||||
import { push_box, type VertexSink } from "./player_renderer.ts";
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { Camera } from "$/client/camera.ts";
|
||||
import type { Entity } from "$/client/entity/entity.ts";
|
||||
import type { ClientLevel } from "$/client/level/client_level.ts";
|
||||
import { RemotePlayer } from "$/client/entity/remote_player.ts";
|
||||
import { draw_rect_3d, draw_text_3d, flush_batch, measure_text, type Plane3d } from "$/client/renderer/mod.ts";
|
||||
import type { Camera } from "@/client/camera.ts";
|
||||
import type { Entity } from "@/client/entity/entity.ts";
|
||||
import type { ClientLevel } from "@/client/level/client_level.ts";
|
||||
import { RemotePlayer } from "@/client/entity/remote_player.ts";
|
||||
import { draw_rect_3d, draw_text_3d, flush_batch, measure_text, type Plane3d } from "@/client/renderer/mod.ts";
|
||||
|
||||
// how big a font pixel is, in blocks. m6x11's letters are 11 pixels tall, so about a quarter of a block
|
||||
const SCALE = 0.022;
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
// minecraft's player model and how it's posed each frame, for drawing players and what they wear. no drawing here, so
|
||||
// tests can use it
|
||||
import { PLAYER_HEIGHT, PLAYER_SWIM_HEIGHT } from "$/common/constants.ts";
|
||||
import { PLAYER_PARTS, type WornProperties } from "$/common/everything_registry.ts";
|
||||
import type { EntityBoneJson, EntityModelJson } from "$/common/mod_data.ts";
|
||||
import { PLAYER_HEIGHT, PLAYER_SWIM_HEIGHT } from "@/common/constants.ts";
|
||||
import { PLAYER_PARTS, type WornProperties } from "@/common/everything_registry.ts";
|
||||
import type { EntityBoneJson, EntityModelJson } from "@/common/mod_data.ts";
|
||||
import { apply, IDENTITY, type Matrix, multiply, rotation_around, type Vec3 } from "./model_math.ts";
|
||||
|
||||
export type PartName = typeof PLAYER_PARTS[number];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { Player } from "$/client/entity/player.ts";
|
||||
import { push_vertex, type Texture } from "$/client/renderer/mod.ts";
|
||||
import type { Player } from "@/client/entity/player.ts";
|
||||
import { push_vertex, type Texture } from "@/client/renderer/mod.ts";
|
||||
import type { Vec3 } from "./model_math.ts";
|
||||
import {
|
||||
type ModelPart,
|
||||
|
||||
@@ -2,20 +2,20 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { mat4, vec3 } from "gl-matrix";
|
||||
import { SLOT_SIZE } from "$/common/constants.ts";
|
||||
import { get_sprite_region } from "$/client/sprites.ts";
|
||||
import { BlockRegistry, EverythingRegistry, ItemRegistry } from "$/common/everything_registry.ts";
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import type { FluidVariant } from "$/common/mod_api/shared.ts";
|
||||
import { item_texture } from "$/common/utils.ts";
|
||||
import { SLOT_SIZE } from "@/common/constants.ts";
|
||||
import { get_sprite_region } from "@/client/sprites.ts";
|
||||
import { BlockRegistry, EverythingRegistry, ItemRegistry } from "@/common/everything_registry.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import type { FluidVariant } from "@/common/mod_api/shared.ts";
|
||||
import { item_texture } from "@/common/utils.ts";
|
||||
import {
|
||||
cube_face_texture,
|
||||
cube_face_tint,
|
||||
type DisplayTransform,
|
||||
ITEM_FACE_SHADE,
|
||||
item_tint,
|
||||
} from "$/common/block_models.ts";
|
||||
} from "@/common/block_models.ts";
|
||||
import {
|
||||
display_matrix,
|
||||
fluid_look,
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
push_vertex,
|
||||
Texture,
|
||||
use_texture,
|
||||
} from "$/client/renderer/mod.ts";
|
||||
} from "@/client/renderer/mod.ts";
|
||||
|
||||
// the corners keep their size (times scale), the edges stretch along and the middle fills the rest, like minecraft's
|
||||
// nine slice gui sprites. borders are in source pixels
|
||||
|
||||
@@ -16,8 +16,8 @@ import type {
|
||||
TransformedInstance,
|
||||
Visual,
|
||||
VisualBlock,
|
||||
} from "$/common/mod_api/client.ts";
|
||||
import { type BlockRegistry, EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
} from "@/common/mod_api/client.ts";
|
||||
import { type BlockRegistry, EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import {
|
||||
bake_block,
|
||||
bake_model,
|
||||
@@ -27,11 +27,11 @@ import {
|
||||
type ModelElementJson,
|
||||
type ModelJson,
|
||||
states_of,
|
||||
} from "$/common/block_models.ts";
|
||||
import { CHUNK_AREA, CHUNK_SIZE, ID_MASK } from "$/common/constants.ts";
|
||||
import type { ModelFace } from "$/common/mod_data.ts";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import { chunk_key, item_texture } from "$/common/utils.ts";
|
||||
} from "@/common/block_models.ts";
|
||||
import { CHUNK_AREA, CHUNK_SIZE, ID_MASK } from "@/common/constants.ts";
|
||||
import type { ModelFace } from "@/common/mod_data.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import { chunk_key, item_texture } from "@/common/utils.ts";
|
||||
import {
|
||||
create_vertex_buffer,
|
||||
destroy_buffer,
|
||||
@@ -40,8 +40,8 @@ import {
|
||||
MODEL_VERTEX_BYTES,
|
||||
type Texture,
|
||||
write_buffer,
|
||||
} from "$/client/renderer/mod.ts";
|
||||
import { get_sprite_region } from "$/client/sprites.ts";
|
||||
} from "@/client/renderer/mod.ts";
|
||||
import { get_sprite_region } from "@/client/sprites.ts";
|
||||
import { fluid_look, ground_transform, item_layers, push_item, sprite_u, sprite_v } from "./item_renderer.ts";
|
||||
|
||||
export interface VisualRegistration {
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
// what players wear, like curios' render layer: each worn item's model (see WornProperties) on the player, its bones
|
||||
// named like the player's parts turned the way those parts are, so it moves with them like minecraft's
|
||||
// TransformCopyingHumanoidModel. see docs/modding/items/index.md
|
||||
import { AssetManager } from "$/client/assets.ts";
|
||||
import type { Player } from "$/client/entity/player.ts";
|
||||
import type { ItemStack } from "$/common/inventory.ts";
|
||||
import type { Texture } from "$/client/renderer/mod.ts";
|
||||
import { get_sprite_region } from "$/client/sprites.ts";
|
||||
import { EverythingRegistry, type ItemRegistry } from "$/common/everything_registry.ts";
|
||||
import type { EntityBoneJson, EntityModelJson } from "$/common/mod_data.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import type { Player } from "@/client/entity/player.ts";
|
||||
import type { ItemStack } from "@/common/inventory.ts";
|
||||
import type { Texture } from "@/client/renderer/mod.ts";
|
||||
import { get_sprite_region } from "@/client/sprites.ts";
|
||||
import { EverythingRegistry, type ItemRegistry } from "@/common/everything_registry.ts";
|
||||
import type { EntityBoneJson, EntityModelJson } from "@/common/mod_data.ts";
|
||||
import { IDENTITY, type Vec3 } from "./model_math.ts";
|
||||
import { push_model } from "./model_renderer.ts";
|
||||
import type { VertexSink } from "./player_renderer.ts";
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { type SpriteRegion, TEXTURE_SIZE } from "$/common/constants.ts";
|
||||
import { type SpriteRegion, TEXTURE_SIZE } from "@/common/constants.ts";
|
||||
import { AssetManager } from "./assets.ts";
|
||||
|
||||
type TexturesInfo = Record<string, SpriteRegion>;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
// animated textures play like minecraft's: the atlas holds one frame of each, and every tick the ones whose frame
|
||||
// changed copy the new frame's pixels over it. models never change, only the atlas does
|
||||
import type { SpriteRegion } from "$/common/constants.ts";
|
||||
import type { Animation } from "$/common/texture_animation.ts";
|
||||
import type { SpriteRegion } from "@/common/constants.ts";
|
||||
import type { Animation } from "@/common/texture_animation.ts";
|
||||
|
||||
// pixels to copy into a texture's place in the atlas: frame_width × frame_height of them, starting at offset bytes
|
||||
// into data, rows bytes_per_row apart
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { BlockRegistry } from "$/common/everything_registry.ts";
|
||||
import type { SpriteRegion } from "$/common/constants.ts";
|
||||
import type { ModelJson } from "$/common/block_models.ts";
|
||||
import type { BlockRegistry } from "@/common/everything_registry.ts";
|
||||
import type { SpriteRegion } from "@/common/constants.ts";
|
||||
import type { ModelJson } from "@/common/block_models.ts";
|
||||
import type { SortType } from "./translucent_sort.ts";
|
||||
|
||||
// messages between the main thread and the chunk workers
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
block_light_opacity,
|
||||
type BlockRegistry,
|
||||
type RenderLayer,
|
||||
} from "$/common/everything_registry.ts";
|
||||
} from "@/common/everything_registry.ts";
|
||||
import {
|
||||
AIR,
|
||||
CHUNK_AREA,
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
ID_MASK,
|
||||
type SpriteRegion,
|
||||
TEXTURE_SIZE,
|
||||
} from "$/common/constants.ts";
|
||||
} from "@/common/constants.ts";
|
||||
import type { Texture } from "../renderer/types.ts";
|
||||
import {
|
||||
FACE_GROUPS,
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
is_tinted,
|
||||
looks_by_state,
|
||||
type ModelJson,
|
||||
} from "$/common/block_models.ts";
|
||||
} from "@/common/block_models.ts";
|
||||
import {
|
||||
choose_sort_type,
|
||||
FACE_AXIS,
|
||||
@@ -56,7 +56,7 @@ import {
|
||||
REGION_VOID,
|
||||
} from "./lighting.ts";
|
||||
import { cell_index, fluid_quads, type FluidCell } from "./fluid_mesh.ts";
|
||||
import { fluid_height, fluid_textures } from "$/common/everything_registry.ts";
|
||||
import { fluid_height, fluid_textures } from "@/common/everything_registry.ts";
|
||||
|
||||
type TexturesInfo = Record<string, SpriteRegion>;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// fluids drawn like luanti's flowing fluids (MapblockMeshGenerator::drawLiquidNode in its content_mapblock.cpp): each
|
||||
// corner of the surface is as high as the fluid around it, so it slopes down where it flows away from a source. the
|
||||
// sides between two cells of it are left out, except where it pours down past the surface of the one beside it
|
||||
import { FACE_CORNERS } from "$/common/block_models.ts";
|
||||
import { FACE_CORNERS } from "@/common/block_models.ts";
|
||||
|
||||
// one of the 3x3 cells around a fluid and level with it, and the cell above that one
|
||||
export interface FluidCell {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
// 3x3 chunks around the chunk being meshed, which gives the same result: light reaches at most 15
|
||||
// blocks, so nothing outside those chunks can light the middle one or its border
|
||||
|
||||
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE, ID_MASK } from "$/common/constants.ts";
|
||||
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE, ID_MASK } from "@/common/constants.ts";
|
||||
|
||||
export const REGION_SIZE = CHUNK_SIZE * 3;
|
||||
export const REGION_LAYER = REGION_SIZE * REGION_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user