@divinevoxel/vlox 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Analyzer/Analyzer.d.ts +18 -0
- package/Analyzer/Analyzer.js +91 -0
- package/Analyzer/AnalyzerProcessor.d.ts +6 -0
- package/Analyzer/AnalyzerProcessor.js +39 -0
- package/Analyzer/AnalyzerUpdater.d.ts +10 -0
- package/Analyzer/AnalyzerUpdater.js +13 -0
- package/Archive/Archive.types.d.ts +176 -0
- package/Archive/Archive.types.js +1 -0
- package/Archive/Functions/ArchiveArea.d.ts +10 -0
- package/Archive/Functions/ArchiveArea.js +315 -0
- package/Archive/Functions/ArchiveColumn.d.ts +8 -0
- package/Archive/Functions/ArchiveColumn.js +293 -0
- package/Archive/Functions/ImportColumn.d.ts +9 -0
- package/Archive/Functions/ImportColumn.js +213 -0
- package/Archive/Functions/Palettes.d.ts +5 -0
- package/Archive/Functions/Palettes.js +46 -0
- package/Archive/Functions/index.d.ts +3 -0
- package/Archive/Functions/index.js +3 -0
- package/Archive/index.d.ts +2 -0
- package/Archive/index.js +2 -0
- package/Contexts/Constructor/ConstrcutorTheads.d.ts +9 -0
- package/Contexts/Constructor/ConstrcutorTheads.js +22 -0
- package/Contexts/Constructor/ConstructorRemoteThreadTasks.d.ts +7 -0
- package/Contexts/Constructor/ConstructorRemoteThreadTasks.js +8 -0
- package/Contexts/Constructor/ConstructorTasks.d.ts +2 -0
- package/Contexts/Constructor/ConstructorTasks.js +82 -0
- package/Contexts/Constructor/ConstructorTasksIds.d.ts +21 -0
- package/Contexts/Constructor/ConstructorTasksIds.js +22 -0
- package/Contexts/Constructor/ConstructorThreadState.d.ts +5 -0
- package/Contexts/Constructor/ConstructorThreadState.js +16 -0
- package/Contexts/Constructor/DVEConstructorTasksQueues.d.ts +27 -0
- package/Contexts/Constructor/DVEConstructorTasksQueues.js +73 -0
- package/Contexts/Constructor/DivineVoxelEngineConstructor.d.ts +17 -0
- package/Contexts/Constructor/DivineVoxelEngineConstructor.js +30 -0
- package/Contexts/Constructor/InitWorker.d.ts +2 -0
- package/Contexts/Constructor/InitWorker.js +20 -0
- package/Contexts/Constructor/Tasks/TasksRequest.d.ts +141 -0
- package/Contexts/Constructor/Tasks/TasksRequest.js +218 -0
- package/Contexts/Constructor/Tasks/VoxelUpdate.d.ts +4 -0
- package/Contexts/Constructor/Tasks/VoxelUpdate.js +151 -0
- package/Contexts/Constructor/index.d.ts +1 -0
- package/Contexts/Constructor/index.js +1 -0
- package/Contexts/Nexus/DivineVoxelEngineNexus.d.ts +19 -0
- package/Contexts/Nexus/DivineVoxelEngineNexus.js +29 -0
- package/Contexts/Nexus/InitWorker.d.ts +2 -0
- package/Contexts/Nexus/InitWorker.js +15 -0
- package/Contexts/Nexus/Threads/NexusTheads.d.ts +13 -0
- package/Contexts/Nexus/Threads/NexusTheads.js +25 -0
- package/Contexts/Nexus/Threads/NexusThreadState.d.ts +7 -0
- package/Contexts/Nexus/Threads/NexusThreadState.js +10 -0
- package/Contexts/Nexus/index.d.ts +1 -0
- package/Contexts/Nexus/index.js +1 -0
- package/Contexts/Render/DVERenderThreads.d.ts +11 -0
- package/Contexts/Render/DVERenderThreads.js +47 -0
- package/Contexts/Render/DivineVoxelEngineRender.d.ts +70 -0
- package/Contexts/Render/DivineVoxelEngineRender.js +54 -0
- package/Contexts/Render/InitThreads.d.ts +2 -0
- package/Contexts/Render/InitThreads.js +53 -0
- package/Contexts/Render/Scene/MeshManager.d.ts +15 -0
- package/Contexts/Render/Scene/MeshManager.js +105 -0
- package/Contexts/Render/Scene/MeshRegister.d.ts +32 -0
- package/Contexts/Render/Scene/MeshRegister.js +195 -0
- package/Contexts/Render/Scene/MeshRegister.types.d.ts +13 -0
- package/Contexts/Render/Scene/MeshRegister.types.js +1 -0
- package/Contexts/Render/Tasks/RenderTasks.d.ts +7 -0
- package/Contexts/Render/Tasks/RenderTasks.js +24 -0
- package/Contexts/Render/Tasks/RenderTasks.types.d.ts +27 -0
- package/Contexts/Render/Tasks/RenderTasks.types.js +1 -0
- package/Contexts/Render/index.d.ts +1 -0
- package/Contexts/Render/index.js +1 -0
- package/Contexts/RichWorld/DivineStarVoxelEngineRichWorld.d.ts +21 -0
- package/Contexts/RichWorld/DivineStarVoxelEngineRichWorld.js +33 -0
- package/Contexts/RichWorld/InitWorker.d.ts +2 -0
- package/Contexts/RichWorld/InitWorker.js +15 -0
- package/Contexts/RichWorld/RichDataRegister.d.ts +24 -0
- package/Contexts/RichWorld/RichDataRegister.js +110 -0
- package/Contexts/RichWorld/RichWorldTasks.d.ts +2 -0
- package/Contexts/RichWorld/RichWorldTasks.js +58 -0
- package/Contexts/RichWorld/Threads/RichWorldThreadState.d.ts +7 -0
- package/Contexts/RichWorld/Threads/RichWorldThreadState.js +10 -0
- package/Contexts/RichWorld/Threads/RichWorldThreads.d.ts +10 -0
- package/Contexts/RichWorld/Threads/RichWorldThreads.js +22 -0
- package/Contexts/RichWorld/Tools/RichColumnDataTool.d.ts +7 -0
- package/Contexts/RichWorld/Tools/RichColumnDataTool.js +18 -0
- package/Contexts/RichWorld/Tools/RichDataTool.d.ts +14 -0
- package/Contexts/RichWorld/Tools/RichDataTool.js +71 -0
- package/Contexts/RichWorld/index.d.ts +1 -0
- package/Contexts/RichWorld/index.js +1 -0
- package/Contexts/World/Data/Classes/RegisterDataManager.d.ts +8 -0
- package/Contexts/World/Data/Classes/RegisterDataManager.js +22 -0
- package/Contexts/World/Data/Classes/StructBuilder.d.ts +31 -0
- package/Contexts/World/Data/Classes/StructBuilder.js +173 -0
- package/Contexts/World/Data/DVEFDataStructs.d.ts +7 -0
- package/Contexts/World/Data/DVEFDataStructs.js +21 -0
- package/Contexts/World/Data/DataRegister.d.ts +8 -0
- package/Contexts/World/Data/DataRegister.js +9 -0
- package/Contexts/World/Data/DataStructBuilders.d.ts +12 -0
- package/Contexts/World/Data/DataStructBuilders.js +23 -0
- package/Contexts/World/Data/DataSync.d.ts +51 -0
- package/Contexts/World/Data/DataSync.js +215 -0
- package/Contexts/World/Data/DataSyncNode.d.ts +28 -0
- package/Contexts/World/Data/DataSyncNode.js +54 -0
- package/Contexts/World/Data/Generators/SubstanceDataGenerator.d.ts +5 -0
- package/Contexts/World/Data/Generators/SubstanceDataGenerator.js +36 -0
- package/Contexts/World/Data/Generators/VoxelDataGenerator.d.ts +9 -0
- package/Contexts/World/Data/Generators/VoxelDataGenerator.js +64 -0
- package/Contexts/World/Data/Generators/WorldDataGenerator.d.ts +12 -0
- package/Contexts/World/Data/Generators/WorldDataGenerator.js +24 -0
- package/Contexts/World/Data/Managers/DataManagers.d.ts +5 -0
- package/Contexts/World/Data/Managers/DataManagers.js +126 -0
- package/Contexts/World/Data/StructBuilders/SubstanceStructBuilder.d.ts +2 -0
- package/Contexts/World/Data/StructBuilders/SubstanceStructBuilder.js +57 -0
- package/Contexts/World/Data/StructBuilders/VoxelStructBuilder.d.ts +2 -0
- package/Contexts/World/Data/StructBuilders/VoxelStructBuilder.js +68 -0
- package/Contexts/World/Data/Structs/ChunkStruct.d.ts +3 -0
- package/Contexts/World/Data/Structs/ChunkStruct.js +29 -0
- package/Contexts/World/Data/Structs/ColumnStruct.d.ts +3 -0
- package/Contexts/World/Data/Structs/ColumnStruct.js +45 -0
- package/Contexts/World/Data/Structs/RegionStruct.d.ts +4 -0
- package/Contexts/World/Data/Structs/RegionStruct.js +50 -0
- package/Contexts/World/DivineVoxelEngineWorld.d.ts +34 -0
- package/Contexts/World/DivineVoxelEngineWorld.js +64 -0
- package/Contexts/World/InitWorker.d.ts +2 -0
- package/Contexts/World/InitWorker.js +35 -0
- package/Contexts/World/Lock/WorldLock.d.ts +12 -0
- package/Contexts/World/Lock/WorldLock.js +86 -0
- package/Contexts/World/Tasks/WorldTasks.d.ts +11 -0
- package/Contexts/World/Tasks/WorldTasks.js +98 -0
- package/Contexts/World/WorldDataHooks.d.ts +1 -0
- package/Contexts/World/WorldDataHooks.js +96 -0
- package/Contexts/World/WorldThreadState.d.ts +4 -0
- package/Contexts/World/WorldThreadState.js +6 -0
- package/Contexts/World/WorldThreads.d.ts +14 -0
- package/Contexts/World/WorldThreads.js +34 -0
- package/Contexts/World/index.d.ts +1 -0
- package/Contexts/World/index.js +1 -0
- package/Data/Constants/DVEFDataSyncIds.d.ts +12 -0
- package/Data/Constants/DVEFDataSyncIds.js +13 -0
- package/Data/Constants/DataHeaders.d.ts +6 -0
- package/Data/Constants/DataHeaders.js +6 -0
- package/Data/Constants/Structs/ChunkStructProperties.d.ts +10 -0
- package/Data/Constants/Structs/ChunkStructProperties.js +10 -0
- package/Data/Constants/Structs/SubstanceStructProperties.d.ts +8 -0
- package/Data/Constants/Structs/SubstanceStructProperties.js +8 -0
- package/Data/Constants/Structs/VoxelStructProperties.d.ts +11 -0
- package/Data/Constants/Structs/VoxelStructProperties.js +11 -0
- package/Data/Constants/Structs/WorldDataStructProperties.d.ts +8 -0
- package/Data/Constants/Structs/WorldDataStructProperties.js +8 -0
- package/Data/Constants/SubstanceTagIds.d.ts +12 -0
- package/Data/Constants/SubstanceTagIds.js +13 -0
- package/Data/Constants/VoxelTagIds.d.ts +14 -0
- package/Data/Constants/VoxelTagIds.js +15 -0
- package/Data/DVEFDataCore.d.ts +7 -0
- package/Data/DVEFDataCore.js +7 -0
- package/Data/DVEFDataManager.d.ts +31 -0
- package/Data/DVEFDataManager.js +23 -0
- package/Data/DVEFDataSyncNode.d.ts +20 -0
- package/Data/DVEFDataSyncNode.js +53 -0
- package/Data/DataHooks.d.ts +51 -0
- package/Data/DataHooks.js +29 -0
- package/Data/LightData.d.ts +150 -0
- package/Data/LightData.js +402 -0
- package/Data/RegionHeaderRegister.d.ts +29 -0
- package/Data/RegionHeaderRegister.js +56 -0
- package/Data/Register/MappedDataRegister.d.ts +5 -0
- package/Data/Register/MappedDataRegister.js +8 -0
- package/Data/Register/MappedRegisterBase.d.ts +14 -0
- package/Data/Register/MappedRegisterBase.js +50 -0
- package/Data/Settings/EngineSettings.d.ts +27 -0
- package/Data/Settings/EngineSettings.js +81 -0
- package/Data/Substance/SubstancePalette.d.ts +9 -0
- package/Data/Substance/SubstancePalette.js +16 -0
- package/Data/Substance/SubstanceStruct.d.ts +20 -0
- package/Data/Substance/SubstanceStruct.js +19 -0
- package/Data/Types/DataSync.types.d.ts +3 -0
- package/Data/Types/DataSync.types.js +1 -0
- package/Data/Types/DimensionData.types.d.ts +9 -0
- package/Data/Types/DimensionData.types.js +1 -0
- package/Data/Types/RichWorldData.types.d.ts +15 -0
- package/Data/Types/RichWorldData.types.js +1 -0
- package/Data/Types/VoxelData.types.d.ts +7 -0
- package/Data/Types/VoxelData.types.js +1 -0
- package/Data/Types/WorldData.types.d.ts +10 -0
- package/Data/Types/WorldData.types.js +19 -0
- package/Data/Voxel/VoxelPalette.d.ts +12 -0
- package/Data/Voxel/VoxelPalette.js +22 -0
- package/Data/Voxel/VoxelStruct.d.ts +26 -0
- package/Data/Voxel/VoxelStruct.js +29 -0
- package/Data/VoxelShaderData.d.ts +17 -0
- package/Data/VoxelShaderData.js +34 -0
- package/Data/VoxelStateReader.d.ts +12 -0
- package/Data/VoxelStateReader.js +30 -0
- package/Data/World/Classes/Chunk.d.ts +21 -0
- package/Data/World/Classes/Chunk.js +46 -0
- package/Data/World/Classes/Column.d.ts +17 -0
- package/Data/World/Classes/Column.js +31 -0
- package/Data/World/Classes/Dimension.d.ts +14 -0
- package/Data/World/Classes/Dimension.js +20 -0
- package/Data/World/Classes/Region.d.ts +23 -0
- package/Data/World/Classes/Region.js +67 -0
- package/Data/World/Classes/index.d.ts +4 -0
- package/Data/World/Classes/index.js +4 -0
- package/Data/World/DimensionsRegister.d.ts +14 -0
- package/Data/World/DimensionsRegister.js +53 -0
- package/Data/World/WorldBounds.d.ts +19 -0
- package/Data/World/WorldBounds.js +34 -0
- package/Data/World/WorldPainter.d.ts +11 -0
- package/Data/World/WorldPainter.js +71 -0
- package/Data/World/WorldRegister.d.ts +51 -0
- package/Data/World/WorldRegister.js +220 -0
- package/Data/World/WorldRegisterCache.d.ts +23 -0
- package/Data/World/WorldRegisterCache.js +68 -0
- package/Data/World/WorldSpaces.d.ts +4 -0
- package/Data/World/WorldSpaces.js +23 -0
- package/DataLoader/Broswer/DataHandler.d.ts +20 -0
- package/DataLoader/Broswer/DataHandler.js +54 -0
- package/DataLoader/Broswer/WorldDataBase.d.ts +26 -0
- package/DataLoader/Broswer/WorldDataBase.js +81 -0
- package/DataLoader/Broswer/WorldDataBaseManager.d.ts +6 -0
- package/DataLoader/Broswer/WorldDataBaseManager.js +30 -0
- package/DataLoader/Broswer/WorldDataTool.d.ts +16 -0
- package/DataLoader/Broswer/WorldDataTool.js +64 -0
- package/DataLoader/Broswer/index.d.ts +1 -0
- package/DataLoader/Broswer/index.js +1 -0
- package/DataLoader/Constructor/DataLoaderTasks.d.ts +2 -0
- package/DataLoader/Constructor/DataLoaderTasks.js +14 -0
- package/DataLoader/Constructor/DivineVoxelEngineDataLoaderConstructor.d.ts +9 -0
- package/DataLoader/Constructor/DivineVoxelEngineDataLoaderConstructor.js +17 -0
- package/DataLoader/Constructor/WorldDataSerializer.d.ts +15 -0
- package/DataLoader/Constructor/WorldDataSerializer.js +54 -0
- package/DataLoader/Constructor/index.d.ts +1 -0
- package/DataLoader/Constructor/index.js +1 -0
- package/DataLoader/Node/DivineVoxelEngineData.d.ts +48 -0
- package/DataLoader/Node/DivineVoxelEngineData.js +47 -0
- package/DataLoader/Node/System/RegionSystem.d.ts +28 -0
- package/DataLoader/Node/System/RegionSystem.js +147 -0
- package/DataLoader/Node/System/System.d.ts +13 -0
- package/DataLoader/Node/System/System.js +168 -0
- package/DataLoader/Node/System/SystemPath.d.ts +12 -0
- package/DataLoader/Node/System/SystemPath.js +29 -0
- package/DataLoader/Node/Tools/NodeRegionTool.d.ts +28 -0
- package/DataLoader/Node/Tools/NodeRegionTool.js +134 -0
- package/DataLoader/Node/Util/DVED.util.d.ts +17 -0
- package/DataLoader/Node/Util/DVED.util.js +25 -0
- package/DataLoader/Node/index.d.ts +3 -0
- package/DataLoader/Node/index.js +3 -0
- package/DataLoader/Types/DVED.types.d.ts +13 -0
- package/DataLoader/Types/DVED.types.js +1 -0
- package/DataLoader/World/DataHandlerWrapper.d.ts +23 -0
- package/DataLoader/World/DataHandlerWrapper.js +179 -0
- package/DataLoader/World/DataLoaderTasks.d.ts +2 -0
- package/DataLoader/World/DataLoaderTasks.js +70 -0
- package/DataLoader/World/DivineVoxelEngineDataLoaderWorld.d.ts +12 -0
- package/DataLoader/World/DivineVoxelEngineDataLoaderWorld.js +17 -0
- package/DataLoader/World/Tools/DataLoaderTool.d.ts +24 -0
- package/DataLoader/World/Tools/DataLoaderTool.js +113 -0
- package/DataLoader/World/Tools/DataSerializerTool.d.ts +8 -0
- package/DataLoader/World/Tools/DataSerializerTool.js +27 -0
- package/DataLoader/World/Tools/LoaderRegister.d.ts +9 -0
- package/DataLoader/World/Tools/LoaderRegister.js +29 -0
- package/IWG/Constants/ColumnState.d.ts +6 -0
- package/IWG/Constants/ColumnState.js +7 -0
- package/IWG/World/Classes/DebouncedTasks.d.ts +16 -0
- package/IWG/World/Classes/DebouncedTasks.js +34 -0
- package/IWG/World/Classes/Generator.d.ts +52 -0
- package/IWG/World/Classes/Generator.js +485 -0
- package/IWG/World/Classes/Tasks/IWGBatchTask.d.ts +7 -0
- package/IWG/World/Classes/Tasks/IWGBatchTask.js +35 -0
- package/IWG/World/Classes/Tasks/IWGSingleTask.d.ts +6 -0
- package/IWG/World/Classes/Tasks/IWGSingleTask.js +29 -0
- package/IWG/World/Classes/Tasks/IWGTaskBase.d.ts +27 -0
- package/IWG/World/Classes/Tasks/IWGTaskBase.js +34 -0
- package/IWG/World/Classes/Tasks/IWGTaskRegister.d.ts +6 -0
- package/IWG/World/Classes/Tasks/IWGTaskRegister.js +14 -0
- package/IWG/World/IWG.d.ts +22 -0
- package/IWG/World/IWG.js +83 -0
- package/IWG/World/Load/InitLoad.d.ts +5 -0
- package/IWG/World/Load/InitLoad.js +17 -0
- package/IWG/World/Load/LoaderBase.d.ts +16 -0
- package/IWG/World/Load/LoaderBase.js +57 -0
- package/IWG/World/Load/SafeExit.d.ts +5 -0
- package/IWG/World/Load/SafeExit.js +16 -0
- package/IWG/World/Load/Teleport.d.ts +9 -0
- package/IWG/World/Load/Teleport.js +26 -0
- package/IWG/World/Tasks/RegisterDefaultTasks.d.ts +1 -0
- package/IWG/World/Tasks/RegisterDefaultTasks.js +12 -0
- package/IWG/World/Tasks/Rendering/IWGBuildTasks.d.ts +8 -0
- package/IWG/World/Tasks/Rendering/IWGBuildTasks.js +26 -0
- package/IWG/World/Tasks/Saving/IWGSaveAndUnloadTasks.d.ts +8 -0
- package/IWG/World/Tasks/Saving/IWGSaveAndUnloadTasks.js +22 -0
- package/IWG/World/Tasks/Saving/IWGSaveTasks.d.ts +8 -0
- package/IWG/World/Tasks/Saving/IWGSaveTasks.js +22 -0
- package/IWG/World/Tasks/WorldGen/IWGDecorateTasks.d.ts +8 -0
- package/IWG/World/Tasks/WorldGen/IWGDecorateTasks.js +29 -0
- package/IWG/World/Tasks/WorldGen/IWGGenerateTasks.d.ts +8 -0
- package/IWG/World/Tasks/WorldGen/IWGGenerateTasks.js +29 -0
- package/IWG/World/Tasks/WorldGen/IWGLoadTasks.d.ts +8 -0
- package/IWG/World/Tasks/WorldGen/IWGLoadTasks.js +58 -0
- package/IWG/World/Tasks/WorldGen/IWGPropagationTasks.d.ts +8 -0
- package/IWG/World/Tasks/WorldGen/IWGPropagationTasks.js +27 -0
- package/IWG/World/Tasks/WorldGen/IWGWorldSunTasks.d.ts +8 -0
- package/IWG/World/Tasks/WorldGen/IWGWorldSunTasks.js +27 -0
- package/IWG/World/Types/IWG.types.d.ts +20 -0
- package/IWG/World/Types/IWG.types.js +7 -0
- package/IWG/World/index.d.ts +2 -0
- package/IWG/World/index.js +2 -0
- package/IWG/index.d.ts +1 -0
- package/IWG/index.js +1 -0
- package/Init/StartConstructor.d.ts +2 -0
- package/Init/StartConstructor.js +8 -0
- package/Init/StartWorld.d.ts +7 -0
- package/Init/StartWorld.js +9 -0
- package/Interfaces/Anaylzer/DVEAnaylzer.d.ts +5 -0
- package/Interfaces/Anaylzer/DVEAnaylzer.js +2 -0
- package/Interfaces/Classes/ThreadManager.d.ts +16 -0
- package/Interfaces/Classes/ThreadManager.js +42 -0
- package/Interfaces/Classes/ThreadState.d.ts +7 -0
- package/Interfaces/Classes/ThreadState.js +7 -0
- package/Interfaces/Common/DataSyncIds.d.ts +8 -0
- package/Interfaces/Common/DataSyncIds.js +9 -0
- package/Interfaces/Data/DVEDataCore.d.ts +6 -0
- package/Interfaces/Data/DVEDataCore.js +2 -0
- package/Interfaces/Data/DataManager.d.ts +13 -0
- package/Interfaces/Data/DataManager.js +14 -0
- package/Interfaces/Data/LocationBoundToolBase.d.ts +24 -0
- package/Interfaces/Data/LocationBoundToolBase.js +61 -0
- package/Interfaces/Data/NumberPalette.d.ts +13 -0
- package/Interfaces/Data/NumberPalette.js +40 -0
- package/Interfaces/Data/RemoteDataSyncNode.d.ts +16 -0
- package/Interfaces/Data/RemoteDataSyncNode.js +36 -0
- package/Interfaces/Data/StringPalette.d.ts +13 -0
- package/Interfaces/Data/StringPalette.js +38 -0
- package/Interfaces/DataLoader/DVEDataHandler.d.ts +17 -0
- package/Interfaces/DataLoader/DVEDataHandler.js +14 -0
- package/Interfaces/Render/DVEFOManager.d.ts +7 -0
- package/Interfaces/Render/DVEFOManager.js +6 -0
- package/Interfaces/Render/DVEMeshCuller.d.ts +7 -0
- package/Interfaces/Render/DVEMeshCuller.js +8 -0
- package/Interfaces/Render/DVERenderer.d.ts +14 -0
- package/Interfaces/Render/DVERenderer.js +2 -0
- package/Interfaces/Render/Nodes/DVENodeManager.d.ts +6 -0
- package/Interfaces/Render/Nodes/DVENodeManager.js +2 -0
- package/Interfaces/Render/Nodes/DVERenderNode.types.d.ts +39 -0
- package/Interfaces/Render/Nodes/DVERenderNode.types.js +1 -0
- package/Interfaces/Render/Nodes/Materials/DVENodeMaterialManager.d.ts +5 -0
- package/Interfaces/Render/Nodes/Materials/DVENodeMaterialManager.js +2 -0
- package/Interfaces/Render/Nodes/Meshes/DVENodeMesh.d.ts +13 -0
- package/Interfaces/Render/Nodes/Meshes/DVENodeMesh.js +6 -0
- package/Interfaces/Render/Nodes/Meshes/DVENodeMeshManager.d.ts +5 -0
- package/Interfaces/Render/Nodes/Meshes/DVENodeMeshManager.js +2 -0
- package/Interfaces/WorldGen/WorldGen.types.d.ts +5 -0
- package/Interfaces/WorldGen/WorldGen.types.js +1 -0
- package/LICENSE.md +9 -0
- package/Math/Classes/BoundingBox.d.ts +27 -0
- package/Math/Classes/BoundingBox.js +44 -0
- package/Math/Classes/MatrixArray.d.ts +66 -0
- package/Math/Classes/MatrixArray.js +243 -0
- package/Math/Classes/Plane.d.ts +22 -0
- package/Math/Classes/Plane.js +53 -0
- package/Math/Classes/Scalar.d.ts +5 -0
- package/Math/Classes/Scalar.js +9 -0
- package/Math/Classes/SimpleBoundingBox.d.ts +40 -0
- package/Math/Classes/SimpleBoundingBox.js +157 -0
- package/Math/Classes/Vector3.d.ts +54 -0
- package/Math/Classes/Vector3.js +236 -0
- package/Math/Constants/CardinalNeighbors.d.ts +3 -0
- package/Math/Constants/CardinalNeighbors.js +25 -0
- package/Math/Constants/ConstantMartrix.d.ts +3 -0
- package/Math/Constants/ConstantMartrix.js +8 -0
- package/Math/Constants/Faces.d.ts +5 -0
- package/Math/Constants/Faces.js +28 -0
- package/Math/Constants/VoxelFaces.d.ts +20 -0
- package/Math/Constants/VoxelFaces.js +92 -0
- package/Math/Math.types.d.ts +25 -0
- package/Math/Math.types.js +1 -0
- package/Math/Objects/CompassDirection.d.ts +9 -0
- package/Math/Objects/CompassDirection.js +19 -0
- package/Math/Spaces/VoxelSpace.d.ts +32 -0
- package/Math/Spaces/VoxelSpace.js +99 -0
- package/Math/Spaces/VoxelSpaces.d.ts +50 -0
- package/Math/Spaces/VoxelSpaces.js +117 -0
- package/Math/Spaces/VoxelSpaces.types.d.ts +6 -0
- package/Math/Spaces/VoxelSpaces.types.js +1 -0
- package/Math/VisitAll.d.ts +10 -0
- package/Math/VisitAll.js +69 -0
- package/Math/VoxelMath.d.ts +21 -0
- package/Math/VoxelMath.js +47 -0
- package/Math/index.d.ts +11 -0
- package/Math/index.js +11 -0
- package/Mesher/Calc/CalcConstants.d.ts +16 -0
- package/Mesher/Calc/CalcConstants.js +375 -0
- package/Mesher/Calc/Flow/FlowGradient.d.ts +5 -0
- package/Mesher/Calc/Flow/FlowGradient.js +74 -0
- package/Mesher/Calc/Light/FaceDataCalc.d.ts +9 -0
- package/Mesher/Calc/Light/FaceDataCalc.js +58 -0
- package/Mesher/Calc/Light/LightGradient.d.ts +13 -0
- package/Mesher/Calc/Light/LightGradient.js +255 -0
- package/Mesher/Constructors/Voxel/Classes/Cube/ModCube.constructor.d.ts +13 -0
- package/Mesher/Constructors/Voxel/Classes/Cube/ModCube.constructor.js +77 -0
- package/Mesher/Constructors/Voxel/Classes/Cube/PillarCube.constructor.d.ts +27 -0
- package/Mesher/Constructors/Voxel/Classes/Cube/PillarCube.constructor.js +75 -0
- package/Mesher/Constructors/Voxel/Classes/Cube/SimpleCube.constructor.d.ts +13 -0
- package/Mesher/Constructors/Voxel/Classes/Cube/SimpleCube.constructor.js +56 -0
- package/Mesher/Constructors/Voxel/Classes/HalfCube/ModHalfCube.constructor.d.ts +13 -0
- package/Mesher/Constructors/Voxel/Classes/HalfCube/ModHalfCube.constructor.js +80 -0
- package/Mesher/Constructors/Voxel/Classes/HalfCube/SimpleHalfCube.constructor.d.ts +16 -0
- package/Mesher/Constructors/Voxel/Classes/HalfCube/SimpleHalfCube.constructor.js +58 -0
- package/Mesher/Constructors/Voxel/Classes/Liquid/SimpleLiquid.constructor.d.ts +12 -0
- package/Mesher/Constructors/Voxel/Classes/Liquid/SimpleLiquid.constructor.js +46 -0
- package/Mesher/Constructors/Voxel/Classes/Panel/SimpleCrossedPanel.constructor.d.ts +12 -0
- package/Mesher/Constructors/Voxel/Classes/Panel/SimpleCrossedPanel.constructor.js +23 -0
- package/Mesher/Constructors/Voxel/Classes/Panel/SimplePanel.constructor.d.ts +12 -0
- package/Mesher/Constructors/Voxel/Classes/Panel/SimplePanel.constructor.js +23 -0
- package/Mesher/Constructors/Voxel/Classes/Stair/ModStair.constructor.d.ts +12 -0
- package/Mesher/Constructors/Voxel/Classes/Stair/ModStair.constructor.js +50 -0
- package/Mesher/Constructors/Voxel/Classes/Stair/SimpleStair.constructor.d.ts +12 -0
- package/Mesher/Constructors/Voxel/Classes/Stair/SimpleStair.constructor.js +45 -0
- package/Mesher/Constructors/Voxel/Classes/VoxelConstructor.d.ts +7 -0
- package/Mesher/Constructors/Voxel/Classes/VoxelConstructor.js +3 -0
- package/Mesher/Constructors/Voxel/VoxelConstructorsRegister.d.ts +44 -0
- package/Mesher/Constructors/Voxel/VoxelConstructorsRegister.js +75 -0
- package/Mesher/Geometry/VoxelGeometry.d.ts +7 -0
- package/Mesher/Geometry/VoxelGeometry.js +111 -0
- package/Mesher/Mesher.d.ts +80 -0
- package/Mesher/Mesher.js +62 -0
- package/Mesher/Meshers/Classes/Mesher.d.ts +6 -0
- package/Mesher/Meshers/Classes/Mesher.js +6 -0
- package/Mesher/Meshers/MesherManager.d.ts +7 -0
- package/Mesher/Meshers/MesherManager.js +16 -0
- package/Mesher/Meshers/Meshers/TextureMesher.d.ts +13 -0
- package/Mesher/Meshers/Meshers/TextureMesher.js +186 -0
- package/Mesher/Meshers/Meshers/VoxelMesher.d.ts +11 -0
- package/Mesher/Meshers/Meshers/VoxelMesher.js +47 -0
- package/Mesher/Processors/ChunkProcessor.d.ts +9 -0
- package/Mesher/Processors/ChunkProcessor.js +79 -0
- package/Mesher/Processors/TemplateProcessor.d.ts +16 -0
- package/Mesher/Processors/TemplateProcessor.js +71 -0
- package/Mesher/Rules/Overrides/OverrideBase.d.ts +8 -0
- package/Mesher/Rules/Overrides/OverrideBase.js +20 -0
- package/Mesher/Rules/Overrides/OverridesManager.d.ts +10 -0
- package/Mesher/Rules/Overrides/OverridesManager.js +10 -0
- package/Mesher/Rules/RenderedSubstances.d.ts +6 -0
- package/Mesher/Rules/RenderedSubstances.js +13 -0
- package/Mesher/Rules/SubstanceRules.d.ts +7 -0
- package/Mesher/Rules/SubstanceRules.js +60 -0
- package/Mesher/Shapes/ShapeTool.d.ts +8 -0
- package/Mesher/Shapes/ShapeTool.js +9 -0
- package/Mesher/Shapes/VoxelShapeBase.d.ts +5 -0
- package/Mesher/Shapes/VoxelShapeBase.js +3 -0
- package/Mesher/Shapes/VoxelShapeManager.d.ts +10 -0
- package/Mesher/Shapes/VoxelShapeManager.js +37 -0
- package/Mesher/Shapes/default/Cube/Cube.voxel.shape.d.ts +15 -0
- package/Mesher/Shapes/default/Cube/Cube.voxel.shape.js +234 -0
- package/Mesher/Shapes/default/Cube/HalfCube.voxel.shape.d.ts +24 -0
- package/Mesher/Shapes/default/Cube/HalfCube.voxel.shape.js +231 -0
- package/Mesher/Shapes/default/Liquid/Liquid.voxel.shape.d.ts +16 -0
- package/Mesher/Shapes/default/Liquid/Liquid.voxel.shape.js +250 -0
- package/Mesher/Shapes/default/Panel/CrossedPanels.voxel.shape.d.ts +8 -0
- package/Mesher/Shapes/default/Panel/CrossedPanels.voxel.shape.js +67 -0
- package/Mesher/Shapes/default/Panel/FlatPanel.voxel.shape.d.ts +8 -0
- package/Mesher/Shapes/default/Panel/FlatPanel.voxel.shape.js +68 -0
- package/Mesher/Shapes/default/Panel/PanelStates.d.ts +8 -0
- package/Mesher/Shapes/default/Panel/PanelStates.js +9 -0
- package/Mesher/Shapes/default/RegisterDefaultShapes.d.ts +1 -0
- package/Mesher/Shapes/default/RegisterDefaultShapes.js +10 -0
- package/Mesher/Shapes/default/Stairs/Stair.voxel.shape.d.ts +15 -0
- package/Mesher/Shapes/default/Stairs/Stair.voxel.shape.js +31 -0
- package/Mesher/Shapes/default/Stairs/StairOverrides.d.ts +17 -0
- package/Mesher/Shapes/default/Stairs/StairOverrides.js +151 -0
- package/Mesher/Shapes/default/Stairs/StairShapes.d.ts +2 -0
- package/Mesher/Shapes/default/Stairs/StairShapes.js +546 -0
- package/Mesher/Shapes/default/Stairs/StairStates.d.ts +19 -0
- package/Mesher/Shapes/default/Stairs/StairStates.js +37 -0
- package/Mesher/Shapes/default/index.d.ts +6 -0
- package/Mesher/Shapes/default/index.js +6 -0
- package/Mesher/Tasks/BuidlerTasks.types.d.ts +7 -0
- package/Mesher/Tasks/BuidlerTasks.types.js +1 -0
- package/Mesher/Tools/BuilderDataTool.d.ts +4 -0
- package/Mesher/Tools/BuilderDataTool.js +7 -0
- package/Mesher/Tools/OutlinedVoxelTool.d.ts +15 -0
- package/Mesher/Tools/OutlinedVoxelTool.js +186 -0
- package/Mesher/Tools/VoxelMesherDataTool.d.ts +31 -0
- package/Mesher/Tools/VoxelMesherDataTool.js +166 -0
- package/Mesher/Tools/VoxelTemplateDataTool.d.ts +15 -0
- package/Mesher/Tools/VoxelTemplateDataTool.js +112 -0
- package/Mesher/Types/Override.types.d.ts +8 -0
- package/Mesher/Types/Override.types.js +1 -0
- package/Mesher/Types/index.d.ts +1 -0
- package/Mesher/Types/index.js +1 -0
- package/Propagation/Explosion/ExplosionManager.d.ts +4 -0
- package/Propagation/Explosion/ExplosionManager.js +120 -0
- package/Propagation/Flow/FlowManager.d.ts +66 -0
- package/Propagation/Flow/FlowManager.js +154 -0
- package/Propagation/Flow/Functions/FlowRemove.d.ts +2 -0
- package/Propagation/Flow/Functions/FlowRemove.js +162 -0
- package/Propagation/Flow/Functions/FlowUpdate.d.ts +2 -0
- package/Propagation/Flow/Functions/FlowUpdate.js +96 -0
- package/Propagation/Illumanation/Functions/RGBUpdate.d.ts +3 -0
- package/Propagation/Illumanation/Functions/RGBUpdate.js +169 -0
- package/Propagation/Illumanation/Functions/SunUpdate.d.ts +3 -0
- package/Propagation/Illumanation/Functions/SunUpdate.js +187 -0
- package/Propagation/Illumanation/Functions/WorldSun.d.ts +2 -0
- package/Propagation/Illumanation/Functions/WorldSun.js +190 -0
- package/Propagation/Illumanation/IlluminationManager.d.ts +48 -0
- package/Propagation/Illumanation/IlluminationManager.js +13 -0
- package/Propagation/Propagation.d.ts +13 -0
- package/Propagation/Propagation.js +37 -0
- package/Propagation/index.d.ts +1 -0
- package/Propagation/index.js +1 -0
- package/README.md +11 -0
- package/Shaders/Code/Functions/FogShaders.d.ts +2 -0
- package/Shaders/Code/Functions/FogShaders.js +59 -0
- package/Shaders/Code/Functions/FragmentFunctions.d.ts +2 -0
- package/Shaders/Code/Functions/FragmentFunctions.js +155 -0
- package/Shaders/Code/Functions/UtilShaders.d.ts +2 -0
- package/Shaders/Code/Functions/UtilShaders.js +209 -0
- package/Shaders/Code/Functions/VertexFunctions.d.ts +2 -0
- package/Shaders/Code/Functions/VertexFunctions.js +73 -0
- package/Shaders/Code/Snippets/FragmentSnippets.d.ts +2 -0
- package/Shaders/Code/Snippets/FragmentSnippets.js +93 -0
- package/Shaders/Code/Snippets/VertexSnippets.d.ts +2 -0
- package/Shaders/Code/Snippets/VertexSnippets.js +28 -0
- package/Shaders/Code/Snippets/VoxelSnippets.d.ts +2 -0
- package/Shaders/Code/Snippets/VoxelSnippets.js +137 -0
- package/Shaders/DVEShaderRegister.d.ts +42 -0
- package/Shaders/DVEShaderRegister.js +15 -0
- package/Shaders/DVEShaders.d.ts +55 -0
- package/Shaders/DVEShaders.js +369 -0
- package/Shaders/Types/Shader.types.d.ts +14 -0
- package/Shaders/Types/Shader.types.js +1 -0
- package/Templates/Functions/CreateTemplate.d.ts +3 -0
- package/Templates/Functions/CreateTemplate.js +113 -0
- package/Templates/Functions/FlipTemplate.d.ts +3 -0
- package/Templates/Functions/FlipTemplate.js +47 -0
- package/Templates/Functions/RotateTemplate.d.ts +4 -0
- package/Templates/Functions/RotateTemplate.js +110 -0
- package/Templates/Functions/index.d.ts +3 -0
- package/Templates/Functions/index.js +3 -0
- package/Templates/VoxelTemplate.d.ts +31 -0
- package/Templates/VoxelTemplate.js +122 -0
- package/Templates/VoxelTemplates.types.d.ts +23 -0
- package/Templates/VoxelTemplates.types.js +1 -0
- package/Templates/index.d.ts +1 -0
- package/Templates/index.js +1 -0
- package/Textures/Constructor.types.d.ts +5 -0
- package/Textures/Constructor.types.js +1 -0
- package/Textures/Texture.types.d.ts +79 -0
- package/Textures/Texture.types.js +1 -0
- package/Textures/TextureAnimations.d.ts +4 -0
- package/Textures/TextureAnimations.js +135 -0
- package/Textures/TextureBuilder.d.ts +16 -0
- package/Textures/TextureBuilder.js +245 -0
- package/Textures/TextureManager.d.ts +22 -0
- package/Textures/TextureManager.js +153 -0
- package/Textures/TextureRegister.d.ts +10 -0
- package/Textures/TextureRegister.js +33 -0
- package/Textures/TextureType.d.ts +63 -0
- package/Textures/TextureType.js +287 -0
- package/Tools/Anaylzer/AnaylzerTool.d.ts +6 -0
- package/Tools/Anaylzer/AnaylzerTool.js +31 -0
- package/Tools/Brush/AdvancedBrushTool.d.ts +15 -0
- package/Tools/Brush/AdvancedBrushTool.js +69 -0
- package/Tools/Brush/Brush.d.ts +28 -0
- package/Tools/Brush/Brush.js +124 -0
- package/Tools/Classes/DataToolBase.d.ts +43 -0
- package/Tools/Classes/DataToolBase.js +85 -0
- package/Tools/Classes/LocationBoundTool.d.ts +20 -0
- package/Tools/Classes/LocationBoundTool.js +45 -0
- package/Tools/Classes/RichDataToolBase.d.ts +10 -0
- package/Tools/Classes/RichDataToolBase.js +26 -0
- package/Tools/Data/DataTool.d.ts +101 -0
- package/Tools/Data/DataTool.js +431 -0
- package/Tools/Data/RichDataTool.d.ts +25 -0
- package/Tools/Data/RichDataTool.js +121 -0
- package/Tools/Data/SubstanceDataTool.d.ts +16 -0
- package/Tools/Data/SubstanceDataTool.js +62 -0
- package/Tools/Data/WorldData/ChunkDataTool.d.ts +11 -0
- package/Tools/Data/WorldData/ChunkDataTool.js +38 -0
- package/Tools/Data/WorldData/ColumnDataTool.d.ts +26 -0
- package/Tools/Data/WorldData/ColumnDataTool.js +81 -0
- package/Tools/Data/WorldData/HeightMapTool.d.ts +24 -0
- package/Tools/Data/WorldData/HeightMapTool.js +117 -0
- package/Tools/Data/WorldData/RegionDataTool.d.ts +13 -0
- package/Tools/Data/WorldData/RegionDataTool.js +39 -0
- package/Tools/Mesher/MesherTool.d.ts +19 -0
- package/Tools/Mesher/MesherTool.js +52 -0
- package/Tools/Tasks/TasksTool.d.ts +92 -0
- package/Tools/Tasks/TasksTool.js +217 -0
- package/Tools/index.d.ts +0 -0
- package/Tools/index.js +1 -0
- package/Types/DataSync.types.d.ts +25 -0
- package/Types/DataSync.types.js +1 -0
- package/Types/EngineSettings.types.d.ts +73 -0
- package/Types/EngineSettings.types.js +73 -0
- package/Types/StructBuilder.types.d.ts +30 -0
- package/Types/StructBuilder.types.js +1 -0
- package/Types/Substances.types.d.ts +4 -0
- package/Types/Substances.types.js +1 -0
- package/Types/Tasks.types.d.ts +85 -0
- package/Types/Tasks.types.js +1 -0
- package/Types/Util.types.d.ts +5 -0
- package/Types/Util.types.js +1 -0
- package/Types/Voxel.types.d.ts +12 -0
- package/Types/Voxel.types.js +1 -0
- package/Types/index.d.ts +2 -0
- package/Types/index.js +2 -0
- package/Util/DataMatrix.d.ts +23 -0
- package/Util/DataMatrix.js +90 -0
- package/Util/LocationVisitedMap.d.ts +9 -0
- package/Util/LocationVisitedMap.js +18 -0
- package/Util/VisistedMap.d.ts +10 -0
- package/Util/VisistedMap.js +29 -0
- package/Util/VoxelIDMatrix.d.ts +15 -0
- package/Util/VoxelIDMatrix.js +55 -0
- package/VoxelModels/Constructor/InitVoxelModelsConstructor.d.ts +2 -0
- package/VoxelModels/Constructor/InitVoxelModelsConstructor.js +20 -0
- package/VoxelModels/Constructor/Nodes/GeometryNode.d.ts +15 -0
- package/VoxelModels/Constructor/Nodes/GeometryNode.js +14 -0
- package/VoxelModels/Constructor/Nodes/Ruled/BoxVoxelGeometryNode.d.ts +22 -0
- package/VoxelModels/Constructor/Nodes/Ruled/BoxVoxelGeometryNode.js +220 -0
- package/VoxelModels/Constructor/Nodes/Ruled/QuadVoxelGeometryNode.d.ts +23 -0
- package/VoxelModels/Constructor/Nodes/Ruled/QuadVoxelGeometryNode.js +185 -0
- package/VoxelModels/Constructor/Nodes/Ruleless/RulelessBoxVoxelGeometryNode.d.ts +21 -0
- package/VoxelModels/Constructor/Nodes/Ruleless/RulelessBoxVoxelGeometryNode.js +138 -0
- package/VoxelModels/Constructor/Nodes/Ruleless/RulelessQuadVoxelGeometryNode.d.ts +22 -0
- package/VoxelModels/Constructor/Nodes/Ruleless/RulelessQuadVoxelGeometryNode.js +109 -0
- package/VoxelModels/Constructor/Nodes/RulelessGeometryNode.d.ts +15 -0
- package/VoxelModels/Constructor/Nodes/RulelessGeometryNode.js +14 -0
- package/VoxelModels/Constructor/Register/VoxelGeometryConstructor.d.ts +13 -0
- package/VoxelModels/Constructor/Register/VoxelGeometryConstructor.js +33 -0
- package/VoxelModels/Constructor/Register/VoxelGeometryRulelessConstructor.d.ts +9 -0
- package/VoxelModels/Constructor/Register/VoxelGeometryRulelessConstructor.js +27 -0
- package/VoxelModels/Constructor/Register/VoxelModelConstructorRegister.d.ts +14 -0
- package/VoxelModels/Constructor/Register/VoxelModelConstructorRegister.js +31 -0
- package/VoxelModels/Constructor/Register/VoxelModelsConstructor.d.ts +13 -0
- package/VoxelModels/Constructor/Register/VoxelModelsConstructor.js +21 -0
- package/VoxelModels/Constructor/VoxelGeometryLookUp.d.ts +20 -0
- package/VoxelModels/Constructor/VoxelGeometryLookUp.js +77 -0
- package/VoxelModels/Constructor/VoxelModelVoxelConstructor.d.ts +24 -0
- package/VoxelModels/Constructor/VoxelModelVoxelConstructor.js +75 -0
- package/VoxelModels/Defaults/CubeVoxelGeometry.d.ts +9 -0
- package/VoxelModels/Defaults/CubeVoxelGeometry.js +922 -0
- package/VoxelModels/Defaults/CubeVoxelModels.d.ts +5 -0
- package/VoxelModels/Defaults/CubeVoxelModels.js +825 -0
- package/VoxelModels/Defaults/PanelVoxelGeometry.d.ts +6 -0
- package/VoxelModels/Defaults/PanelVoxelGeometry.js +500 -0
- package/VoxelModels/Defaults/PanelVoxelModels.d.ts +3 -0
- package/VoxelModels/Defaults/PanelVoxelModels.js +1061 -0
- package/VoxelModels/Defaults/StairVoxelModel.d.ts +2 -0
- package/VoxelModels/Defaults/StairVoxelModel.js +1358 -0
- package/VoxelModels/Examples.d.ts +14 -0
- package/VoxelModels/Examples.js +1910 -0
- package/VoxelModels/Indexing/VoxelAOResultsIndex.d.ts +12 -0
- package/VoxelModels/Indexing/VoxelAOResultsIndex.js +20 -0
- package/VoxelModels/Indexing/VoxelFaceCullResultsIndex.d.ts +12 -0
- package/VoxelModels/Indexing/VoxelFaceCullResultsIndex.js +21 -0
- package/VoxelModels/Indexing/VoxelFaceTransparentResultsIndex.d.ts +11 -0
- package/VoxelModels/Indexing/VoxelFaceTransparentResultsIndex.js +15 -0
- package/VoxelModels/Indexing/VoxelRelativeCubeIndex.d.ts +6 -0
- package/VoxelModels/Indexing/VoxelRelativeCubeIndex.js +14 -0
- package/VoxelModels/InitVoxelModels.d.ts +10 -0
- package/VoxelModels/InitVoxelModels.js +109 -0
- package/VoxelModels/Input/BoxVoxelGometryInputs.d.ts +23 -0
- package/VoxelModels/Input/BoxVoxelGometryInputs.js +33 -0
- package/VoxelModels/Input/QuadVoxelGometryInputs.d.ts +24 -0
- package/VoxelModels/Input/QuadVoxelGometryInputs.js +29 -0
- package/VoxelModels/Rules/Classes/OcclusionFace.d.ts +65 -0
- package/VoxelModels/Rules/Classes/OcclusionFace.js +492 -0
- package/VoxelModels/Rules/Classes/VoxelRulesGeometry.d.ts +19 -0
- package/VoxelModels/Rules/Classes/VoxelRulesGeometry.js +32 -0
- package/VoxelModels/Rules/Classes/VoxelRulesModel.d.ts +18 -0
- package/VoxelModels/Rules/Classes/VoxelRulesModel.js +29 -0
- package/VoxelModels/Rules/Functions/BuildFinalInputs.d.ts +7 -0
- package/VoxelModels/Rules/Functions/BuildFinalInputs.js +91 -0
- package/VoxelModels/Rules/Functions/BuildGeomtryInputs.d.ts +6 -0
- package/VoxelModels/Rules/Functions/BuildGeomtryInputs.js +223 -0
- package/VoxelModels/Rules/Functions/BuildRules.d.ts +8 -0
- package/VoxelModels/Rules/Functions/BuildRules.js +187 -0
- package/VoxelModels/Rules/Functions/BuildStateData.d.ts +23 -0
- package/VoxelModels/Rules/Functions/BuildStateData.js +337 -0
- package/VoxelModels/Rules/Functions/GetOcclusionFaces.d.ts +4 -0
- package/VoxelModels/Rules/Functions/GetOcclusionFaces.js +112 -0
- package/VoxelModels/Rules/VoxelModelManager.d.ts +18 -0
- package/VoxelModels/Rules/VoxelModelManager.js +80 -0
- package/VoxelModels/Shared/Transform.d.ts +4 -0
- package/VoxelModels/Shared/Transform.js +264 -0
- package/VoxelModels/State/CondiotnalTreeReader.d.ts +10 -0
- package/VoxelModels/State/CondiotnalTreeReader.js +22 -0
- package/VoxelModels/State/LogicStatementReader.d.ts +8 -0
- package/VoxelModels/State/LogicStatementReader.js +50 -0
- package/VoxelModels/State/Schema/BinarySchema.d.ts +14 -0
- package/VoxelModels/State/Schema/BinarySchema.js +52 -0
- package/VoxelModels/State/Schema/BinarySchemaNode.d.ts +11 -0
- package/VoxelModels/State/Schema/BinarySchemaNode.js +21 -0
- package/VoxelModels/State/Schema/Conditions/SameVoxelConditions.d.ts +8 -0
- package/VoxelModels/State/Schema/Conditions/SameVoxelConditions.js +13 -0
- package/VoxelModels/State/Schema/Conditions/ShapeStateSchemaRelationsCondition.d.ts +6 -0
- package/VoxelModels/State/Schema/Conditions/ShapeStateSchemaRelationsCondition.js +6 -0
- package/VoxelModels/State/Schema/ShapeStateRelationsNode.d.ts +10 -0
- package/VoxelModels/State/Schema/ShapeStateRelationsNode.js +26 -0
- package/VoxelModels/State/Schema/StateSchema.d.ts +10 -0
- package/VoxelModels/State/Schema/StateSchema.js +18 -0
- package/VoxelModels/State/SchemaRegister.d.ts +15 -0
- package/VoxelModels/State/SchemaRegister.js +50 -0
- package/VoxelModels/State/State.types.d.ts +32 -0
- package/VoxelModels/State/State.types.js +22 -0
- package/VoxelModels/State/StateTreeReader.d.ts +9 -0
- package/VoxelModels/State/StateTreeReader.js +35 -0
- package/VoxelModels/Tags/TagsOverrides.d.ts +5 -0
- package/VoxelModels/Tags/TagsOverrides.js +4 -0
- package/VoxelModels/VoxelModel.types.d.ts +135 -0
- package/VoxelModels/VoxelModel.types.js +1 -0
- package/VoxelModels/VoxelModelRules.types.d.ts +67 -0
- package/VoxelModels/VoxelModelRules.types.js +1 -0
- package/VoxelModels/World/InitVoxelModelsWorld.d.ts +2 -0
- package/VoxelModels/World/InitVoxelModelsWorld.js +11 -0
- package/WorldGeneration/WorldGenBrush.d.ts +75 -0
- package/WorldGeneration/WorldGenBrush.js +136 -0
- package/WorldGeneration/WorldGenRegister.d.ts +14 -0
- package/WorldGeneration/WorldGenRegister.js +94 -0
- package/WorldGeneration/WorldGeneration.d.ts +14 -0
- package/WorldGeneration/WorldGeneration.js +54 -0
- package/package.json +32 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { BuildTasks, GenerateTasks, Priorities } from "../../Types/Tasks.types.js";
|
|
2
|
+
import { LocationData } from "../../Math";
|
|
3
|
+
import type { RawVoxelData } from "../../Data/Types/VoxelData.types.js";
|
|
4
|
+
export type TaskRunModes = "async" | "sync";
|
|
5
|
+
export declare class TaskTool {
|
|
6
|
+
_data: {
|
|
7
|
+
dimension: string;
|
|
8
|
+
queue: string;
|
|
9
|
+
};
|
|
10
|
+
_thread: string;
|
|
11
|
+
_priority: Priorities;
|
|
12
|
+
constructor();
|
|
13
|
+
setPriority(priority: Priorities): this;
|
|
14
|
+
setFocalPoint(location: LocationData): this;
|
|
15
|
+
voxelUpdate: {
|
|
16
|
+
update: {
|
|
17
|
+
run: (location: LocationData, raw: RawVoxelData, onDone: (data: any) => void, mode?: TaskRunModes) => void;
|
|
18
|
+
};
|
|
19
|
+
erase: {
|
|
20
|
+
run: (location: LocationData, onDone: (data: any) => void, mode?: TaskRunModes) => void;
|
|
21
|
+
};
|
|
22
|
+
paint: {
|
|
23
|
+
run: (location: LocationData, raw: RawVoxelData, onDone: (data: any) => void, mode?: TaskRunModes) => void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
build: {
|
|
27
|
+
chunk: {
|
|
28
|
+
deferred: {
|
|
29
|
+
run: (buildTasks: BuildTasks, onDone: (data: any) => void) => void;
|
|
30
|
+
};
|
|
31
|
+
queued: {
|
|
32
|
+
add: (location: LocationData) => void;
|
|
33
|
+
run: (onDone: Function) => void;
|
|
34
|
+
runAndAwait: () => Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
column: {
|
|
38
|
+
queued: {};
|
|
39
|
+
deferred: {
|
|
40
|
+
run: (location: LocationData, onDone: (data: any) => void) => void;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
explosion: {
|
|
45
|
+
run: (location: LocationData, radius: number, onDone: (data: any) => void) => void;
|
|
46
|
+
};
|
|
47
|
+
anaylzer: {
|
|
48
|
+
update: {
|
|
49
|
+
run: (location: LocationData, onDone: (data: any) => void) => void;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
propagation: {
|
|
53
|
+
deferred: {
|
|
54
|
+
run: (location: LocationData, onDone: (data: any) => void) => void;
|
|
55
|
+
};
|
|
56
|
+
queued: {
|
|
57
|
+
add: (location: LocationData) => void;
|
|
58
|
+
run: (onDone: Function) => void;
|
|
59
|
+
runAndAwait: () => Promise<void>;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
generate: {
|
|
63
|
+
deferred: {
|
|
64
|
+
run(location: LocationData, data: any, onDone: (data: any) => void): void;
|
|
65
|
+
};
|
|
66
|
+
queued: {
|
|
67
|
+
add: (data: GenerateTasks) => void;
|
|
68
|
+
run: (onDone: Function) => void;
|
|
69
|
+
runAndAwait: () => Promise<void>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
decorate: {
|
|
73
|
+
deferred: {
|
|
74
|
+
run: (location: LocationData, data: any, onDone: (data: any) => void) => void;
|
|
75
|
+
};
|
|
76
|
+
queued: {
|
|
77
|
+
add: (data: GenerateTasks) => Promise<void>;
|
|
78
|
+
run: (onDone: Function) => void;
|
|
79
|
+
runAndAwait: () => Promise<void>;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
worldSun: {
|
|
83
|
+
deferred: {
|
|
84
|
+
run: (location: LocationData, onDone: (data: any) => void) => void;
|
|
85
|
+
};
|
|
86
|
+
queued: {
|
|
87
|
+
add: (location: LocationData) => void;
|
|
88
|
+
run: (onDone: Function) => void;
|
|
89
|
+
runAndAwait: () => Promise<void>;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { Threads } from "@amodx/threads/";
|
|
2
|
+
import { WorldSpaces } from "../../Data/World/WorldSpaces.js";
|
|
3
|
+
import { ConstructorRemoteThreadTasks } from "../../Contexts/Constructor/ConstructorRemoteThreadTasks.js";
|
|
4
|
+
import { ConstructorTasksIds } from "../../Contexts/Constructor/ConstructorTasksIds.js";
|
|
5
|
+
import { DVEConstructorTasksQueues } from "../../Contexts/Constructor/DVEConstructorTasksQueues.js";
|
|
6
|
+
export class TaskTool {
|
|
7
|
+
_data = {
|
|
8
|
+
dimension: "main",
|
|
9
|
+
queue: "main",
|
|
10
|
+
};
|
|
11
|
+
_thread = "";
|
|
12
|
+
_priority = 0;
|
|
13
|
+
constructor() {
|
|
14
|
+
this._thread = Threads.threadName;
|
|
15
|
+
}
|
|
16
|
+
setPriority(priority) {
|
|
17
|
+
this._priority = priority;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
setFocalPoint(location) {
|
|
21
|
+
const [dimesnion, x, y, z] = location;
|
|
22
|
+
const queueKey = `${dimesnion}-${WorldSpaces.region.getKeyXYZ(x, y, z)}`;
|
|
23
|
+
DVEConstructorTasksQueues.instance.addQueue(queueKey);
|
|
24
|
+
this._data.queue = queueKey;
|
|
25
|
+
this._thread = Threads.threadName;
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
voxelUpdate = {
|
|
29
|
+
update: {
|
|
30
|
+
run: (location, raw, onDone, mode = "sync") => {
|
|
31
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.VoxelUpdate, [location, raw, this._data.queue, this._thread], [], onDone, mode == "sync" ? 0 : undefined);
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
erase: {
|
|
35
|
+
run: (location, onDone, mode = "sync") => {
|
|
36
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.VoxelErease, [location, this._data.queue, this._thread], [], onDone, mode == "sync" ? 0 : undefined);
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
paint: {
|
|
40
|
+
run: (location, raw, onDone, mode = "sync") => {
|
|
41
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.VoxelPaint, [location, raw, this._data.queue, this._thread], [], onDone, mode == "sync" ? 0 : undefined);
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
build = {
|
|
46
|
+
chunk: {
|
|
47
|
+
deferred: {
|
|
48
|
+
run: (buildTasks, onDone) => {
|
|
49
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.BuildChunk, {
|
|
50
|
+
data: buildTasks,
|
|
51
|
+
priority: this._priority,
|
|
52
|
+
}, [], onDone, undefined, 0);
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
queued: {
|
|
56
|
+
add: (location) => {
|
|
57
|
+
DVEConstructorTasksQueues.instance.getTasks("build-chunk").add({
|
|
58
|
+
data: [location, 1],
|
|
59
|
+
priority: this._priority,
|
|
60
|
+
}, this._data.queue);
|
|
61
|
+
},
|
|
62
|
+
run: (onDone) => {
|
|
63
|
+
DVEConstructorTasksQueues.instance
|
|
64
|
+
.getTasks("build-chunk")
|
|
65
|
+
.run(this._data.queue);
|
|
66
|
+
DVEConstructorTasksQueues.instance
|
|
67
|
+
.getTasks("build-chunk")
|
|
68
|
+
.onDone(this._data.queue, onDone);
|
|
69
|
+
},
|
|
70
|
+
runAndAwait: async () => {
|
|
71
|
+
await DVEConstructorTasksQueues.instance
|
|
72
|
+
.getTasks("build-chunk")
|
|
73
|
+
.runAndAwait(this._data.queue);
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
column: {
|
|
78
|
+
queued: {},
|
|
79
|
+
deferred: {
|
|
80
|
+
run: (location, onDone) => {
|
|
81
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.BuildColumn, [location, 1], [], onDone, undefined, 0);
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
explosion = {
|
|
87
|
+
run: (location, radius, onDone) => {
|
|
88
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.Explosion, [location, radius, "", ""], [], onDone, undefined, 0);
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
anaylzer = {
|
|
92
|
+
update: {
|
|
93
|
+
run: (location, onDone) => {
|
|
94
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.AnalyzerUpdate, [location, this._data.queue, this._thread], [], onDone, undefined, 0);
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
propagation = {
|
|
99
|
+
deferred: {
|
|
100
|
+
run: (location, onDone) => {
|
|
101
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.AnalyzerPropagation, [location, this._data.queue, this._thread], [], onDone, undefined, 0);
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
queued: {
|
|
105
|
+
add: (location) => {
|
|
106
|
+
DVEConstructorTasksQueues.instance
|
|
107
|
+
.getTasks("propagation")
|
|
108
|
+
.add([location, this._data.queue, this._thread], this._data.queue);
|
|
109
|
+
},
|
|
110
|
+
run: (onDone) => {
|
|
111
|
+
DVEConstructorTasksQueues.instance
|
|
112
|
+
.getTasks("propagation")
|
|
113
|
+
.run(this._data.queue);
|
|
114
|
+
DVEConstructorTasksQueues.instance
|
|
115
|
+
.getTasks("propagation")
|
|
116
|
+
.onDone(this._data.queue, onDone);
|
|
117
|
+
},
|
|
118
|
+
runAndAwait: async () => {
|
|
119
|
+
await DVEConstructorTasksQueues.instance
|
|
120
|
+
.getTasks("propagation")
|
|
121
|
+
.runAndAwait(this._data.queue);
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
generate = {
|
|
126
|
+
deferred: {
|
|
127
|
+
run(location, data, onDone) {
|
|
128
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.Generate, [location, data], [], onDone, undefined, 0);
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
queued: {
|
|
132
|
+
add: (data) => {
|
|
133
|
+
DVEConstructorTasksQueues.instance
|
|
134
|
+
.getTasks("generate")
|
|
135
|
+
.add(data, this._data.queue);
|
|
136
|
+
},
|
|
137
|
+
run: (onDone) => {
|
|
138
|
+
DVEConstructorTasksQueues.instance
|
|
139
|
+
.getTasks("generate")
|
|
140
|
+
.run(this._data.queue);
|
|
141
|
+
DVEConstructorTasksQueues.instance
|
|
142
|
+
.getTasks("generate")
|
|
143
|
+
.onDone(this._data.queue, onDone);
|
|
144
|
+
},
|
|
145
|
+
runAndAwait: async () => {
|
|
146
|
+
await DVEConstructorTasksQueues.instance
|
|
147
|
+
.getTasks("generate")
|
|
148
|
+
.runAndAwait(this._data.queue);
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
decorate = {
|
|
153
|
+
deferred: {
|
|
154
|
+
run: (location, data, onDone) => {
|
|
155
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.Decorate, [location, data], [], onDone, undefined, 0);
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
queued: {
|
|
159
|
+
add: async (data) => {
|
|
160
|
+
DVEConstructorTasksQueues.instance
|
|
161
|
+
.getTasks("decorate")
|
|
162
|
+
.add(data, this._data.queue);
|
|
163
|
+
},
|
|
164
|
+
run: (onDone) => {
|
|
165
|
+
DVEConstructorTasksQueues.instance
|
|
166
|
+
.getTasks("decorate")
|
|
167
|
+
.run(this._data.queue);
|
|
168
|
+
DVEConstructorTasksQueues.instance
|
|
169
|
+
.getTasks("decorate")
|
|
170
|
+
.onDone(this._data.queue, onDone);
|
|
171
|
+
},
|
|
172
|
+
runAndAwait: async () => {
|
|
173
|
+
await DVEConstructorTasksQueues.instance
|
|
174
|
+
.getTasks("decorate")
|
|
175
|
+
.runAndAwait(this._data.queue);
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
worldSun = {
|
|
180
|
+
deferred: {
|
|
181
|
+
run: (location, onDone) => {
|
|
182
|
+
DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.WorldSun, [location, this._thread], [], onDone, undefined, 0);
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
queued: {
|
|
186
|
+
add: (location) => {
|
|
187
|
+
DVEConstructorTasksQueues.instance
|
|
188
|
+
.getTasks("world-sun")
|
|
189
|
+
.add([[...location], this._data.queue, this._thread], this._data.queue);
|
|
190
|
+
},
|
|
191
|
+
run: (onDone) => {
|
|
192
|
+
DVEConstructorTasksQueues.instance
|
|
193
|
+
.getTasks("world-sun")
|
|
194
|
+
.run(this._data.queue);
|
|
195
|
+
DVEConstructorTasksQueues.instance
|
|
196
|
+
.getTasks("world-sun")
|
|
197
|
+
.onDone(this._data.queue, onDone);
|
|
198
|
+
},
|
|
199
|
+
runAndAwait: async () => {
|
|
200
|
+
await DVEConstructorTasksQueues.instance
|
|
201
|
+
.getTasks("world-sun")
|
|
202
|
+
.runAndAwait(this._data.queue);
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
DVEConstructorTasksQueues.onCreated.subscribe(TaskTool, () => {
|
|
208
|
+
DVEConstructorTasksQueues.instance.registerTasks("world-sun", ConstructorTasksIds.WorldSun);
|
|
209
|
+
DVEConstructorTasksQueues.instance.registerTasks("decorate", ConstructorTasksIds.Decorate);
|
|
210
|
+
DVEConstructorTasksQueues.instance.registerTasks("generate", ConstructorTasksIds.Generate);
|
|
211
|
+
DVEConstructorTasksQueues.instance.registerTasks("propagation", ConstructorTasksIds.AnalyzerPropagation);
|
|
212
|
+
const tasks = new TaskTool();
|
|
213
|
+
Threads.registerTasks(ConstructorRemoteThreadTasks.BuildChunk, (data) => {
|
|
214
|
+
tasks.setPriority(data.priority);
|
|
215
|
+
tasks.build.chunk.deferred.run(data.data, () => { });
|
|
216
|
+
});
|
|
217
|
+
});
|
package/Tools/index.d.ts
ADDED
|
File without changes
|
package/Tools/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BinaryStructData } from "@amodx/binary/";
|
|
2
|
+
import { LocationData } from "Math/index.js";
|
|
3
|
+
export type DataSyncTypes = "chunk" | "voxel-data" | "iten-data" | "shape-map";
|
|
4
|
+
export type WorldDataSync = [location: LocationData, buffer: SharedArrayBuffer];
|
|
5
|
+
export type PaletteSyncData = [
|
|
6
|
+
voxelPalette: string[],
|
|
7
|
+
voxelPaletteMap: Record<string, number>,
|
|
8
|
+
nameToIdMap: Record<string, string>,
|
|
9
|
+
idToNameMap: Record<string, string>
|
|
10
|
+
];
|
|
11
|
+
export type VoxelDataSync = [
|
|
12
|
+
initData: BinaryStructData,
|
|
13
|
+
voxelMapData: SharedArrayBuffer
|
|
14
|
+
];
|
|
15
|
+
export type RegisterStringMapSync = [
|
|
16
|
+
segment: string,
|
|
17
|
+
id: string,
|
|
18
|
+
map: string[]
|
|
19
|
+
];
|
|
20
|
+
export type RegisterObjectMapSync = [
|
|
21
|
+
segment: string,
|
|
22
|
+
id: string,
|
|
23
|
+
map: any[]
|
|
24
|
+
];
|
|
25
|
+
export type VoxelMapSyncData = string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare class EngineSettingsData {
|
|
2
|
+
floatingOrigi: {
|
|
3
|
+
enable: boolean;
|
|
4
|
+
};
|
|
5
|
+
nexus: {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
autoSyncChunks: boolean;
|
|
8
|
+
autoSyncVoxelPalette: boolean;
|
|
9
|
+
};
|
|
10
|
+
data: {
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
autoSyncChunks: boolean;
|
|
13
|
+
mode: string;
|
|
14
|
+
};
|
|
15
|
+
server: {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
};
|
|
18
|
+
richWorld: {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
autoSyncChunks: boolean;
|
|
21
|
+
autoSyncVoxelPalette: boolean;
|
|
22
|
+
};
|
|
23
|
+
textures: {
|
|
24
|
+
animationTime: number;
|
|
25
|
+
textureSize: number;
|
|
26
|
+
mipMapSizes: number[];
|
|
27
|
+
};
|
|
28
|
+
updating: {
|
|
29
|
+
autoRebuild: boolean;
|
|
30
|
+
};
|
|
31
|
+
world: {
|
|
32
|
+
maxX: number;
|
|
33
|
+
minX: number;
|
|
34
|
+
maxZ: number;
|
|
35
|
+
minZ: number;
|
|
36
|
+
maxY: number;
|
|
37
|
+
minY: number;
|
|
38
|
+
};
|
|
39
|
+
regions: {
|
|
40
|
+
regionXPow2: number;
|
|
41
|
+
regionYPow2: number;
|
|
42
|
+
regionZPow2: number;
|
|
43
|
+
};
|
|
44
|
+
chunks: {
|
|
45
|
+
autoHeightMap: boolean;
|
|
46
|
+
chunkXPow2: number;
|
|
47
|
+
chunkYPow2: number;
|
|
48
|
+
chunkZPow2: number;
|
|
49
|
+
};
|
|
50
|
+
voxels: {
|
|
51
|
+
doColors: boolean;
|
|
52
|
+
};
|
|
53
|
+
flow: {
|
|
54
|
+
enable: boolean;
|
|
55
|
+
baseFlowLimit: number;
|
|
56
|
+
};
|
|
57
|
+
lighting: {
|
|
58
|
+
doAO: boolean;
|
|
59
|
+
doSunLight: boolean;
|
|
60
|
+
doRGBLight: boolean;
|
|
61
|
+
autoRGBLight: boolean;
|
|
62
|
+
autoSunLight: boolean;
|
|
63
|
+
};
|
|
64
|
+
meshes: {
|
|
65
|
+
clearChachedGeometry: boolean;
|
|
66
|
+
checkMagmaCollisions: boolean;
|
|
67
|
+
checkLiquidCollisions: boolean;
|
|
68
|
+
checkFloraCollisions: boolean;
|
|
69
|
+
checkSolidCollisions: boolean;
|
|
70
|
+
serialize: boolean;
|
|
71
|
+
pickable: boolean;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export class EngineSettingsData {
|
|
2
|
+
floatingOrigi = {
|
|
3
|
+
enable: false,
|
|
4
|
+
};
|
|
5
|
+
nexus = {
|
|
6
|
+
enabled: false,
|
|
7
|
+
autoSyncChunks: true,
|
|
8
|
+
autoSyncVoxelPalette: true,
|
|
9
|
+
};
|
|
10
|
+
data = {
|
|
11
|
+
enabled: false,
|
|
12
|
+
autoSyncChunks: true,
|
|
13
|
+
mode: "indexdb",
|
|
14
|
+
};
|
|
15
|
+
server = {
|
|
16
|
+
enabled: false,
|
|
17
|
+
};
|
|
18
|
+
richWorld = {
|
|
19
|
+
enabled: false,
|
|
20
|
+
autoSyncChunks: true,
|
|
21
|
+
autoSyncVoxelPalette: true,
|
|
22
|
+
};
|
|
23
|
+
textures = {
|
|
24
|
+
animationTime: 20,
|
|
25
|
+
textureSize: 16,
|
|
26
|
+
mipMapSizes: [16, 12, 8, 4],
|
|
27
|
+
};
|
|
28
|
+
updating = {
|
|
29
|
+
autoRebuild: true,
|
|
30
|
+
};
|
|
31
|
+
world = {
|
|
32
|
+
maxX: Number.MAX_SAFE_INTEGER,
|
|
33
|
+
minX: -Number.MAX_SAFE_INTEGER,
|
|
34
|
+
maxZ: Number.MAX_SAFE_INTEGER,
|
|
35
|
+
minZ: -Number.MAX_SAFE_INTEGER,
|
|
36
|
+
maxY: 256,
|
|
37
|
+
minY: 0,
|
|
38
|
+
};
|
|
39
|
+
regions = {
|
|
40
|
+
regionXPow2: 9,
|
|
41
|
+
regionYPow2: 8,
|
|
42
|
+
regionZPow2: 9,
|
|
43
|
+
};
|
|
44
|
+
chunks = {
|
|
45
|
+
autoHeightMap: true,
|
|
46
|
+
chunkXPow2: 4,
|
|
47
|
+
chunkYPow2: 4,
|
|
48
|
+
chunkZPow2: 4,
|
|
49
|
+
};
|
|
50
|
+
voxels = {
|
|
51
|
+
doColors: true,
|
|
52
|
+
};
|
|
53
|
+
flow = {
|
|
54
|
+
enable: true,
|
|
55
|
+
baseFlowLimit: 200,
|
|
56
|
+
};
|
|
57
|
+
lighting = {
|
|
58
|
+
doAO: true,
|
|
59
|
+
doSunLight: true,
|
|
60
|
+
doRGBLight: true,
|
|
61
|
+
autoRGBLight: true,
|
|
62
|
+
autoSunLight: true,
|
|
63
|
+
};
|
|
64
|
+
meshes = {
|
|
65
|
+
clearChachedGeometry: true,
|
|
66
|
+
checkMagmaCollisions: false,
|
|
67
|
+
checkLiquidCollisions: false,
|
|
68
|
+
checkFloraCollisions: false,
|
|
69
|
+
checkSolidCollisions: false,
|
|
70
|
+
serialize: false,
|
|
71
|
+
pickable: false,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BinaryNumberTypes } from "@amodx/binary/";
|
|
2
|
+
type TagBuilderNodeBase = {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
type TagBuilderNumberNode = {
|
|
6
|
+
type: "number";
|
|
7
|
+
numberType: BinaryNumberTypes;
|
|
8
|
+
default: number;
|
|
9
|
+
} & TagBuilderNodeBase;
|
|
10
|
+
type TagBuilderNumberArrayNode = {
|
|
11
|
+
type: "number-array";
|
|
12
|
+
numberType: BinaryNumberTypes;
|
|
13
|
+
length: number;
|
|
14
|
+
} & TagBuilderNodeBase;
|
|
15
|
+
type TagBuilderStringMapNode = {
|
|
16
|
+
type: "string-map";
|
|
17
|
+
allowedComms: string[];
|
|
18
|
+
default?: string;
|
|
19
|
+
} & TagBuilderNodeBase;
|
|
20
|
+
type TagBuilderObjectMapNode = {
|
|
21
|
+
type: "object-map";
|
|
22
|
+
allowedComms: string[];
|
|
23
|
+
default?: any;
|
|
24
|
+
} & TagBuilderNodeBase;
|
|
25
|
+
type TagBuilderBooleanNode = {
|
|
26
|
+
type: "boolean";
|
|
27
|
+
default: boolean;
|
|
28
|
+
} & TagBuilderNodeBase;
|
|
29
|
+
export type TagBuilderNodes = TagBuilderNumberNode | TagBuilderNumberArrayNode | TagBuilderStringMapNode | TagBuilderBooleanNode | TagBuilderObjectMapNode;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type SubstanceData = {
|
|
2
|
+
id: string;
|
|
3
|
+
tags: ([id: string, value: string | number | boolean | number[]] | [id: "#dve_parent_substance", value: string] | [id: "#dve_is_transparent", value: string] | [id: "#dve_rendered_substance", value: string] | [id: "#dve_culled_substances", value: string[]] | [id: "#dve_is_solid", value: boolean] | [id: "#dve_is_liquid", value: boolean] | [id: "#dve_flow_rate", value: number])[];
|
|
4
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { LocationData } from "../Math/index.js";
|
|
2
|
+
import type { Vec3Array } from "@amodx/math";
|
|
3
|
+
import type { RawVoxelData } from "../Data/Types/VoxelData.types";
|
|
4
|
+
import { ChunkData, ColumnData, RegionData } from "Data/World/Classes";
|
|
5
|
+
export type Priorities = 0 | 1 | 2 | 3;
|
|
6
|
+
export type PriorityTask<T> = {
|
|
7
|
+
data: T;
|
|
8
|
+
priority: Priorities;
|
|
9
|
+
};
|
|
10
|
+
export type WorldLockTasks = [
|
|
11
|
+
dimension: string,
|
|
12
|
+
start: Vec3Array,
|
|
13
|
+
end: Vec3Array
|
|
14
|
+
];
|
|
15
|
+
export type LightUpdateTask = [number, number, number];
|
|
16
|
+
export type WorldSunTask = [location: LocationData, originThread: string];
|
|
17
|
+
export type UpdateTasks = [
|
|
18
|
+
location: LocationData,
|
|
19
|
+
buildQueue: string,
|
|
20
|
+
originThread: string
|
|
21
|
+
];
|
|
22
|
+
export type VoxelUpdateTasks = [
|
|
23
|
+
location: LocationData,
|
|
24
|
+
raw: RawVoxelData,
|
|
25
|
+
buildQueue: string,
|
|
26
|
+
originThread: string
|
|
27
|
+
];
|
|
28
|
+
export type AnaylzerTask = [
|
|
29
|
+
location: LocationData,
|
|
30
|
+
buildQueue: string,
|
|
31
|
+
originThread: string
|
|
32
|
+
];
|
|
33
|
+
export type AddToRebuildQueue = [
|
|
34
|
+
location: LocationData,
|
|
35
|
+
buildQueue: string,
|
|
36
|
+
priority: Priorities
|
|
37
|
+
];
|
|
38
|
+
export type RunRebuildTasks = [buildQueue: string];
|
|
39
|
+
export type BuildTasks = [location: LocationData, LOD: number];
|
|
40
|
+
export type GenerateTasks = [location: LocationData, data: any];
|
|
41
|
+
export type ExplosionTasks = [
|
|
42
|
+
location: LocationData,
|
|
43
|
+
radius: number,
|
|
44
|
+
buildQueue: string,
|
|
45
|
+
originThread: string
|
|
46
|
+
];
|
|
47
|
+
export type LoadChunkDataTasks = [location: LocationData, chunk: ChunkData];
|
|
48
|
+
export type LoadColumnDataTasks = [location: LocationData, column: ColumnData];
|
|
49
|
+
export type LoadRegionDataTasks = [location: LocationData, region: RegionData];
|
|
50
|
+
export type LoadRegionHeadertasks = [
|
|
51
|
+
location: LocationData,
|
|
52
|
+
data: SharedArrayBuffer
|
|
53
|
+
];
|
|
54
|
+
export type GetRichDataTasks = [location: LocationData, segment: string];
|
|
55
|
+
export type SetRichDataTasks = [
|
|
56
|
+
location: LocationData,
|
|
57
|
+
segment: string,
|
|
58
|
+
objectBuffer: ArrayBuffer
|
|
59
|
+
];
|
|
60
|
+
export type SetRichColumnTasks = [
|
|
61
|
+
location: LocationData,
|
|
62
|
+
objectBuffer: ArrayBuffer
|
|
63
|
+
];
|
|
64
|
+
export type RequestLightUpdateQueueData = {
|
|
65
|
+
rgb: {
|
|
66
|
+
update: number[][];
|
|
67
|
+
rmeove: number[][];
|
|
68
|
+
};
|
|
69
|
+
sun: {
|
|
70
|
+
update: number[][];
|
|
71
|
+
rmeove: number[][];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export type RequestFlowUpdateQueueData = {
|
|
75
|
+
flow: {
|
|
76
|
+
update: number[][];
|
|
77
|
+
rmeove: number[][];
|
|
78
|
+
};
|
|
79
|
+
} & RequestLightUpdateQueueData;
|
|
80
|
+
export type RequestsVoxelUpdateQueuesData = {
|
|
81
|
+
flow: {
|
|
82
|
+
update: number[][];
|
|
83
|
+
rmeove: number[][];
|
|
84
|
+
};
|
|
85
|
+
} & RequestLightUpdateQueueData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CompassDirectionNames } from "../Math/Math.types";
|
|
2
|
+
export type DirectionNames = "up" | "down" | Exclude<CompassDirectionNames, "north-west" | "north-east" | "south-west" | "south-east">;
|
|
3
|
+
export type RecursivePartial<T> = {
|
|
4
|
+
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type VoxelPalette = string[];
|
|
2
|
+
export type VoxelPaletteMap = Record<string, number>;
|
|
3
|
+
/**# Voxel Data
|
|
4
|
+
* ---
|
|
5
|
+
* This the needed information for each voxel.
|
|
6
|
+
*/
|
|
7
|
+
export interface VoxelData {
|
|
8
|
+
id: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
tags: ([id: string, value: any] | [id: "#dve_substance", value: string] | [id: "#dve_shape_id", value: string] | [id: "#dve_is_light_source", value: boolean] | [id: "#dve_no_ao", value: boolean] | [id: "#dve_light_value", value: [r: number, g: number, z: number]] | [id: "#dve_collider_id", value: string] | [id: "#dve_check_collisions", value: boolean] | [id: "#dve_can_have_secondary", value: boolean] | [id: "#dve_material", value: string] | [id: "#dve_hardness", value: number] | [id: "#dve_is_rich", value: boolean])[];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/Types/index.d.ts
ADDED
package/Types/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Vec3Array } from "@amodx/math";
|
|
2
|
+
export declare class DataMatrix<T> {
|
|
3
|
+
size: Vec3Array;
|
|
4
|
+
defaultValue: T;
|
|
5
|
+
private _matrix;
|
|
6
|
+
constructor(size: Vec3Array, defaultValue: T);
|
|
7
|
+
get sizeX(): number;
|
|
8
|
+
get sizeY(): number;
|
|
9
|
+
get sizeZ(): number;
|
|
10
|
+
setMatrix(matrix: T[][][]): void;
|
|
11
|
+
cloneMatrix(): T[][][];
|
|
12
|
+
setVec3([x, y, z]: Vec3Array, value: T): void;
|
|
13
|
+
setXYZ(x: number, y: number, z: number, value: T): void;
|
|
14
|
+
getVec3([x, y, z]: Vec3Array): T | undefined;
|
|
15
|
+
getXYZ(x: number, y: number, z: number): T | undefined;
|
|
16
|
+
deleteVec3([x, y, z]: Vec3Array): void;
|
|
17
|
+
deleteXYZ(x: number, y: number, z: number): void;
|
|
18
|
+
setAll(value: T): void;
|
|
19
|
+
getAll(): Generator<[Vec3Array, T]>;
|
|
20
|
+
swap(startPosition: Vec3Array, endPosition: Vec3Array): void;
|
|
21
|
+
isCube(): boolean;
|
|
22
|
+
private isWithinBounds;
|
|
23
|
+
}
|