@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,20 @@
|
|
|
1
|
+
import type { LocationData } from "../../Math";
|
|
2
|
+
import type { Vec3Array } from "@amodx/math";
|
|
3
|
+
export declare class LocationBoundTool {
|
|
4
|
+
private _location;
|
|
5
|
+
get location(): LocationData;
|
|
6
|
+
dimension: string;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
z: number;
|
|
10
|
+
setDimension(dimensionId: string): this;
|
|
11
|
+
getLocation(): LocationData;
|
|
12
|
+
getXYZAsArray(): Vec3Array;
|
|
13
|
+
getXYZ(): {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
z: number;
|
|
17
|
+
};
|
|
18
|
+
setXYZ(x: number, y: number, z: number): this;
|
|
19
|
+
setLocation(location: LocationData): this;
|
|
20
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export class LocationBoundTool {
|
|
2
|
+
_location = ["main", 0, 0, 0];
|
|
3
|
+
get location() {
|
|
4
|
+
this._location[0] = this.dimension;
|
|
5
|
+
this._location[1] = this.x;
|
|
6
|
+
this._location[2] = this.y;
|
|
7
|
+
this._location[3] = this.z;
|
|
8
|
+
return this._location;
|
|
9
|
+
}
|
|
10
|
+
dimension = "main";
|
|
11
|
+
x = 0;
|
|
12
|
+
y = 0;
|
|
13
|
+
z = 0;
|
|
14
|
+
setDimension(dimensionId) {
|
|
15
|
+
this.dimension = dimensionId;
|
|
16
|
+
// this.location[0] = dimensionId;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
getLocation() {
|
|
20
|
+
return [this.dimension, this.x, this.y, this.z];
|
|
21
|
+
}
|
|
22
|
+
getXYZAsArray() {
|
|
23
|
+
return [this.x, this.y, this.z];
|
|
24
|
+
}
|
|
25
|
+
getXYZ() {
|
|
26
|
+
return {
|
|
27
|
+
x: this.x,
|
|
28
|
+
y: this.y,
|
|
29
|
+
z: this.z,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
setXYZ(x, y, z) {
|
|
33
|
+
this.x = x;
|
|
34
|
+
this.y = y;
|
|
35
|
+
this.z = z;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
setLocation(location) {
|
|
39
|
+
this.dimension = location[0];
|
|
40
|
+
this.x = location[1];
|
|
41
|
+
this.y = location[2];
|
|
42
|
+
this.z = location[3];
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RichDataSchema } from "../../Data/Types/RichWorldData.types.js";
|
|
2
|
+
import { DataToolBase } from "./DataToolBase.js";
|
|
3
|
+
export declare abstract class RichDataSegmentTool extends DataToolBase {
|
|
4
|
+
sceham: RichDataSchema;
|
|
5
|
+
segment: string;
|
|
6
|
+
constructor();
|
|
7
|
+
setSegment(segment: string): this;
|
|
8
|
+
getSegment(): false | Record<string, any>;
|
|
9
|
+
getAll(): false | RichDataSchema;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DataToolBase } from "./DataToolBase.js";
|
|
2
|
+
export class RichDataSegmentTool extends DataToolBase {
|
|
3
|
+
sceham = {};
|
|
4
|
+
segment = "voxel";
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
}
|
|
8
|
+
setSegment(segment) {
|
|
9
|
+
this.segment = segment;
|
|
10
|
+
if (!this.sceham[segment]) {
|
|
11
|
+
this.sceham[segment] = {};
|
|
12
|
+
}
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
getSegment() {
|
|
16
|
+
const segment = this.sceham[this.segment];
|
|
17
|
+
if (segment)
|
|
18
|
+
return segment;
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
getAll() {
|
|
22
|
+
if (this.sceham)
|
|
23
|
+
return this.sceham;
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { RawVoxelData } from "../../Data/Types/VoxelData.types";
|
|
2
|
+
import { VoxelStruct } from "../../Data/Voxel/VoxelStruct.js";
|
|
3
|
+
import { ChunkDataTool } from "./WorldData/ChunkDataTool.js";
|
|
4
|
+
import { HeightMapTool } from "./WorldData/HeightMapTool.js";
|
|
5
|
+
import { DataToolBase } from "../Classes/DataToolBase.js";
|
|
6
|
+
import { ColumnDataTool } from "./WorldData/ColumnDataTool.js";
|
|
7
|
+
import { SubstanceDataTool } from "./SubstanceDataTool.js";
|
|
8
|
+
import { AddVoxelData } from "../../Data/Types/WorldData.types.js";
|
|
9
|
+
export declare enum DataToolModes {
|
|
10
|
+
/**# World Data Mode
|
|
11
|
+
* ---
|
|
12
|
+
* Read data directly from the world.
|
|
13
|
+
*/
|
|
14
|
+
WORLD = 0,
|
|
15
|
+
/**# Voxel Matrix Mode
|
|
16
|
+
* ---
|
|
17
|
+
* Read from a voxel matrix.
|
|
18
|
+
*/
|
|
19
|
+
VOXEL_MATRIX = 1,
|
|
20
|
+
/**# Voxel Data Mode
|
|
21
|
+
* ---
|
|
22
|
+
* Read data from a single voxel passed in via `loadInRaw`
|
|
23
|
+
*/
|
|
24
|
+
VOXEL_DATA = 2
|
|
25
|
+
}
|
|
26
|
+
export declare class DataTool extends DataToolBase {
|
|
27
|
+
static GetVoxelIDFromString(id: string): number;
|
|
28
|
+
static GetVoxelIDFromNumber(id: number): string;
|
|
29
|
+
static IsSameVoxel(dataTool1: DataTool, dataTool2: DataTool): boolean;
|
|
30
|
+
static VoxelDataToRaw(data: Partial<AddVoxelData>, light?: number): RawVoxelData;
|
|
31
|
+
static Modes: typeof DataToolModes;
|
|
32
|
+
static _heightMapTool: HeightMapTool;
|
|
33
|
+
static _columntool: ColumnDataTool;
|
|
34
|
+
_chunkTool: ChunkDataTool;
|
|
35
|
+
_substanceTool: SubstanceDataTool;
|
|
36
|
+
_loadedIn: boolean;
|
|
37
|
+
_mode: DataToolModes;
|
|
38
|
+
data: {
|
|
39
|
+
raw: RawVoxelData;
|
|
40
|
+
id: number;
|
|
41
|
+
secondaryId: number;
|
|
42
|
+
};
|
|
43
|
+
/**## secondary
|
|
44
|
+
* If the data tool is processing secondary voxoels
|
|
45
|
+
*/
|
|
46
|
+
__secondary: boolean;
|
|
47
|
+
private _loadedId;
|
|
48
|
+
constructor();
|
|
49
|
+
setMode(mode: DataToolModes): this;
|
|
50
|
+
clear(): this;
|
|
51
|
+
setDimension(dimensionId: string | number): this;
|
|
52
|
+
setSecondary(enable: boolean): this;
|
|
53
|
+
getSubstnaceData(): SubstanceDataTool;
|
|
54
|
+
getRaw(): RawVoxelData;
|
|
55
|
+
waitTillCanLoad(maxWaitTime?: number): Promise<boolean>;
|
|
56
|
+
loadInRaw(rawData: RawVoxelData): this;
|
|
57
|
+
loadInData(data: Partial<AddVoxelData>, light?: number): void;
|
|
58
|
+
__struct: VoxelStruct;
|
|
59
|
+
private __process;
|
|
60
|
+
loadIn(): boolean;
|
|
61
|
+
commit(heightMapUpdate?: number): boolean;
|
|
62
|
+
hasRGBLight(): boolean;
|
|
63
|
+
hasSunLight(): boolean;
|
|
64
|
+
getLight(): number;
|
|
65
|
+
setLight(light: number): this;
|
|
66
|
+
isOpaque(): boolean;
|
|
67
|
+
getMod(): number;
|
|
68
|
+
setMod(mod: number): this;
|
|
69
|
+
getLevel(): number;
|
|
70
|
+
setLevel(level: number): this;
|
|
71
|
+
getLevelState(): number;
|
|
72
|
+
setLevelState(state: number): this;
|
|
73
|
+
getShapeState(): number;
|
|
74
|
+
setShapeState(state: number): this;
|
|
75
|
+
hasSecondaryVoxel(): boolean;
|
|
76
|
+
canHaveSecondaryVoxel(): boolean;
|
|
77
|
+
getShapeId(): number;
|
|
78
|
+
getShapeStringId(): string | null;
|
|
79
|
+
isLightSource(): boolean;
|
|
80
|
+
noAO(): boolean;
|
|
81
|
+
getLightSourceValue(): number;
|
|
82
|
+
getSubstanceStringId(): string;
|
|
83
|
+
getSubstance(): number;
|
|
84
|
+
getMaterial(): string | null;
|
|
85
|
+
getHardness(): number;
|
|
86
|
+
getCollider(): string | null;
|
|
87
|
+
checkCollisions(): boolean;
|
|
88
|
+
isRich(): boolean | 0;
|
|
89
|
+
setAir(): this;
|
|
90
|
+
isAir(): boolean;
|
|
91
|
+
setBarrier(): this;
|
|
92
|
+
isBarrier(): boolean;
|
|
93
|
+
getId(base?: boolean): number;
|
|
94
|
+
setId(id: number): this;
|
|
95
|
+
setStringId(id: string): this;
|
|
96
|
+
getStringId(): string;
|
|
97
|
+
setName(name: string): void;
|
|
98
|
+
getName(): string;
|
|
99
|
+
isRenderable(): boolean;
|
|
100
|
+
isSameVoxel(dataTool: DataTool): boolean;
|
|
101
|
+
}
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { DimensionsRegister } from "../../Data/World/DimensionsRegister.js";
|
|
2
|
+
import { VoxelStateReader } from "../../Data/VoxelStateReader.js";
|
|
3
|
+
import { VoxelStruct } from "../../Data/Voxel/VoxelStruct.js";
|
|
4
|
+
import { VoxelPalette } from "../../Data/Voxel/VoxelPalette.js";
|
|
5
|
+
import { ChunkDataTool } from "./WorldData/ChunkDataTool.js";
|
|
6
|
+
import { HeightMapTool } from "./WorldData/HeightMapTool.js";
|
|
7
|
+
import { DataToolBase } from "../Classes/DataToolBase.js";
|
|
8
|
+
import { WorldSpaces } from "../../Data/World/WorldSpaces.js";
|
|
9
|
+
import { ColumnDataTool } from "./WorldData/ColumnDataTool.js";
|
|
10
|
+
import { LightData } from "../../Data/LightData.js";
|
|
11
|
+
import { VoxelStructProperties } from "../../Data/Constants/Structs/VoxelStructProperties.js";
|
|
12
|
+
import { MappedDataRegister } from "../../Data/Register/MappedDataRegister.js";
|
|
13
|
+
import { SubstanceDataTool } from "./SubstanceDataTool.js";
|
|
14
|
+
import { SafeInterval } from "@amodx/core/Intervals/SafeInterval.js";
|
|
15
|
+
import { SafePromise } from "@amodx/core/Promises/SafePromise.js";
|
|
16
|
+
import { WorldRegister } from "../../Data/World/WorldRegister.js";
|
|
17
|
+
import { VoxelTagIDs } from "../../Data/Constants/VoxelTagIds.js";
|
|
18
|
+
import { SubstancePaletteReader } from "../../Data/Substance/SubstancePalette.js";
|
|
19
|
+
export var DataToolModes;
|
|
20
|
+
(function (DataToolModes) {
|
|
21
|
+
/**# World Data Mode
|
|
22
|
+
* ---
|
|
23
|
+
* Read data directly from the world.
|
|
24
|
+
*/
|
|
25
|
+
DataToolModes[DataToolModes["WORLD"] = 0] = "WORLD";
|
|
26
|
+
/**# Voxel Matrix Mode
|
|
27
|
+
* ---
|
|
28
|
+
* Read from a voxel matrix.
|
|
29
|
+
*/
|
|
30
|
+
DataToolModes[DataToolModes["VOXEL_MATRIX"] = 1] = "VOXEL_MATRIX";
|
|
31
|
+
/**# Voxel Data Mode
|
|
32
|
+
* ---
|
|
33
|
+
* Read data from a single voxel passed in via `loadInRaw`
|
|
34
|
+
*/
|
|
35
|
+
DataToolModes[DataToolModes["VOXEL_DATA"] = 2] = "VOXEL_DATA";
|
|
36
|
+
})(DataToolModes || (DataToolModes = {}));
|
|
37
|
+
export class DataTool extends DataToolBase {
|
|
38
|
+
static GetVoxelIDFromString(id) {
|
|
39
|
+
return VoxelPalette.ids.getNumberId(id);
|
|
40
|
+
}
|
|
41
|
+
static GetVoxelIDFromNumber(id) {
|
|
42
|
+
return VoxelPalette.ids.getStringId(id);
|
|
43
|
+
}
|
|
44
|
+
static IsSameVoxel(dataTool1, dataTool2) {
|
|
45
|
+
return dataTool1.getId(true) == dataTool2.getId(true);
|
|
46
|
+
}
|
|
47
|
+
static VoxelDataToRaw(data, light = 0) {
|
|
48
|
+
const id = (data.id !== undefined && VoxelPalette.ids.getNumberId(data.id)) || 0;
|
|
49
|
+
const secondaryId = (data.secondaryVoxelId !== undefined &&
|
|
50
|
+
VoxelPalette.ids.getNumberId(data.secondaryVoxelId)) ||
|
|
51
|
+
0;
|
|
52
|
+
let stateData = 0;
|
|
53
|
+
if (data.level !== undefined)
|
|
54
|
+
stateData = VoxelStateReader.setLevel(stateData, data.level);
|
|
55
|
+
if (data.levelState !== undefined)
|
|
56
|
+
stateData = VoxelStateReader.setLevelState(stateData, data.levelState);
|
|
57
|
+
if (data.shapeState !== undefined)
|
|
58
|
+
stateData = VoxelStateReader.setShapeState(stateData, data.shapeState);
|
|
59
|
+
return [id, light, stateData, secondaryId, data.mod || 0];
|
|
60
|
+
}
|
|
61
|
+
static Modes = DataToolModes;
|
|
62
|
+
static _heightMapTool = new HeightMapTool();
|
|
63
|
+
static _columntool = new ColumnDataTool();
|
|
64
|
+
_chunkTool = new ChunkDataTool();
|
|
65
|
+
_substanceTool = new SubstanceDataTool();
|
|
66
|
+
_loadedIn = false;
|
|
67
|
+
_mode = DataToolModes.WORLD;
|
|
68
|
+
data = {
|
|
69
|
+
raw: Uint16Array.from([0, 0, 0, 0, 0]),
|
|
70
|
+
id: 0,
|
|
71
|
+
secondaryId: 0,
|
|
72
|
+
};
|
|
73
|
+
/**## secondary
|
|
74
|
+
* If the data tool is processing secondary voxoels
|
|
75
|
+
*/
|
|
76
|
+
__secondary = false;
|
|
77
|
+
_loadedId = 0;
|
|
78
|
+
constructor() {
|
|
79
|
+
super();
|
|
80
|
+
}
|
|
81
|
+
setMode(mode) {
|
|
82
|
+
this._mode = mode;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
clear() {
|
|
86
|
+
this._loadedIn = false;
|
|
87
|
+
let i = this.data.raw.length;
|
|
88
|
+
while (i--) {
|
|
89
|
+
this.data.raw[i] = 0;
|
|
90
|
+
}
|
|
91
|
+
this.data.id = 0;
|
|
92
|
+
this.data.secondaryId = 0;
|
|
93
|
+
return this;
|
|
94
|
+
}
|
|
95
|
+
setDimension(dimensionId) {
|
|
96
|
+
this.dimension =
|
|
97
|
+
DimensionsRegister.instance.getDimensionStringId(dimensionId);
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
100
|
+
setSecondary(enable) {
|
|
101
|
+
this.__secondary = enable;
|
|
102
|
+
if (enable) {
|
|
103
|
+
this.__struct.setIndex(VoxelStruct.voxelIndex[this.data.secondaryId]);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
this.__struct.setIndex(VoxelStruct.voxelIndex[this.data.id]);
|
|
107
|
+
}
|
|
108
|
+
this._loadedId = this.getId(true);
|
|
109
|
+
return this;
|
|
110
|
+
}
|
|
111
|
+
getSubstnaceData() {
|
|
112
|
+
this._substanceTool.setSubstance(this.getSubstance());
|
|
113
|
+
return this._substanceTool;
|
|
114
|
+
}
|
|
115
|
+
getRaw() {
|
|
116
|
+
return this.data.raw;
|
|
117
|
+
}
|
|
118
|
+
async waitTillCanLoad(maxWaitTime = 60_000) {
|
|
119
|
+
WorldRegister.instance.setDimension(this.dimension);
|
|
120
|
+
if (WorldRegister.instance.chunk.get(this.x, this.y, this.z))
|
|
121
|
+
return true;
|
|
122
|
+
return new SafePromise("wait-till-can-load", (resolve, reject, prom) => {
|
|
123
|
+
const inte = new SafeInterval();
|
|
124
|
+
prom.observers.died.subscribe(resolve, () => inte.stop());
|
|
125
|
+
prom.observers.canceled.subscribe(resolve, () => inte.stop());
|
|
126
|
+
prom.observers.finally.subscribe(resolve, () => inte.stop());
|
|
127
|
+
inte.setOnRun(() => {
|
|
128
|
+
WorldRegister.instance.setDimension(this.dimension);
|
|
129
|
+
if (WorldRegister.instance.chunk.get(this.x, this.y, this.z)) {
|
|
130
|
+
resolve(true);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}, maxWaitTime).run();
|
|
134
|
+
}
|
|
135
|
+
loadInRaw(rawData) {
|
|
136
|
+
this.data.raw[0] = rawData[0];
|
|
137
|
+
this.data.raw[1] = rawData[1];
|
|
138
|
+
this.data.raw[2] = rawData[2];
|
|
139
|
+
this.data.raw[3] = rawData[3];
|
|
140
|
+
this.data.raw[4] = rawData[4];
|
|
141
|
+
this.__process();
|
|
142
|
+
return this;
|
|
143
|
+
}
|
|
144
|
+
loadInData(data, light = 0) {
|
|
145
|
+
this.loadInRaw(DataTool.VoxelDataToRaw(data, light));
|
|
146
|
+
}
|
|
147
|
+
__struct;
|
|
148
|
+
__process() {
|
|
149
|
+
if (!this.__struct)
|
|
150
|
+
this.__struct = VoxelStruct.clone();
|
|
151
|
+
this.data.id = this.data.raw[0];
|
|
152
|
+
this.data.secondaryId = this.data.raw[3];
|
|
153
|
+
if (this.data.secondaryId > 1) {
|
|
154
|
+
this.data.id = this.data.secondaryId;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
this.data.secondaryId = 0;
|
|
158
|
+
}
|
|
159
|
+
this.__struct.setIndex(VoxelStruct.voxelIndex[this.data.id]);
|
|
160
|
+
this._loadedId = this.getId(true);
|
|
161
|
+
}
|
|
162
|
+
loadIn() {
|
|
163
|
+
if (this._mode == DataTool.Modes.WORLD) {
|
|
164
|
+
if (!this._chunkTool
|
|
165
|
+
.setDimension(this.dimension)
|
|
166
|
+
.setXYZ(this.x, this.y, this.z)
|
|
167
|
+
.loadIn())
|
|
168
|
+
return false;
|
|
169
|
+
const index = WorldSpaces.voxel.getIndexXYZ(this.x, this.y, this.z);
|
|
170
|
+
this._chunkTool.loadInRaw(index, this.data.raw);
|
|
171
|
+
this.__process();
|
|
172
|
+
this._loadedIn = true;
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
if (this._mode == DataTool.Modes.VOXEL_MATRIX) {
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
if (this._mode == DataTool.Modes.VOXEL_DATA) {
|
|
179
|
+
this.data.raw[0] = 0;
|
|
180
|
+
this.data.raw[1] = LightData.getS(0xff);
|
|
181
|
+
this.data.raw[2] = 0;
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
commit(heightMapUpdate = 0) {
|
|
187
|
+
if (!this._loadedIn)
|
|
188
|
+
return false;
|
|
189
|
+
if (this._mode == DataTool.Modes.WORLD) {
|
|
190
|
+
const index = WorldSpaces.voxel.getIndexXYZ(this.x, this.y, this.z);
|
|
191
|
+
this._chunkTool.setRaw(index, this.data.raw);
|
|
192
|
+
if (DataTool._columntool
|
|
193
|
+
.setDimension(this.dimension)
|
|
194
|
+
.loadInAt(this.x, this.y, this.z)) {
|
|
195
|
+
DataTool._columntool.markAsNotStored();
|
|
196
|
+
}
|
|
197
|
+
if (heightMapUpdate) {
|
|
198
|
+
DataTool._heightMapTool.chunk._c = this._chunkTool._c;
|
|
199
|
+
//on add
|
|
200
|
+
if (heightMapUpdate == 1) {
|
|
201
|
+
DataTool._heightMapTool.chunk.setY(this.y).setHasVoxels(true);
|
|
202
|
+
// DataTool._heightMapTool.chunk.update("add", substance, this.location);
|
|
203
|
+
}
|
|
204
|
+
//on remove
|
|
205
|
+
if (heightMapUpdate == 2) {
|
|
206
|
+
DataTool._heightMapTool.chunk.setY(this.y).setDirty(true);
|
|
207
|
+
// DataTool._heightMapTool.chunk.update("remove", substance, this.location);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
this._loadedIn = false;
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
213
|
+
if (this._mode == DataTool.Modes.VOXEL_MATRIX) {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
if (this._mode == DataTool.Modes.VOXEL_DATA) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
hasRGBLight() {
|
|
222
|
+
const light = this.getLight();
|
|
223
|
+
if (light <= 0)
|
|
224
|
+
false;
|
|
225
|
+
return LightData.hasRGBLight(light);
|
|
226
|
+
}
|
|
227
|
+
hasSunLight() {
|
|
228
|
+
const light = this.getLight();
|
|
229
|
+
if (light <= 0)
|
|
230
|
+
false;
|
|
231
|
+
return LightData.hasSunLight(light);
|
|
232
|
+
}
|
|
233
|
+
getLight() {
|
|
234
|
+
if (this._mode == DataTool.Modes.VOXEL_DATA)
|
|
235
|
+
return 0xf;
|
|
236
|
+
const vID = this._loadedId;
|
|
237
|
+
if (vID == 0)
|
|
238
|
+
return this.data.raw[1];
|
|
239
|
+
if (vID < 2)
|
|
240
|
+
return -1;
|
|
241
|
+
const lightValue = this.__struct[VoxelTagIDs.lightValue];
|
|
242
|
+
if (this.isOpaque()) {
|
|
243
|
+
if (this.__struct[VoxelTagIDs.isLightSource] && lightValue) {
|
|
244
|
+
return lightValue;
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
return -1;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if (this.__struct[VoxelTagIDs.isLightSource] && lightValue) {
|
|
251
|
+
return LightData.mixLight(this.data.raw[1], lightValue);
|
|
252
|
+
}
|
|
253
|
+
return this.data.raw[1];
|
|
254
|
+
}
|
|
255
|
+
setLight(light) {
|
|
256
|
+
this.data.raw[1] = light;
|
|
257
|
+
return this;
|
|
258
|
+
}
|
|
259
|
+
isOpaque() {
|
|
260
|
+
return this.__struct[VoxelTagIDs.isTransparent] == 0;
|
|
261
|
+
}
|
|
262
|
+
getMod() {
|
|
263
|
+
return this.data.raw[4];
|
|
264
|
+
}
|
|
265
|
+
setMod(mod) {
|
|
266
|
+
this.data.raw[4] = mod;
|
|
267
|
+
return this;
|
|
268
|
+
}
|
|
269
|
+
getLevel() {
|
|
270
|
+
return VoxelStateReader.getLevel(this.data.raw[2]);
|
|
271
|
+
}
|
|
272
|
+
setLevel(level) {
|
|
273
|
+
this.data.raw[2] = VoxelStateReader.setLevel(this.data.raw[2], level);
|
|
274
|
+
return this;
|
|
275
|
+
}
|
|
276
|
+
getLevelState() {
|
|
277
|
+
return VoxelStateReader.getLevelState(this.data.raw[2]);
|
|
278
|
+
}
|
|
279
|
+
setLevelState(state) {
|
|
280
|
+
this.data.raw[2] = VoxelStateReader.setLevelState(this.data.raw[2], state);
|
|
281
|
+
return this;
|
|
282
|
+
}
|
|
283
|
+
getShapeState() {
|
|
284
|
+
return VoxelStateReader.getShapeState(this.data.raw[2]);
|
|
285
|
+
}
|
|
286
|
+
setShapeState(state) {
|
|
287
|
+
this.data.raw[2] = VoxelStateReader.setShapeState(this.data.raw[2], state);
|
|
288
|
+
return this;
|
|
289
|
+
}
|
|
290
|
+
hasSecondaryVoxel() {
|
|
291
|
+
return this.data.secondaryId > 1;
|
|
292
|
+
}
|
|
293
|
+
canHaveSecondaryVoxel() {
|
|
294
|
+
return this.__struct[VoxelTagIDs.canHaveSecondary] == 1;
|
|
295
|
+
}
|
|
296
|
+
//voxel data
|
|
297
|
+
getShapeId() {
|
|
298
|
+
const vID = this._loadedId;
|
|
299
|
+
if (vID < 2)
|
|
300
|
+
return -1;
|
|
301
|
+
return this.__struct[VoxelTagIDs.shapeID];
|
|
302
|
+
}
|
|
303
|
+
getShapeStringId() {
|
|
304
|
+
const vID = this._loadedId;
|
|
305
|
+
if (vID < 2)
|
|
306
|
+
return "";
|
|
307
|
+
return MappedDataRegister.stringMaps.get("voxel", VoxelStructProperties.shapeID, this.__struct[VoxelTagIDs.shapeID]);
|
|
308
|
+
}
|
|
309
|
+
isLightSource() {
|
|
310
|
+
const vID = this._loadedId;
|
|
311
|
+
if (vID < 2)
|
|
312
|
+
return false;
|
|
313
|
+
return this.__struct[VoxelTagIDs.isLightSource] == 1;
|
|
314
|
+
}
|
|
315
|
+
noAO() {
|
|
316
|
+
const vID = this._loadedId;
|
|
317
|
+
if (vID < 2)
|
|
318
|
+
return false;
|
|
319
|
+
return this.__struct[VoxelTagIDs.noAO] == 1;
|
|
320
|
+
}
|
|
321
|
+
getLightSourceValue() {
|
|
322
|
+
const vID = this._loadedId;
|
|
323
|
+
if (vID < 2)
|
|
324
|
+
return 0;
|
|
325
|
+
return this.__struct[VoxelTagIDs.lightValue];
|
|
326
|
+
}
|
|
327
|
+
getSubstanceStringId() {
|
|
328
|
+
const vID = this._loadedId;
|
|
329
|
+
if (vID < 2)
|
|
330
|
+
return "#dve_transparent";
|
|
331
|
+
return SubstancePaletteReader.id.stringFromNumber(this.getSubstance());
|
|
332
|
+
}
|
|
333
|
+
getSubstance() {
|
|
334
|
+
const vID = this._loadedId;
|
|
335
|
+
if (vID < 2)
|
|
336
|
+
return -1;
|
|
337
|
+
return this.__struct[VoxelTagIDs.substance];
|
|
338
|
+
}
|
|
339
|
+
getMaterial() {
|
|
340
|
+
const vID = this._loadedId;
|
|
341
|
+
if (vID < 2)
|
|
342
|
+
return "none";
|
|
343
|
+
return MappedDataRegister.stringMaps.get("voxel", VoxelStructProperties.material, this.__struct[VoxelTagIDs.material]);
|
|
344
|
+
}
|
|
345
|
+
getHardness() {
|
|
346
|
+
const vID = this._loadedId;
|
|
347
|
+
if (vID < 2)
|
|
348
|
+
return 0;
|
|
349
|
+
return this.__struct[VoxelTagIDs.hardness];
|
|
350
|
+
}
|
|
351
|
+
getCollider() {
|
|
352
|
+
const vID = this._loadedId;
|
|
353
|
+
return MappedDataRegister.stringMaps.get("voxel", VoxelStructProperties.colliderID, this.__struct[VoxelTagIDs.colliderID]);
|
|
354
|
+
}
|
|
355
|
+
checkCollisions() {
|
|
356
|
+
const vID = this._loadedId;
|
|
357
|
+
if (vID == 0)
|
|
358
|
+
return false;
|
|
359
|
+
if (vID == 1)
|
|
360
|
+
return true;
|
|
361
|
+
return this.__struct[VoxelTagIDs.checkCollisions] == 1;
|
|
362
|
+
}
|
|
363
|
+
isRich() {
|
|
364
|
+
const vID = this._loadedId;
|
|
365
|
+
if (vID < 2)
|
|
366
|
+
return 0;
|
|
367
|
+
return this.__struct[VoxelTagIDs.isRich] == 1;
|
|
368
|
+
}
|
|
369
|
+
//util
|
|
370
|
+
setAir() {
|
|
371
|
+
this.data.raw[0] = 0;
|
|
372
|
+
this.__process();
|
|
373
|
+
return this;
|
|
374
|
+
}
|
|
375
|
+
isAir() {
|
|
376
|
+
return 0 == this.data.raw[0];
|
|
377
|
+
}
|
|
378
|
+
setBarrier() {
|
|
379
|
+
this.data.raw[0] = 1;
|
|
380
|
+
this.__process();
|
|
381
|
+
return this;
|
|
382
|
+
}
|
|
383
|
+
isBarrier() {
|
|
384
|
+
return 1 == this.data.raw[0];
|
|
385
|
+
}
|
|
386
|
+
//voxel id
|
|
387
|
+
getId(base = false) {
|
|
388
|
+
if (this.__secondary) {
|
|
389
|
+
if (!base)
|
|
390
|
+
return this.data.secondaryId;
|
|
391
|
+
return this.data.secondaryId;
|
|
392
|
+
}
|
|
393
|
+
if (!base)
|
|
394
|
+
return this.data.id;
|
|
395
|
+
return this.data.id;
|
|
396
|
+
}
|
|
397
|
+
setId(id) {
|
|
398
|
+
if (this.__secondary) {
|
|
399
|
+
this.data.raw[3] = id;
|
|
400
|
+
this.__process();
|
|
401
|
+
return this;
|
|
402
|
+
}
|
|
403
|
+
this.data.raw[0] = id;
|
|
404
|
+
this.__process();
|
|
405
|
+
return this;
|
|
406
|
+
}
|
|
407
|
+
setStringId(id) {
|
|
408
|
+
return this.setId(VoxelPalette.ids.getNumberId(id));
|
|
409
|
+
}
|
|
410
|
+
getStringId() {
|
|
411
|
+
if (this.__secondary) {
|
|
412
|
+
return VoxelPalette.ids.getStringId(this.data.secondaryId);
|
|
413
|
+
}
|
|
414
|
+
return VoxelPalette.ids.getStringId(this.data.id);
|
|
415
|
+
}
|
|
416
|
+
setName(name) {
|
|
417
|
+
this.setStringId(VoxelPalette.name.getId(name));
|
|
418
|
+
}
|
|
419
|
+
getName() {
|
|
420
|
+
return this.getStringId();
|
|
421
|
+
}
|
|
422
|
+
//util
|
|
423
|
+
isRenderable() {
|
|
424
|
+
if (this.data.id < 2 && this.data.secondaryId < 2)
|
|
425
|
+
return false;
|
|
426
|
+
return true;
|
|
427
|
+
}
|
|
428
|
+
isSameVoxel(dataTool) {
|
|
429
|
+
return DataTool.IsSameVoxel(this, dataTool);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Thread } from "@amodx/threads/";
|
|
2
|
+
import { LocationBoundTool } from "../Classes/LocationBoundTool.js";
|
|
3
|
+
export declare class RichDataTool extends LocationBoundTool {
|
|
4
|
+
segment: string;
|
|
5
|
+
comm: Thread;
|
|
6
|
+
_enabled: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
isEnabled(): boolean;
|
|
9
|
+
setSegment(segment: string): this;
|
|
10
|
+
columnHasData(check: (hasData: boolean) => void): void;
|
|
11
|
+
columnHasDataAsync(): Promise<boolean>;
|
|
12
|
+
getData<T = any>(onDone: (data: T | false) => void): void;
|
|
13
|
+
getDataAsync<T = any>(): Promise<T | false>;
|
|
14
|
+
setData<T = any>(data: T, onDone?: (data: boolean) => void): void;
|
|
15
|
+
setDataAsync<T = any>(data: T): Promise<boolean>;
|
|
16
|
+
removeData(onDone: (removed: boolean) => void): void;
|
|
17
|
+
removeDataAsync<T = any>(): Promise<boolean>;
|
|
18
|
+
removeColumn(onDone: (removed: boolean) => void): void;
|
|
19
|
+
removeColumnAsync<T = any>(): Promise<boolean>;
|
|
20
|
+
getColumn(onDone: (data: ArrayBuffer) => void): void;
|
|
21
|
+
getColumnAsync(): Promise<ArrayBuffer>;
|
|
22
|
+
setColumn(column: ArrayBuffer, onDone: (success: boolean) => void): void;
|
|
23
|
+
setColumnAsync(column: ArrayBuffer): Promise<boolean>;
|
|
24
|
+
releaeAllData(): void;
|
|
25
|
+
}
|