载入中...
搜索中...
未找到
VoxelWorldTargetModule.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Module.h"
4
5#include <memory>
6#include <string>
7
8namespace eve::editor { class EditorSession; }
9namespace eve::voxel { class VoxelWorld; }
10namespace eve::voxel_editing { class VoxelWorldTarget; }
11
12namespace eve::voxelworld_target {
13
15class VoxelWorldTargetModule final : public Module {
16public:
18
20 [[nodiscard]] std::unique_ptr<voxel_editing::VoxelWorldTarget> newTarget(
21 std::string id, voxel::VoxelWorld* world) const;
24};
25
26} // namespace eve::voxelworld_target
LogicalId target
World3D * world
std::optional< InteractionSession > session
Definition Tactics.cpp:39
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
Hosts interchangeable editor tools and routes their lifecycle/input.
Sparse chunk map + visibility selection (frustum + distance + face orientation). Meshing is neighbor-...
Definition VoxelWorld.h:60
Non-owning authoring adapter from a live voxel world to the volume protocol.
Script-facing composition module for live voxel-world editing targets.
void bind(editor::EditorSession *session, voxel_editing::VoxelWorldTarget *target) const
Bind borrowed target and session objects without taking ownership. @thread Owner-thread only.
std::unique_ptr< voxel_editing::VoxelWorldTarget > newTarget(std::string id, voxel::VoxelWorld *world) const
Create an independently owned adapter over a borrowed voxel world.
方块类型定义:名字、各面图集纹理、方向性、组合声明。 方向性方块在注册时按 orientation 绕 Y 轴展开成多个"具体类型"变体, 每个变体持有旋转后的各面纹理;渲染端只消费纹理 id,不接触 ...
Definition Chunk.h:12