@divinevoxel/vlox 0.0.1 → 0.0.3

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.
Files changed (778) hide show
  1. package/Archive/Functions/ArchiveColumn.js +17 -17
  2. package/Archive/Functions/ImportColumn.js +14 -14
  3. package/Archive/Functions/Palettes.d.ts +1 -1
  4. package/Cache/Cache.types.d.ts +17 -0
  5. package/Cache/CacheManager.d.ts +11 -0
  6. package/Cache/CacheManager.js +17 -0
  7. package/{Data → Contexts/Base}/DataHooks.d.ts +8 -8
  8. package/{Data → Contexts/Base}/DataHooks.js +4 -4
  9. package/Contexts/Base/Main/Generator/DataGenerator.types.d.ts +12 -0
  10. package/Contexts/Base/Main/Generator/InitDataGenerator.d.ts +3 -0
  11. package/Contexts/Base/Main/Generator/InitDataGenerator.js +201 -0
  12. package/Contexts/Base/Main/Generator/Segments/MaterialDataGenerator.d.ts +6 -0
  13. package/Contexts/Base/Main/Generator/Segments/MaterialDataGenerator.js +12 -0
  14. package/Contexts/Base/Main/Generator/Segments/SubstanceDataGenerator.d.ts +6 -0
  15. package/Contexts/Base/Main/Generator/Segments/SubstanceDataGenerator.js +35 -0
  16. package/Contexts/{World/Data/Generators → Base/Main/Generator/Segments}/VoxelDataGenerator.d.ts +3 -2
  17. package/Contexts/{World/Data/Generators → Base/Main/Generator/Segments}/VoxelDataGenerator.js +16 -23
  18. package/Contexts/Base/Remote/Sync/DataSync.types.d.ts +34 -0
  19. package/Contexts/Base/Remote/Sync/InitDataSync.d.ts +4 -0
  20. package/Contexts/Base/Remote/Sync/InitDataSync.js +43 -0
  21. package/Contexts/Base/Remote/Sync/InitWorldDataSync.js +37 -0
  22. package/{Interfaces/Classes → Contexts/Base}/ThreadManager.d.ts +3 -5
  23. package/{Interfaces/Classes → Contexts/Base}/ThreadManager.js +3 -3
  24. package/Contexts/Constructor/ConstrcutorTheads.d.ts +1 -3
  25. package/Contexts/Constructor/ConstrcutorTheads.js +1 -9
  26. package/Contexts/Constructor/DivineVoxelEngineConstructor.d.ts +3 -8
  27. package/Contexts/Constructor/DivineVoxelEngineConstructor.js +3 -17
  28. package/Contexts/Constructor/{DVEConstructorTasksQueues.js → Tasks/DVEConstructorTasksQueues.js} +2 -3
  29. package/Contexts/Nexus/DivineVoxelEngineNexus.d.ts +3 -11
  30. package/Contexts/Nexus/DivineVoxelEngineNexus.js +2 -12
  31. package/Contexts/Nexus/{Threads/NexusTheads.d.ts → NexusTheads.d.ts} +1 -3
  32. package/Contexts/Nexus/NexusTheads.js +15 -0
  33. package/Contexts/Render/DVERenderThreads.d.ts +1 -1
  34. package/Contexts/Render/DVERenderThreads.js +1 -28
  35. package/Contexts/Render/DivineVoxelEngineRender.d.ts +7 -38
  36. package/Contexts/Render/DivineVoxelEngineRender.js +3 -23
  37. package/Contexts/Render/Scene/MeshRegister.d.ts +38 -31
  38. package/Contexts/Render/Scene/MeshRegister.js +207 -184
  39. package/Contexts/Render/Tasks/RenderTasks.js +5 -9
  40. package/Contexts/Render/Tasks/RenderTasks.types.d.ts +5 -11
  41. package/Contexts/World/Data/DataSync.d.ts +3 -25
  42. package/Contexts/World/Data/DataSync.js +4 -109
  43. package/Contexts/World/DivineVoxelEngineWorld.d.ts +3 -14
  44. package/Contexts/World/DivineVoxelEngineWorld.js +11 -28
  45. package/Contexts/World/Lock/WorldLock.d.ts +2 -2
  46. package/Contexts/World/Tasks/WorldTasks.js +11 -5
  47. package/Contexts/World/WorldThreads.d.ts +2 -8
  48. package/Contexts/World/WorldThreads.js +2 -21
  49. package/Data/Cursor/Interfaces/DataCursor.interface.d.ts +5 -0
  50. package/Data/Cursor/Interfaces/DataCursor.interface.js +2 -0
  51. package/Data/Cursor/Interfaces/VoxelCursor.interface.d.ts +63 -0
  52. package/Data/Cursor/Interfaces/VoxelCursor.interface.js +233 -0
  53. package/Data/Cursor/Template/TemplateCursor.d.ts +11 -0
  54. package/Data/Cursor/Template/TemplateCursor.js +20 -0
  55. package/Data/Cursor/Template/TemplateVoxelCursor.d.ts +13 -0
  56. package/Data/Cursor/Template/TemplateVoxelCursor.js +31 -0
  57. package/Data/Cursor/VoxelCursor.d.ts +12 -0
  58. package/Data/Cursor/VoxelCursor.js +25 -0
  59. package/Data/Cursor/World/ChunkCursor.d.ts +16 -0
  60. package/Data/Cursor/World/ChunkCursor.js +59 -0
  61. package/Data/Cursor/World/ColumnCursor.d.ts +16 -0
  62. package/Data/Cursor/World/ColumnCursor.js +57 -0
  63. package/Data/Cursor/World/WorldCursor.d.ts +12 -0
  64. package/Data/Cursor/World/WorldCursor.js +50 -0
  65. package/Data/Cursor/World/WorldSectionCursor.interface.d.ts +7 -0
  66. package/Data/Cursor/World/WorldVoxelCursor.d.ts +22 -0
  67. package/Data/Cursor/World/WorldVoxelCursor.js +55 -0
  68. package/Data/Palettes/MaterialPalette.d.ts +9 -0
  69. package/Data/Palettes/MaterialPalette.js +11 -0
  70. package/Data/Palettes/SubstancePalette.d.ts +9 -0
  71. package/Data/Palettes/SubstancePalette.js +11 -0
  72. package/Data/Palettes/VoxelPalette.d.ts +11 -0
  73. package/Data/Palettes/VoxelPalette.js +15 -0
  74. package/Data/Register/MappedDataRegister.js +1 -0
  75. package/{Contexts/World/Data/Classes → Data/Structs/Builder}/StructBuilder.d.ts +3 -2
  76. package/{Contexts/World/Data/Classes → Data/Structs/Builder}/StructBuilder.js +11 -27
  77. package/Data/Structs/Builder/SubstanceStructBuilder.d.ts +2 -0
  78. package/Data/Structs/Builder/SubstanceStructBuilder.js +42 -0
  79. package/Data/Structs/Builder/VoxelStructBuilder.d.ts +2 -0
  80. package/{Contexts/World/Data/StructBuilders → Data/Structs/Builder}/VoxelStructBuilder.js +22 -17
  81. package/Data/Structs/ChunkStruct.d.ts +1 -0
  82. package/{Contexts/World/Data → Data}/Structs/ChunkStruct.js +4 -4
  83. package/Data/Structs/ColumnStruct.d.ts +1 -0
  84. package/{Contexts/World/Data → Data}/Structs/ColumnStruct.js +13 -13
  85. package/Data/Structs/Constants/ChunkStructProperties.d.ts +10 -0
  86. package/Data/Structs/Constants/ChunkStructProperties.js +11 -0
  87. package/Data/Structs/Constants/SubstanceStructIds.d.ts +0 -0
  88. package/Data/Structs/Constants/SubstanceStructIds.js +1 -0
  89. package/Data/Structs/Constants/WorldDataStructProperties.d.ts +8 -0
  90. package/Data/Structs/Constants/WorldDataStructProperties.js +9 -0
  91. package/{Contexts/World/Data → Data}/Structs/RegionStruct.d.ts +0 -1
  92. package/{Contexts/World/Data → Data}/Structs/RegionStruct.js +9 -9
  93. package/Data/Structs/SubstanceStruct.d.ts +16 -0
  94. package/Data/{Substance → Structs}/SubstanceStruct.js +3 -3
  95. package/Data/Structs/VoxelStruct.d.ts +27 -0
  96. package/Data/{Voxel → Structs}/VoxelStruct.js +2 -2
  97. package/Data/Types/WorldData.types.d.ts +2 -2
  98. package/Data/Types/WorldData.types.js +2 -2
  99. package/Data/World/Classes/Chunk.d.ts +8 -3
  100. package/Data/World/Classes/Chunk.js +48 -19
  101. package/Data/World/Classes/Column.d.ts +5 -3
  102. package/Data/World/Classes/Column.js +10 -6
  103. package/Data/World/Classes/Region.js +1 -1
  104. package/Data/World/DimensionsRegister.js +1 -1
  105. package/Data/{RegionHeaderRegister.d.ts → World/RegionHeaderRegister.d.ts} +1 -1
  106. package/Data/{RegionHeaderRegister.js → World/RegionHeaderRegister.js} +2 -2
  107. package/Data/World/WorldBounds.d.ts +1 -0
  108. package/Data/World/WorldBounds.js +15 -0
  109. package/Data/World/WorldPainter.d.ts +6 -5
  110. package/Data/World/WorldPainter.js +30 -45
  111. package/Data/World/WorldRegister.js +21 -13
  112. package/Data/World/WorldRegisterCache.js +1 -1
  113. package/Data/World/WorldSpaces.d.ts +1 -1
  114. package/Init/StartConstructor.d.ts +2 -2
  115. package/Init/StartConstructor.js +51 -6
  116. package/Init/StartNexus.d.ts +2 -0
  117. package/Init/StartNexus.js +29 -0
  118. package/Init/StartRenderer.d.ts +15 -0
  119. package/Init/StartRenderer.js +84 -0
  120. package/Init/StartWorld.d.ts +3 -6
  121. package/Init/StartWorld.js +130 -6
  122. package/Math/Constants/Faces.d.ts +1 -1
  123. package/Mesher/Functions/CompactMesh.d.ts +3 -0
  124. package/Mesher/Functions/CompactMesh.js +37 -0
  125. package/Mesher/Functions/CompactVoxelMesh.d.ts +3 -0
  126. package/Mesher/Functions/CompactVoxelMesh.js +111 -0
  127. package/Mesher/Geometry/VoxelGeometry.d.ts +1 -1
  128. package/Mesher/Geometry/VoxelGeometry.js +13 -9
  129. package/Mesher/Mesher.d.ts +5 -69
  130. package/Mesher/Mesher.js +28 -46
  131. package/Mesher/Meshers/MesherInterface.d.ts +5 -0
  132. package/Mesher/Meshers/MesherManager.d.ts +3 -3
  133. package/Mesher/Meshers/MesherManager.js +2 -2
  134. package/Mesher/Meshers/{Meshers/TextureMesher.d.ts → TextureMesher.d.ts} +5 -3
  135. package/Mesher/Meshers/{Meshers/TextureMesher.js → TextureMesher.js} +18 -13
  136. package/Mesher/Meshers/VoxelMesher.d.ts +15 -0
  137. package/Mesher/Meshers/VoxelMesher.js +47 -0
  138. package/Mesher/Models/Common/BoundsFunctions.d.ts +4 -0
  139. package/Mesher/Models/Common/BoundsFunctions.js +56 -0
  140. package/Mesher/Models/Common/BoxGeometryNode.d.ts +10 -0
  141. package/Mesher/Models/Common/BoxGeometryNode.js +74 -0
  142. package/Mesher/{Calc → Models/Common/Calc}/CalcConstants.d.ts +3 -4
  143. package/Mesher/{Calc → Models/Common/Calc}/CalcConstants.js +3 -3
  144. package/Mesher/{Calc/Light → Models/Common/Calc}/FaceDataCalc.d.ts +2 -2
  145. package/Mesher/{Calc/Light → Models/Common/Calc}/FaceDataCalc.js +8 -10
  146. package/Mesher/Models/Common/QuadGeometryNode.d.ts +11 -0
  147. package/Mesher/Models/Common/QuadGeometryNode.js +51 -0
  148. package/Mesher/Models/Nodes/Custom/Liquid/FlowGradient.d.ts +6 -0
  149. package/Mesher/{Calc/Flow → Models/Nodes/Custom/Liquid}/FlowGradient.js +12 -15
  150. package/Mesher/Models/Nodes/Custom/Liquid/LiquidGeomtryNode.d.ts +15 -0
  151. package/Mesher/Models/Nodes/Custom/Liquid/LiquidGeomtryNode.js +269 -0
  152. package/Mesher/Models/Nodes/Custom/index.d.ts +0 -0
  153. package/Mesher/Models/Nodes/Custom/index.js +1 -0
  154. package/Mesher/Models/Nodes/GeometryNode.d.ts +22 -0
  155. package/{VoxelModels/Constructor → Mesher/Models}/Nodes/GeometryNode.js +5 -1
  156. package/Mesher/Models/Nodes/Ruled/BoxVoxelGeometryNode.d.ts +25 -0
  157. package/{VoxelModels/Constructor → Mesher/Models}/Nodes/Ruled/BoxVoxelGeometryNode.js +20 -83
  158. package/Mesher/Models/Nodes/Ruled/QuadVoxelGeometryNode.d.ts +21 -0
  159. package/{VoxelModels/Constructor → Mesher/Models}/Nodes/Ruled/QuadVoxelGeometryNode.js +21 -51
  160. package/Mesher/Models/Nodes/Ruleless/RulelessBoxVoxelGeometryNode.d.ts +19 -0
  161. package/Mesher/Models/Nodes/Ruleless/RulelessBoxVoxelGeometryNode.js +75 -0
  162. package/Mesher/Models/Nodes/Ruleless/RulelessQuadVoxelGeometryNode.d.ts +20 -0
  163. package/{VoxelModels/Constructor → Mesher/Models}/Nodes/Ruleless/RulelessQuadVoxelGeometryNode.js +18 -48
  164. package/Mesher/Models/Nodes/VoxelGeometryConstructor.d.ts +13 -0
  165. package/Mesher/Models/Nodes/VoxelGeometryConstructor.js +68 -0
  166. package/Mesher/Models/VoxelConstructor.d.ts +30 -0
  167. package/{VoxelModels/Constructor/VoxelModelVoxelConstructor.js → Mesher/Models/VoxelConstructor.js} +34 -20
  168. package/{VoxelModels/Constructor → Mesher/Models}/VoxelGeometryLookUp.d.ts +6 -5
  169. package/{VoxelModels/Constructor → Mesher/Models}/VoxelGeometryLookUp.js +28 -25
  170. package/Mesher/Models/VoxelModelConstructorRegister.d.ts +21 -0
  171. package/Mesher/Models/VoxelModelConstructorRegister.js +53 -0
  172. package/Mesher/Models/VoxelModelEffect.d.ts +13 -0
  173. package/Mesher/Models/VoxelModelEffect.js +43 -0
  174. package/Mesher/Processors/ChunkProcessor.d.ts +6 -2
  175. package/Mesher/Processors/ChunkProcessor.js +68 -30
  176. package/Mesher/{Rules → Substances}/RenderedSubstances.d.ts +0 -1
  177. package/Mesher/Substances/RenderedSubstances.js +7 -0
  178. package/Mesher/Tasks/BuidlerTasks.types.d.ts +2 -2
  179. package/Mesher/Tools/OutlinedVoxelTool.js +46 -29
  180. package/Mesher/Tools/VoxelMeshBVHBuilder.d.ts +85 -0
  181. package/Mesher/Tools/VoxelMeshBVHBuilder.js +233 -0
  182. package/Mesher/Tools/VoxelMeshVertexStructCursor.d.ts +54 -0
  183. package/Mesher/Tools/VoxelMeshVertexStructCursor.js +145 -0
  184. package/Mesher/Tools/VoxelMesherDataTool.d.ts +22 -11
  185. package/Mesher/Tools/VoxelMesherDataTool.js +44 -62
  186. package/Mesher/Tools/VoxelTemplateDataTool.d.ts +2 -2
  187. package/Mesher/Tools/VoxelTemplateDataTool.js +1 -1
  188. package/Mesher/Types/Mesher.types.d.ts +21 -0
  189. package/Mesher/Types/VoxelMesh.types.d.ts +5 -0
  190. package/Mesher/Types/VoxelMesh.types.js +14 -0
  191. package/Mesher/Types/index.d.ts +2 -1
  192. package/Mesher/Types/index.js +2 -1
  193. package/Models/Defaults/LiquidVoxelModel.d.ts +7 -0
  194. package/Models/Defaults/LiquidVoxelModel.js +47 -0
  195. package/{VoxelModels → Models}/Examples.d.ts +4 -0
  196. package/{VoxelModels → Models}/Examples.js +369 -99
  197. package/{VoxelModels → Models}/Input/BoxVoxelGometryInputs.js +4 -1
  198. package/{VoxelModels → Models}/Rules/Classes/OcclusionFace.js +2 -2
  199. package/Models/Rules/Classes/VoxelRulesGeometry.d.ts +15 -0
  200. package/{VoxelModels → Models}/Rules/Classes/VoxelRulesGeometry.js +9 -12
  201. package/{VoxelModels → Models}/Rules/Classes/VoxelRulesModel.d.ts +1 -1
  202. package/{VoxelModels → Models}/Rules/Functions/BuildGeomtryInputs.js +20 -2
  203. package/{VoxelModels → Models}/Rules/Functions/BuildRules.d.ts +1 -1
  204. package/{VoxelModels → Models}/Rules/Functions/GetOcclusionFaces.d.ts +1 -1
  205. package/{VoxelModels → Models}/Rules/Functions/GetOcclusionFaces.js +1 -1
  206. package/{VoxelModels → Models}/Rules/VoxelModelManager.d.ts +1 -1
  207. package/{VoxelModels → Models}/Rules/VoxelModelManager.js +9 -7
  208. package/{VoxelModels → Models}/Shared/Transform.d.ts +2 -2
  209. package/{VoxelModels → Models}/Shared/Transform.js +1 -4
  210. package/{VoxelModels → Models}/VoxelModel.types.d.ts +13 -26
  211. package/README.md +3 -5
  212. package/Renderer/Classes/ChunkMesh.d.ts +10 -0
  213. package/Renderer/Classes/ChunkMesh.js +13 -0
  214. package/Renderer/Classes/MeshRegisterColumn.d.ts +7 -0
  215. package/Renderer/Classes/MeshRegisterColumn.js +7 -0
  216. package/Renderer/Classes/MushRegisterRegion.d.ts +4 -0
  217. package/Renderer/Classes/MushRegisterRegion.js +3 -0
  218. package/Renderer/DVEChunkMeshInterface.d.ts +3 -0
  219. package/Renderer/DVEChunkMeshes.d.ts +6 -0
  220. package/Renderer/DVEChunkMeshes.js +2 -0
  221. package/{Interfaces/Render/Nodes → Renderer}/DVERenderNode.types.d.ts +3 -3
  222. package/Renderer/DVERenderer.d.ts +6 -0
  223. package/Renderer/MeshManager.d.ts +11 -0
  224. package/Renderer/MeshManager.js +79 -0
  225. package/Renderer/MeshRegister.d.ts +39 -0
  226. package/Renderer/MeshRegister.js +218 -0
  227. package/{Data/Settings → Settings}/EngineSettings.d.ts +1 -1
  228. package/{Data/Settings → Settings}/EngineSettings.js +5 -5
  229. package/{Types → Settings}/EngineSettings.types.d.ts +5 -5
  230. package/{Types → Settings}/EngineSettings.types.js +3 -5
  231. package/Tasks/Analyzer/Analyzer.d.ts +19 -0
  232. package/Tasks/Analyzer/Analyzer.js +156 -0
  233. package/{Analyzer → Tasks/Analyzer}/AnalyzerUpdater.d.ts +2 -2
  234. package/Tasks/Analyzer/InitTasks.js +16 -0
  235. package/{DataLoader → Tasks/DataLoader}/Broswer/DataHandler.d.ts +2 -2
  236. package/{DataLoader → Tasks/DataLoader}/Broswer/DataHandler.js +1 -1
  237. package/{DataLoader → Tasks/DataLoader}/Broswer/WorldDataTool.d.ts +2 -2
  238. package/{DataLoader → Tasks/DataLoader}/Broswer/WorldDataTool.js +1 -1
  239. package/{DataLoader → Tasks/DataLoader}/Constructor/WorldDataSerializer.d.ts +5 -5
  240. package/{DataLoader → Tasks/DataLoader}/Constructor/WorldDataSerializer.js +3 -3
  241. package/{DataLoader → Tasks/DataLoader}/Node/DivineVoxelEngineData.d.ts +1 -1
  242. package/{DataLoader → Tasks/DataLoader}/Node/DivineVoxelEngineData.js +1 -1
  243. package/{DataLoader → Tasks/DataLoader}/Node/System/RegionSystem.d.ts +1 -1
  244. package/{DataLoader → Tasks/DataLoader}/Node/Tools/NodeRegionTool.d.ts +1 -1
  245. package/{DataLoader → Tasks/DataLoader}/Node/Util/DVED.util.js +3 -3
  246. package/{Interfaces/DataLoader → Tasks/DataLoader/Types}/DVEDataHandler.d.ts +1 -1
  247. package/{Interfaces/DataLoader → Tasks/DataLoader/Types}/DVEDataHandler.js +1 -1
  248. package/{DataLoader → Tasks/DataLoader}/World/DataHandlerWrapper.d.ts +3 -5
  249. package/{DataLoader → Tasks/DataLoader}/World/DataHandlerWrapper.js +5 -32
  250. package/{DataLoader → Tasks/DataLoader}/World/DataLoaderTasks.js +2 -2
  251. package/{DataLoader → Tasks/DataLoader}/World/DivineVoxelEngineDataLoaderWorld.d.ts +1 -1
  252. package/{DataLoader → Tasks/DataLoader}/World/Tools/DataLoaderTool.d.ts +2 -2
  253. package/{DataLoader → Tasks/DataLoader}/World/Tools/DataLoaderTool.js +7 -7
  254. package/{DataLoader → Tasks/DataLoader}/World/Tools/DataSerializerTool.d.ts +2 -2
  255. package/{DataLoader → Tasks/DataLoader}/World/Tools/DataSerializerTool.js +1 -1
  256. package/{DataLoader → Tasks/DataLoader}/World/Tools/LoaderRegister.d.ts +1 -1
  257. package/{DataLoader → Tasks/DataLoader}/World/Tools/LoaderRegister.js +1 -1
  258. package/Tasks/IWG/Constants/ColumnState.d.ts +6 -0
  259. package/Tasks/IWG/Constants/ColumnState.js +7 -0
  260. package/{IWG → Tasks/IWG}/World/Classes/DebouncedTasks.d.ts +1 -1
  261. package/{IWG → Tasks/IWG}/World/Classes/DebouncedTasks.js +1 -1
  262. package/{IWG → Tasks/IWG}/World/Classes/Generator.d.ts +5 -7
  263. package/{IWG → Tasks/IWG}/World/Classes/Generator.js +19 -22
  264. package/{IWG → Tasks/IWG}/World/Classes/Tasks/IWGBatchTask.d.ts +1 -1
  265. package/{IWG → Tasks/IWG}/World/Classes/Tasks/IWGTaskBase.d.ts +1 -1
  266. package/{IWG → Tasks/IWG}/World/Classes/Tasks/IWGTaskBase.js +1 -1
  267. package/{IWG → Tasks/IWG}/World/IWG.js +1 -1
  268. package/{IWG → Tasks/IWG}/World/Load/SafeExit.js +0 -1
  269. package/{IWG → Tasks/IWG}/World/Load/Teleport.d.ts +1 -1
  270. package/{IWG → Tasks/IWG}/World/Tasks/Rendering/IWGBuildTasks.js +1 -1
  271. package/{IWG → Tasks/IWG}/World/Tasks/Saving/IWGSaveAndUnloadTasks.js +1 -1
  272. package/{IWG → Tasks/IWG}/World/Tasks/Saving/IWGSaveTasks.js +1 -1
  273. package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGDecorateTasks.js +3 -3
  274. package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGGenerateTasks.js +3 -3
  275. package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGLoadTasks.js +1 -1
  276. package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGPropagationTasks.js +3 -3
  277. package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGWorldSunTasks.js +3 -3
  278. package/Tasks/Mesher/InitTasks.d.ts +2 -0
  279. package/Tasks/Mesher/InitTasks.js +46 -0
  280. package/Tasks/Propagation/Explosion/ExplosionManager.d.ts +4 -0
  281. package/{Propagation → Tasks/Propagation}/Explosion/ExplosionManager.js +11 -14
  282. package/{Propagation → Tasks/Propagation}/Flow/FlowManager.d.ts +7 -7
  283. package/{Propagation → Tasks/Propagation}/Flow/FlowManager.js +10 -10
  284. package/Tasks/Propagation/Flow/Functions/FlowRemove.d.ts +2 -0
  285. package/{Propagation → Tasks/Propagation}/Flow/Functions/FlowRemove.js +20 -20
  286. package/Tasks/Propagation/Flow/Functions/FlowUpdate.d.ts +2 -0
  287. package/{Propagation → Tasks/Propagation}/Flow/Functions/FlowUpdate.js +10 -10
  288. package/Tasks/Propagation/Illumanation/Functions/RGBUpdate.d.ts +3 -0
  289. package/Tasks/Propagation/Illumanation/Functions/RGBUpdate.js +82 -0
  290. package/Tasks/Propagation/Illumanation/Functions/SunUpdate.d.ts +3 -0
  291. package/Tasks/Propagation/Illumanation/Functions/SunUpdate.js +116 -0
  292. package/Tasks/Propagation/Illumanation/Functions/WorldSun.d.ts +2 -0
  293. package/Tasks/Propagation/Illumanation/Functions/WorldSun.js +115 -0
  294. package/{Propagation → Tasks/Propagation}/Illumanation/IlluminationManager.d.ts +1 -1
  295. package/{Propagation → Tasks/Propagation}/Illumanation/IlluminationManager.js +2 -2
  296. package/Tasks/Propagation/InitTasks.d.ts +1 -0
  297. package/Tasks/Propagation/InitTasks.js +23 -0
  298. package/Tasks/Propagation/Propagation.d.ts +13 -0
  299. package/{Propagation → Tasks/Propagation}/Propagation.js +3 -2
  300. package/{Types → Tasks}/Tasks.types.d.ts +2 -1
  301. package/{Contexts/Constructor/ConstructorTasksIds.d.ts → Tasks/TasksIds.d.ts} +1 -1
  302. package/Tasks/TasksIds.js +22 -0
  303. package/Tasks/Update/InitTasks.d.ts +4 -0
  304. package/Tasks/Update/InitTasks.js +38 -0
  305. package/Tasks/Update/UpdateTask.d.ts +53 -0
  306. package/Tasks/Update/UpdateTask.js +136 -0
  307. package/{Contexts/Constructor/Tasks → Tasks/Update}/VoxelUpdate.d.ts +5 -4
  308. package/Tasks/Update/VoxelUpdate.js +164 -0
  309. package/Tasks/WorldGeneration/InitTasks.d.ts +1 -0
  310. package/Tasks/WorldGeneration/InitTasks.js +15 -0
  311. package/{Interfaces/WorldGen → Tasks/WorldGeneration}/WorldGen.types.d.ts +1 -1
  312. package/Tasks/WorldGeneration/WorldGenBrush.d.ts +16 -0
  313. package/Tasks/WorldGeneration/WorldGenBrush.js +115 -0
  314. package/{WorldGeneration → Tasks/WorldGeneration}/WorldGenRegister.d.ts +2 -2
  315. package/{WorldGeneration → Tasks/WorldGeneration}/WorldGenRegister.js +16 -17
  316. package/{WorldGeneration → Tasks/WorldGeneration}/WorldGeneration.d.ts +3 -3
  317. package/{WorldGeneration → Tasks/WorldGeneration}/WorldGeneration.js +1 -13
  318. package/Templates/FullVoxelTemplate.d.ts +13 -0
  319. package/Templates/FullVoxelTemplate.js +54 -0
  320. package/Templates/Functions/CreateTemplate.js +2 -2
  321. package/Templates/VoxelTemplate.d.ts +3 -3
  322. package/Templates/VoxelTemplate.js +6 -6
  323. package/Templates/VoxelTemplates.types.d.ts +8 -0
  324. package/Textures/Texture.types.d.ts +1 -5
  325. package/Textures/TextureAnimations.d.ts +2 -2
  326. package/Textures/TextureAnimations.js +26 -126
  327. package/Textures/TextureArray.d.ts +47 -0
  328. package/Textures/TextureArray.js +202 -0
  329. package/Textures/TextureBuilder.d.ts +3 -6
  330. package/Textures/TextureBuilder.js +53 -178
  331. package/Textures/TextureManager.d.ts +7 -7
  332. package/Textures/TextureManager.js +77 -58
  333. package/Textures/TextureRegister.d.ts +1 -1
  334. package/Textures/TextureRegister.js +3 -8
  335. package/Tools/Brush/AdvancedBrushTool.d.ts +3 -0
  336. package/Tools/Brush/AdvancedBrushTool.js +19 -8
  337. package/Tools/Brush/Brush.d.ts +22 -15
  338. package/Tools/Brush/Brush.js +94 -55
  339. package/Tools/Classes/DataToolBase.js +1 -1
  340. package/Tools/Data/DataTool.d.ts +9 -8
  341. package/Tools/Data/DataTool.js +37 -38
  342. package/Tools/Data/SubstanceDataTool.d.ts +3 -7
  343. package/Tools/Data/SubstanceDataTool.js +13 -25
  344. package/Tools/Data/WorldData/ChunkDataTool.d.ts +1 -1
  345. package/Tools/Data/WorldData/ColumnDataTool.js +15 -15
  346. package/Tools/Data/WorldData/HeightMapTool.js +1 -1
  347. package/Tools/Tasks/TasksTool.d.ts +2 -2
  348. package/Tools/Tasks/TasksTool.js +19 -19
  349. package/Voxels/Effects/VoxelEffect.d.ts +12 -0
  350. package/Voxels/Effects/VoxelEffect.js +6 -0
  351. package/Voxels/Effects/VoxelEffectRegister.d.ts +6 -0
  352. package/Voxels/Effects/VoxelEffectRegister.js +15 -0
  353. package/Voxels/Effects/VoxelEffects.types.d.ts +21 -0
  354. package/{VoxelModels/Rules → Voxels}/Functions/BuildStateData.d.ts +5 -3
  355. package/{VoxelModels/Rules → Voxels}/Functions/BuildStateData.js +49 -5
  356. package/Voxels/Indexes/VoxelIndex.d.ts +39 -0
  357. package/Voxels/Indexes/VoxelIndex.js +133 -0
  358. package/Voxels/Indexes/VoxelModelIndex.d.ts +18 -0
  359. package/Voxels/Indexes/VoxelModelIndex.js +59 -0
  360. package/Voxels/Indexes/VoxelTextureIndex.d.ts +8 -0
  361. package/Voxels/Indexes/VoxelTextureIndex.js +40 -0
  362. package/Voxels/InitVoxelData.d.ts +9 -0
  363. package/{VoxelModels/InitVoxelModels.js → Voxels/InitVoxelData.js} +53 -23
  364. package/{VoxelModels → Voxels}/State/CondiotnalTreeReader.d.ts +1 -1
  365. package/{VoxelModels → Voxels}/State/CondiotnalTreeReader.js +3 -2
  366. package/{VoxelModels → Voxels}/State/LogicStatementReader.d.ts +2 -1
  367. package/{VoxelModels → Voxels}/State/LogicStatementReader.js +2 -2
  368. package/{VoxelModels → Voxels}/State/Schema/BinarySchema.d.ts +3 -1
  369. package/Voxels/State/Schema/BinarySchema.js +103 -0
  370. package/{VoxelModels → Voxels}/State/Schema/BinarySchemaNode.d.ts +1 -1
  371. package/{VoxelModels → Voxels}/State/Schema/BinarySchemaNode.js +1 -1
  372. package/{VoxelModels → Voxels}/State/Schema/Conditions/SameVoxelConditions.d.ts +1 -1
  373. package/Voxels/State/Schema/Conditions/SameVoxelConditions.js +17 -0
  374. package/{VoxelModels → Voxels}/State/Schema/StateSchema.d.ts +6 -3
  375. package/{VoxelModels → Voxels}/State/Schema/StateSchema.js +4 -3
  376. package/Voxels/State/Schema/VoxelSchema.d.ts +7 -0
  377. package/Voxels/State/Schema/VoxelSchema.js +10 -0
  378. package/{VoxelModels → Voxels}/State/SchemaRegister.d.ts +5 -5
  379. package/Voxels/State/SchemaRegister.js +56 -0
  380. package/{VoxelModels → Voxels}/State/State.types.d.ts +25 -2
  381. package/{VoxelModels → Voxels}/State/StateTreeReader.d.ts +1 -1
  382. package/{VoxelModels → Voxels}/State/StateTreeReader.js +3 -0
  383. package/Voxels/State/VoxelTagStates.d.ts +22 -0
  384. package/Voxels/State/VoxelTagStates.js +47 -0
  385. package/Voxels/Voxel.types.d.ts +94 -0
  386. package/Voxels/Voxel.types.js +16 -0
  387. package/Voxels/VoxelMaterial.types.d.ts +8 -0
  388. package/Voxels/VoxelSubstances.types.d.ts +21 -0
  389. package/Voxels/VoxelSubstances.types.js +9 -0
  390. package/{VoxelModels/VoxelModelRules.types.d.ts → Voxels/VoxelSyncData.d.ts} +15 -11
  391. package/Voxels/VoxelSyncData.js +1 -0
  392. package/Voxels/index.d.ts +3 -0
  393. package/Voxels/index.js +3 -0
  394. package/index.d.ts +1 -0
  395. package/index.js +1 -0
  396. package/package.json +34 -28
  397. package/Analyzer/Analyzer.d.ts +0 -18
  398. package/Analyzer/Analyzer.js +0 -91
  399. package/Analyzer/AnalyzerProcessor.d.ts +0 -6
  400. package/Analyzer/AnalyzerProcessor.js +0 -39
  401. package/Contexts/Constructor/ConstructorTasks.d.ts +0 -2
  402. package/Contexts/Constructor/ConstructorTasks.js +0 -82
  403. package/Contexts/Constructor/ConstructorTasksIds.js +0 -22
  404. package/Contexts/Constructor/ConstructorThreadState.d.ts +0 -5
  405. package/Contexts/Constructor/ConstructorThreadState.js +0 -16
  406. package/Contexts/Constructor/InitWorker.d.ts +0 -2
  407. package/Contexts/Constructor/InitWorker.js +0 -20
  408. package/Contexts/Constructor/Tasks/TasksRequest.d.ts +0 -141
  409. package/Contexts/Constructor/Tasks/TasksRequest.js +0 -218
  410. package/Contexts/Constructor/Tasks/VoxelUpdate.js +0 -151
  411. package/Contexts/Nexus/InitWorker.d.ts +0 -2
  412. package/Contexts/Nexus/InitWorker.js +0 -15
  413. package/Contexts/Nexus/Threads/NexusTheads.js +0 -25
  414. package/Contexts/Nexus/Threads/NexusThreadState.d.ts +0 -7
  415. package/Contexts/Nexus/Threads/NexusThreadState.js +0 -10
  416. package/Contexts/Render/InitThreads.d.ts +0 -2
  417. package/Contexts/Render/InitThreads.js +0 -53
  418. package/Contexts/Render/Scene/MeshManager.d.ts +0 -15
  419. package/Contexts/Render/Scene/MeshManager.js +0 -105
  420. package/Contexts/Render/Scene/MeshRegister.types.d.ts +0 -13
  421. package/Contexts/RichWorld/DivineStarVoxelEngineRichWorld.d.ts +0 -21
  422. package/Contexts/RichWorld/DivineStarVoxelEngineRichWorld.js +0 -33
  423. package/Contexts/RichWorld/InitWorker.d.ts +0 -2
  424. package/Contexts/RichWorld/InitWorker.js +0 -15
  425. package/Contexts/RichWorld/RichDataRegister.d.ts +0 -24
  426. package/Contexts/RichWorld/RichDataRegister.js +0 -110
  427. package/Contexts/RichWorld/RichWorldTasks.d.ts +0 -2
  428. package/Contexts/RichWorld/RichWorldTasks.js +0 -58
  429. package/Contexts/RichWorld/Threads/RichWorldThreadState.d.ts +0 -7
  430. package/Contexts/RichWorld/Threads/RichWorldThreadState.js +0 -10
  431. package/Contexts/RichWorld/Threads/RichWorldThreads.d.ts +0 -10
  432. package/Contexts/RichWorld/Threads/RichWorldThreads.js +0 -22
  433. package/Contexts/RichWorld/Tools/RichColumnDataTool.d.ts +0 -7
  434. package/Contexts/RichWorld/Tools/RichColumnDataTool.js +0 -18
  435. package/Contexts/RichWorld/Tools/RichDataTool.d.ts +0 -14
  436. package/Contexts/RichWorld/Tools/RichDataTool.js +0 -71
  437. package/Contexts/RichWorld/index.d.ts +0 -1
  438. package/Contexts/RichWorld/index.js +0 -1
  439. package/Contexts/World/Data/Classes/RegisterDataManager.d.ts +0 -8
  440. package/Contexts/World/Data/Classes/RegisterDataManager.js +0 -22
  441. package/Contexts/World/Data/DVEFDataStructs.d.ts +0 -7
  442. package/Contexts/World/Data/DVEFDataStructs.js +0 -21
  443. package/Contexts/World/Data/DataRegister.d.ts +0 -8
  444. package/Contexts/World/Data/DataRegister.js +0 -9
  445. package/Contexts/World/Data/DataStructBuilders.d.ts +0 -12
  446. package/Contexts/World/Data/DataStructBuilders.js +0 -23
  447. package/Contexts/World/Data/Generators/SubstanceDataGenerator.d.ts +0 -5
  448. package/Contexts/World/Data/Generators/SubstanceDataGenerator.js +0 -36
  449. package/Contexts/World/Data/Generators/WorldDataGenerator.d.ts +0 -12
  450. package/Contexts/World/Data/Generators/WorldDataGenerator.js +0 -24
  451. package/Contexts/World/Data/Managers/DataManagers.d.ts +0 -5
  452. package/Contexts/World/Data/Managers/DataManagers.js +0 -126
  453. package/Contexts/World/Data/StructBuilders/SubstanceStructBuilder.d.ts +0 -2
  454. package/Contexts/World/Data/StructBuilders/SubstanceStructBuilder.js +0 -57
  455. package/Contexts/World/Data/StructBuilders/VoxelStructBuilder.d.ts +0 -2
  456. package/Contexts/World/Data/Structs/ChunkStruct.d.ts +0 -3
  457. package/Contexts/World/Data/Structs/ColumnStruct.d.ts +0 -3
  458. package/Contexts/World/InitWorker.d.ts +0 -2
  459. package/Contexts/World/InitWorker.js +0 -35
  460. package/Contexts/World/WorldDataHooks.js +0 -96
  461. package/Contexts/World/WorldThreadState.d.ts +0 -4
  462. package/Contexts/World/WorldThreadState.js +0 -6
  463. package/Data/Constants/Structs/ChunkStructProperties.d.ts +0 -10
  464. package/Data/Constants/Structs/ChunkStructProperties.js +0 -10
  465. package/Data/Constants/Structs/SubstanceStructProperties.d.ts +0 -8
  466. package/Data/Constants/Structs/SubstanceStructProperties.js +0 -8
  467. package/Data/Constants/Structs/VoxelStructProperties.d.ts +0 -11
  468. package/Data/Constants/Structs/VoxelStructProperties.js +0 -11
  469. package/Data/Constants/Structs/WorldDataStructProperties.d.ts +0 -8
  470. package/Data/Constants/Structs/WorldDataStructProperties.js +0 -8
  471. package/Data/Constants/SubstanceTagIds.d.ts +0 -12
  472. package/Data/Constants/SubstanceTagIds.js +0 -13
  473. package/Data/Constants/VoxelTagIds.d.ts +0 -14
  474. package/Data/Constants/VoxelTagIds.js +0 -15
  475. package/Data/DVEFDataCore.d.ts +0 -7
  476. package/Data/DVEFDataCore.js +0 -7
  477. package/Data/DVEFDataManager.d.ts +0 -31
  478. package/Data/DVEFDataManager.js +0 -23
  479. package/Data/DVEFDataSyncNode.d.ts +0 -20
  480. package/Data/DVEFDataSyncNode.js +0 -53
  481. package/Data/Substance/SubstancePalette.d.ts +0 -9
  482. package/Data/Substance/SubstancePalette.js +0 -16
  483. package/Data/Substance/SubstanceStruct.d.ts +0 -20
  484. package/Data/Types/DataSync.types.d.ts +0 -3
  485. package/Data/Types/VoxelData.types.d.ts +0 -7
  486. package/Data/Voxel/VoxelPalette.d.ts +0 -12
  487. package/Data/Voxel/VoxelPalette.js +0 -22
  488. package/Data/Voxel/VoxelStruct.d.ts +0 -26
  489. package/IWG/Constants/ColumnState.d.ts +0 -6
  490. package/IWG/Constants/ColumnState.js +0 -7
  491. package/Interfaces/Anaylzer/DVEAnaylzer.d.ts +0 -5
  492. package/Interfaces/Anaylzer/DVEAnaylzer.js +0 -2
  493. package/Interfaces/Classes/ThreadState.d.ts +0 -7
  494. package/Interfaces/Classes/ThreadState.js +0 -7
  495. package/Interfaces/Data/DVEDataCore.d.ts +0 -6
  496. package/Interfaces/Data/DVEDataCore.js +0 -2
  497. package/Interfaces/Data/DataManager.d.ts +0 -13
  498. package/Interfaces/Data/DataManager.js +0 -14
  499. package/Interfaces/Data/RemoteDataSyncNode.d.ts +0 -16
  500. package/Interfaces/Data/RemoteDataSyncNode.js +0 -36
  501. package/Interfaces/Render/DVEFOManager.d.ts +0 -7
  502. package/Interfaces/Render/DVEFOManager.js +0 -6
  503. package/Interfaces/Render/DVEMeshCuller.d.ts +0 -7
  504. package/Interfaces/Render/DVEMeshCuller.js +0 -8
  505. package/Interfaces/Render/DVERenderer.d.ts +0 -14
  506. package/Interfaces/Render/Nodes/DVENodeManager.d.ts +0 -6
  507. package/Interfaces/Render/Nodes/DVENodeManager.js +0 -2
  508. package/Interfaces/Render/Nodes/Materials/DVENodeMaterialManager.d.ts +0 -5
  509. package/Interfaces/Render/Nodes/Materials/DVENodeMaterialManager.js +0 -2
  510. package/Interfaces/Render/Nodes/Meshes/DVENodeMesh.d.ts +0 -13
  511. package/Interfaces/Render/Nodes/Meshes/DVENodeMesh.js +0 -6
  512. package/Interfaces/Render/Nodes/Meshes/DVENodeMeshManager.d.ts +0 -5
  513. package/Interfaces/Render/Nodes/Meshes/DVENodeMeshManager.js +0 -2
  514. package/Mesher/Calc/Flow/FlowGradient.d.ts +0 -5
  515. package/Mesher/Calc/Light/LightGradient.d.ts +0 -13
  516. package/Mesher/Calc/Light/LightGradient.js +0 -255
  517. package/Mesher/Constructors/Voxel/Classes/Cube/ModCube.constructor.d.ts +0 -13
  518. package/Mesher/Constructors/Voxel/Classes/Cube/ModCube.constructor.js +0 -77
  519. package/Mesher/Constructors/Voxel/Classes/Cube/PillarCube.constructor.d.ts +0 -27
  520. package/Mesher/Constructors/Voxel/Classes/Cube/PillarCube.constructor.js +0 -75
  521. package/Mesher/Constructors/Voxel/Classes/Cube/SimpleCube.constructor.d.ts +0 -13
  522. package/Mesher/Constructors/Voxel/Classes/Cube/SimpleCube.constructor.js +0 -56
  523. package/Mesher/Constructors/Voxel/Classes/HalfCube/ModHalfCube.constructor.d.ts +0 -13
  524. package/Mesher/Constructors/Voxel/Classes/HalfCube/ModHalfCube.constructor.js +0 -80
  525. package/Mesher/Constructors/Voxel/Classes/HalfCube/SimpleHalfCube.constructor.d.ts +0 -16
  526. package/Mesher/Constructors/Voxel/Classes/HalfCube/SimpleHalfCube.constructor.js +0 -58
  527. package/Mesher/Constructors/Voxel/Classes/Liquid/SimpleLiquid.constructor.d.ts +0 -12
  528. package/Mesher/Constructors/Voxel/Classes/Liquid/SimpleLiquid.constructor.js +0 -46
  529. package/Mesher/Constructors/Voxel/Classes/Panel/SimpleCrossedPanel.constructor.d.ts +0 -12
  530. package/Mesher/Constructors/Voxel/Classes/Panel/SimpleCrossedPanel.constructor.js +0 -23
  531. package/Mesher/Constructors/Voxel/Classes/Panel/SimplePanel.constructor.d.ts +0 -12
  532. package/Mesher/Constructors/Voxel/Classes/Panel/SimplePanel.constructor.js +0 -23
  533. package/Mesher/Constructors/Voxel/Classes/Stair/ModStair.constructor.d.ts +0 -12
  534. package/Mesher/Constructors/Voxel/Classes/Stair/ModStair.constructor.js +0 -50
  535. package/Mesher/Constructors/Voxel/Classes/Stair/SimpleStair.constructor.d.ts +0 -12
  536. package/Mesher/Constructors/Voxel/Classes/Stair/SimpleStair.constructor.js +0 -45
  537. package/Mesher/Constructors/Voxel/Classes/VoxelConstructor.d.ts +0 -7
  538. package/Mesher/Constructors/Voxel/Classes/VoxelConstructor.js +0 -3
  539. package/Mesher/Constructors/Voxel/VoxelConstructorsRegister.d.ts +0 -44
  540. package/Mesher/Constructors/Voxel/VoxelConstructorsRegister.js +0 -75
  541. package/Mesher/Meshers/Classes/Mesher.d.ts +0 -6
  542. package/Mesher/Meshers/Classes/Mesher.js +0 -6
  543. package/Mesher/Meshers/Meshers/VoxelMesher.d.ts +0 -11
  544. package/Mesher/Meshers/Meshers/VoxelMesher.js +0 -47
  545. package/Mesher/Processors/TemplateProcessor.d.ts +0 -16
  546. package/Mesher/Processors/TemplateProcessor.js +0 -71
  547. package/Mesher/Rules/Overrides/OverrideBase.d.ts +0 -8
  548. package/Mesher/Rules/Overrides/OverrideBase.js +0 -20
  549. package/Mesher/Rules/Overrides/OverridesManager.d.ts +0 -10
  550. package/Mesher/Rules/Overrides/OverridesManager.js +0 -10
  551. package/Mesher/Rules/RenderedSubstances.js +0 -13
  552. package/Mesher/Rules/SubstanceRules.d.ts +0 -7
  553. package/Mesher/Rules/SubstanceRules.js +0 -60
  554. package/Mesher/Shapes/ShapeTool.d.ts +0 -8
  555. package/Mesher/Shapes/ShapeTool.js +0 -9
  556. package/Mesher/Shapes/VoxelShapeBase.d.ts +0 -5
  557. package/Mesher/Shapes/VoxelShapeBase.js +0 -3
  558. package/Mesher/Shapes/VoxelShapeManager.d.ts +0 -10
  559. package/Mesher/Shapes/VoxelShapeManager.js +0 -37
  560. package/Mesher/Shapes/default/Cube/Cube.voxel.shape.d.ts +0 -15
  561. package/Mesher/Shapes/default/Cube/Cube.voxel.shape.js +0 -234
  562. package/Mesher/Shapes/default/Cube/HalfCube.voxel.shape.d.ts +0 -24
  563. package/Mesher/Shapes/default/Cube/HalfCube.voxel.shape.js +0 -231
  564. package/Mesher/Shapes/default/Liquid/Liquid.voxel.shape.d.ts +0 -16
  565. package/Mesher/Shapes/default/Liquid/Liquid.voxel.shape.js +0 -250
  566. package/Mesher/Shapes/default/Panel/CrossedPanels.voxel.shape.d.ts +0 -8
  567. package/Mesher/Shapes/default/Panel/CrossedPanels.voxel.shape.js +0 -67
  568. package/Mesher/Shapes/default/Panel/FlatPanel.voxel.shape.d.ts +0 -8
  569. package/Mesher/Shapes/default/Panel/FlatPanel.voxel.shape.js +0 -68
  570. package/Mesher/Shapes/default/Panel/PanelStates.d.ts +0 -8
  571. package/Mesher/Shapes/default/Panel/PanelStates.js +0 -9
  572. package/Mesher/Shapes/default/RegisterDefaultShapes.js +0 -10
  573. package/Mesher/Shapes/default/Stairs/Stair.voxel.shape.d.ts +0 -15
  574. package/Mesher/Shapes/default/Stairs/Stair.voxel.shape.js +0 -31
  575. package/Mesher/Shapes/default/Stairs/StairOverrides.d.ts +0 -17
  576. package/Mesher/Shapes/default/Stairs/StairOverrides.js +0 -151
  577. package/Mesher/Shapes/default/Stairs/StairShapes.d.ts +0 -2
  578. package/Mesher/Shapes/default/Stairs/StairShapes.js +0 -546
  579. package/Mesher/Shapes/default/Stairs/StairStates.d.ts +0 -19
  580. package/Mesher/Shapes/default/Stairs/StairStates.js +0 -37
  581. package/Mesher/Shapes/default/index.d.ts +0 -6
  582. package/Mesher/Shapes/default/index.js +0 -6
  583. package/Mesher/Tools/BuilderDataTool.d.ts +0 -4
  584. package/Mesher/Tools/BuilderDataTool.js +0 -7
  585. package/Mesher/Types/Override.types.d.ts +0 -8
  586. package/Propagation/Explosion/ExplosionManager.d.ts +0 -4
  587. package/Propagation/Flow/Functions/FlowRemove.d.ts +0 -2
  588. package/Propagation/Flow/Functions/FlowUpdate.d.ts +0 -2
  589. package/Propagation/Illumanation/Functions/RGBUpdate.d.ts +0 -3
  590. package/Propagation/Illumanation/Functions/RGBUpdate.js +0 -169
  591. package/Propagation/Illumanation/Functions/SunUpdate.d.ts +0 -3
  592. package/Propagation/Illumanation/Functions/SunUpdate.js +0 -187
  593. package/Propagation/Illumanation/Functions/WorldSun.d.ts +0 -2
  594. package/Propagation/Illumanation/Functions/WorldSun.js +0 -190
  595. package/Propagation/Propagation.d.ts +0 -13
  596. package/Shaders/Code/Functions/FogShaders.d.ts +0 -2
  597. package/Shaders/Code/Functions/FogShaders.js +0 -59
  598. package/Shaders/Code/Functions/FragmentFunctions.d.ts +0 -2
  599. package/Shaders/Code/Functions/FragmentFunctions.js +0 -155
  600. package/Shaders/Code/Functions/UtilShaders.d.ts +0 -2
  601. package/Shaders/Code/Functions/UtilShaders.js +0 -209
  602. package/Shaders/Code/Functions/VertexFunctions.d.ts +0 -2
  603. package/Shaders/Code/Functions/VertexFunctions.js +0 -73
  604. package/Shaders/Code/Snippets/FragmentSnippets.d.ts +0 -2
  605. package/Shaders/Code/Snippets/FragmentSnippets.js +0 -93
  606. package/Shaders/Code/Snippets/VertexSnippets.d.ts +0 -2
  607. package/Shaders/Code/Snippets/VertexSnippets.js +0 -28
  608. package/Shaders/Code/Snippets/VoxelSnippets.d.ts +0 -2
  609. package/Shaders/Code/Snippets/VoxelSnippets.js +0 -137
  610. package/Shaders/DVEShaderRegister.d.ts +0 -42
  611. package/Shaders/DVEShaderRegister.js +0 -15
  612. package/Shaders/DVEShaders.d.ts +0 -55
  613. package/Shaders/DVEShaders.js +0 -369
  614. package/Shaders/Types/Shader.types.d.ts +0 -14
  615. package/Textures/TextureType.d.ts +0 -63
  616. package/Textures/TextureType.js +0 -287
  617. package/Tools/Data/RichDataTool.d.ts +0 -25
  618. package/Tools/Data/RichDataTool.js +0 -121
  619. package/Types/DataSync.types.d.ts +0 -25
  620. package/Types/Substances.types.d.ts +0 -4
  621. package/Types/Voxel.types.d.ts +0 -12
  622. package/Types/index.d.ts +0 -2
  623. package/Types/index.js +0 -2
  624. package/VoxelModels/Constructor/InitVoxelModelsConstructor.d.ts +0 -2
  625. package/VoxelModels/Constructor/InitVoxelModelsConstructor.js +0 -20
  626. package/VoxelModels/Constructor/Nodes/GeometryNode.d.ts +0 -15
  627. package/VoxelModels/Constructor/Nodes/Ruled/BoxVoxelGeometryNode.d.ts +0 -22
  628. package/VoxelModels/Constructor/Nodes/Ruled/QuadVoxelGeometryNode.d.ts +0 -23
  629. package/VoxelModels/Constructor/Nodes/Ruleless/RulelessBoxVoxelGeometryNode.d.ts +0 -21
  630. package/VoxelModels/Constructor/Nodes/Ruleless/RulelessBoxVoxelGeometryNode.js +0 -138
  631. package/VoxelModels/Constructor/Nodes/Ruleless/RulelessQuadVoxelGeometryNode.d.ts +0 -22
  632. package/VoxelModels/Constructor/Nodes/RulelessGeometryNode.d.ts +0 -15
  633. package/VoxelModels/Constructor/Nodes/RulelessGeometryNode.js +0 -14
  634. package/VoxelModels/Constructor/Register/VoxelGeometryConstructor.d.ts +0 -13
  635. package/VoxelModels/Constructor/Register/VoxelGeometryConstructor.js +0 -33
  636. package/VoxelModels/Constructor/Register/VoxelGeometryRulelessConstructor.d.ts +0 -9
  637. package/VoxelModels/Constructor/Register/VoxelGeometryRulelessConstructor.js +0 -27
  638. package/VoxelModels/Constructor/Register/VoxelModelConstructorRegister.d.ts +0 -14
  639. package/VoxelModels/Constructor/Register/VoxelModelConstructorRegister.js +0 -31
  640. package/VoxelModels/Constructor/Register/VoxelModelsConstructor.d.ts +0 -13
  641. package/VoxelModels/Constructor/Register/VoxelModelsConstructor.js +0 -21
  642. package/VoxelModels/Constructor/VoxelModelVoxelConstructor.d.ts +0 -24
  643. package/VoxelModels/InitVoxelModels.d.ts +0 -10
  644. package/VoxelModels/Rules/Classes/VoxelRulesGeometry.d.ts +0 -19
  645. package/VoxelModels/State/Schema/BinarySchema.js +0 -52
  646. package/VoxelModels/State/Schema/Conditions/SameVoxelConditions.js +0 -13
  647. package/VoxelModels/State/SchemaRegister.js +0 -50
  648. package/VoxelModels/Tags/TagsOverrides.d.ts +0 -5
  649. package/VoxelModels/Tags/TagsOverrides.js +0 -4
  650. package/VoxelModels/World/InitVoxelModelsWorld.d.ts +0 -2
  651. package/VoxelModels/World/InitVoxelModelsWorld.js +0 -11
  652. package/WorldGeneration/WorldGenBrush.d.ts +0 -75
  653. package/WorldGeneration/WorldGenBrush.js +0 -136
  654. /package/{Contexts/Render/Scene/MeshRegister.types.js → Cache/Cache.types.js} +0 -0
  655. /package/{Data/Types/DataSync.types.js → Contexts/Base/Main/Generator/DataGenerator.types.js} +0 -0
  656. /package/{Types → Contexts/Base/Remote/Sync}/DataSync.types.js +0 -0
  657. /package/{Interfaces/Common → Contexts/Base/Remote/Sync}/DataSyncIds.d.ts +0 -0
  658. /package/{Interfaces/Common → Contexts/Base/Remote/Sync}/DataSyncIds.js +0 -0
  659. /package/Contexts/{World/WorldDataHooks.d.ts → Base/Remote/Sync/InitWorldDataSync.d.ts} +0 -0
  660. /package/Contexts/Constructor/{ConstructorRemoteThreadTasks.d.ts → Tasks/ConstructorRemoteThreadTasks.d.ts} +0 -0
  661. /package/Contexts/Constructor/{ConstructorRemoteThreadTasks.js → Tasks/ConstructorRemoteThreadTasks.js} +0 -0
  662. /package/Contexts/Constructor/{DVEConstructorTasksQueues.d.ts → Tasks/DVEConstructorTasksQueues.d.ts} +0 -0
  663. /package/Data/{Types/VoxelData.types.js → Cursor/World/WorldSectionCursor.interface.js} +0 -0
  664. /package/{Types → Data/Types}/StructBuilder.types.d.ts +0 -0
  665. /package/{Types → Data/Types}/StructBuilder.types.js +0 -0
  666. /package/{DataLoader/Types/DVED.types.js → Mesher/Meshers/MesherInterface.js} +0 -0
  667. /package/{Interfaces/Render/Nodes/DVERenderNode.types.js → Mesher/Types/Mesher.types.js} +0 -0
  668. /package/{VoxelModels → Models}/Defaults/CubeVoxelGeometry.d.ts +0 -0
  669. /package/{VoxelModels → Models}/Defaults/CubeVoxelGeometry.js +0 -0
  670. /package/{VoxelModels → Models}/Defaults/CubeVoxelModels.d.ts +0 -0
  671. /package/{VoxelModels → Models}/Defaults/CubeVoxelModels.js +0 -0
  672. /package/{VoxelModels → Models}/Defaults/PanelVoxelGeometry.d.ts +0 -0
  673. /package/{VoxelModels → Models}/Defaults/PanelVoxelGeometry.js +0 -0
  674. /package/{VoxelModels → Models}/Defaults/PanelVoxelModels.d.ts +0 -0
  675. /package/{VoxelModels → Models}/Defaults/PanelVoxelModels.js +0 -0
  676. /package/{VoxelModels → Models}/Defaults/StairVoxelModel.d.ts +0 -0
  677. /package/{VoxelModels → Models}/Defaults/StairVoxelModel.js +0 -0
  678. /package/{VoxelModels → Models}/Indexing/VoxelAOResultsIndex.d.ts +0 -0
  679. /package/{VoxelModels → Models}/Indexing/VoxelAOResultsIndex.js +0 -0
  680. /package/{VoxelModels → Models}/Indexing/VoxelFaceCullResultsIndex.d.ts +0 -0
  681. /package/{VoxelModels → Models}/Indexing/VoxelFaceCullResultsIndex.js +0 -0
  682. /package/{VoxelModels → Models}/Indexing/VoxelFaceTransparentResultsIndex.d.ts +0 -0
  683. /package/{VoxelModels → Models}/Indexing/VoxelFaceTransparentResultsIndex.js +0 -0
  684. /package/{VoxelModels → Models}/Indexing/VoxelRelativeCubeIndex.d.ts +0 -0
  685. /package/{VoxelModels → Models}/Indexing/VoxelRelativeCubeIndex.js +0 -0
  686. /package/{VoxelModels → Models}/Input/BoxVoxelGometryInputs.d.ts +0 -0
  687. /package/{VoxelModels → Models}/Input/QuadVoxelGometryInputs.d.ts +0 -0
  688. /package/{VoxelModels → Models}/Input/QuadVoxelGometryInputs.js +0 -0
  689. /package/{VoxelModels → Models}/Rules/Classes/OcclusionFace.d.ts +0 -0
  690. /package/{VoxelModels → Models}/Rules/Classes/VoxelRulesModel.js +0 -0
  691. /package/{VoxelModels → Models}/Rules/Functions/BuildFinalInputs.d.ts +0 -0
  692. /package/{VoxelModels → Models}/Rules/Functions/BuildFinalInputs.js +0 -0
  693. /package/{VoxelModels → Models}/Rules/Functions/BuildGeomtryInputs.d.ts +0 -0
  694. /package/{VoxelModels → Models}/Rules/Functions/BuildRules.js +0 -0
  695. /package/{VoxelModels → Models}/VoxelModel.types.js +0 -0
  696. /package/{Interfaces/WorldGen/WorldGen.types.js → Renderer/DVEChunkMeshInterface.js} +0 -0
  697. /package/{Mesher/Types/Override.types.js → Renderer/DVERenderNode.types.js} +0 -0
  698. /package/{Interfaces/Render → Renderer}/DVERenderer.js +0 -0
  699. /package/{Analyzer → Tasks/Analyzer}/AnalyzerUpdater.js +0 -0
  700. /package/{Mesher/Shapes/default/RegisterDefaultShapes.d.ts → Tasks/Analyzer/InitTasks.d.ts} +0 -0
  701. /package/{DataLoader → Tasks/DataLoader}/Broswer/WorldDataBase.d.ts +0 -0
  702. /package/{DataLoader → Tasks/DataLoader}/Broswer/WorldDataBase.js +0 -0
  703. /package/{DataLoader → Tasks/DataLoader}/Broswer/WorldDataBaseManager.d.ts +0 -0
  704. /package/{DataLoader → Tasks/DataLoader}/Broswer/WorldDataBaseManager.js +0 -0
  705. /package/{DataLoader → Tasks/DataLoader}/Broswer/index.d.ts +0 -0
  706. /package/{DataLoader → Tasks/DataLoader}/Broswer/index.js +0 -0
  707. /package/{DataLoader → Tasks/DataLoader}/Constructor/DataLoaderTasks.d.ts +0 -0
  708. /package/{DataLoader → Tasks/DataLoader}/Constructor/DataLoaderTasks.js +0 -0
  709. /package/{DataLoader → Tasks/DataLoader}/Constructor/DivineVoxelEngineDataLoaderConstructor.d.ts +0 -0
  710. /package/{DataLoader → Tasks/DataLoader}/Constructor/DivineVoxelEngineDataLoaderConstructor.js +0 -0
  711. /package/{DataLoader → Tasks/DataLoader}/Constructor/index.d.ts +0 -0
  712. /package/{DataLoader → Tasks/DataLoader}/Constructor/index.js +0 -0
  713. /package/{DataLoader → Tasks/DataLoader}/Node/System/RegionSystem.js +0 -0
  714. /package/{DataLoader → Tasks/DataLoader}/Node/System/System.d.ts +0 -0
  715. /package/{DataLoader → Tasks/DataLoader}/Node/System/System.js +0 -0
  716. /package/{DataLoader → Tasks/DataLoader}/Node/System/SystemPath.d.ts +0 -0
  717. /package/{DataLoader → Tasks/DataLoader}/Node/System/SystemPath.js +0 -0
  718. /package/{DataLoader → Tasks/DataLoader}/Node/Tools/NodeRegionTool.js +0 -0
  719. /package/{DataLoader → Tasks/DataLoader}/Node/Util/DVED.util.d.ts +0 -0
  720. /package/{DataLoader → Tasks/DataLoader}/Node/index.d.ts +0 -0
  721. /package/{DataLoader → Tasks/DataLoader}/Node/index.js +0 -0
  722. /package/{DataLoader → Tasks/DataLoader}/Types/DVED.types.d.ts +0 -0
  723. /package/{Shaders/Types/Shader.types.js → Tasks/DataLoader/Types/DVED.types.js} +0 -0
  724. /package/{DataLoader → Tasks/DataLoader}/World/DataLoaderTasks.d.ts +0 -0
  725. /package/{DataLoader → Tasks/DataLoader}/World/DivineVoxelEngineDataLoaderWorld.js +0 -0
  726. /package/{IWG → Tasks/IWG}/World/Classes/Tasks/IWGBatchTask.js +0 -0
  727. /package/{IWG → Tasks/IWG}/World/Classes/Tasks/IWGSingleTask.d.ts +0 -0
  728. /package/{IWG → Tasks/IWG}/World/Classes/Tasks/IWGSingleTask.js +0 -0
  729. /package/{IWG → Tasks/IWG}/World/Classes/Tasks/IWGTaskRegister.d.ts +0 -0
  730. /package/{IWG → Tasks/IWG}/World/Classes/Tasks/IWGTaskRegister.js +0 -0
  731. /package/{IWG → Tasks/IWG}/World/IWG.d.ts +0 -0
  732. /package/{IWG → Tasks/IWG}/World/Load/InitLoad.d.ts +0 -0
  733. /package/{IWG → Tasks/IWG}/World/Load/InitLoad.js +0 -0
  734. /package/{IWG → Tasks/IWG}/World/Load/LoaderBase.d.ts +0 -0
  735. /package/{IWG → Tasks/IWG}/World/Load/LoaderBase.js +0 -0
  736. /package/{IWG → Tasks/IWG}/World/Load/SafeExit.d.ts +0 -0
  737. /package/{IWG → Tasks/IWG}/World/Load/Teleport.js +0 -0
  738. /package/{IWG → Tasks/IWG}/World/Tasks/RegisterDefaultTasks.d.ts +0 -0
  739. /package/{IWG → Tasks/IWG}/World/Tasks/RegisterDefaultTasks.js +0 -0
  740. /package/{IWG → Tasks/IWG}/World/Tasks/Rendering/IWGBuildTasks.d.ts +0 -0
  741. /package/{IWG → Tasks/IWG}/World/Tasks/Saving/IWGSaveAndUnloadTasks.d.ts +0 -0
  742. /package/{IWG → Tasks/IWG}/World/Tasks/Saving/IWGSaveTasks.d.ts +0 -0
  743. /package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGDecorateTasks.d.ts +0 -0
  744. /package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGGenerateTasks.d.ts +0 -0
  745. /package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGLoadTasks.d.ts +0 -0
  746. /package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGPropagationTasks.d.ts +0 -0
  747. /package/{IWG → Tasks/IWG}/World/Tasks/WorldGen/IWGWorldSunTasks.d.ts +0 -0
  748. /package/{IWG → Tasks/IWG}/World/Types/IWG.types.d.ts +0 -0
  749. /package/{IWG → Tasks/IWG}/World/Types/IWG.types.js +0 -0
  750. /package/{IWG → Tasks/IWG}/World/index.d.ts +0 -0
  751. /package/{IWG → Tasks/IWG}/World/index.js +0 -0
  752. /package/{IWG → Tasks/IWG}/index.d.ts +0 -0
  753. /package/{IWG → Tasks/IWG}/index.js +0 -0
  754. /package/{Propagation → Tasks/Propagation}/index.d.ts +0 -0
  755. /package/{Propagation → Tasks/Propagation}/index.js +0 -0
  756. /package/{Types → Tasks}/Tasks.types.js +0 -0
  757. /package/{Types/Substances.types.js → Tasks/WorldGeneration/WorldGen.types.js} +0 -0
  758. /package/{Interfaces/Data → Tools/Classes}/LocationBoundToolBase.d.ts +0 -0
  759. /package/{Interfaces/Data → Tools/Classes}/LocationBoundToolBase.js +0 -0
  760. /package/{Interfaces/Data → Util}/NumberPalette.d.ts +0 -0
  761. /package/{Interfaces/Data → Util}/NumberPalette.js +0 -0
  762. /package/{Interfaces/Data → Util}/StringPalette.d.ts +0 -0
  763. /package/{Interfaces/Data → Util}/StringPalette.js +0 -0
  764. /package/{Types → Util}/Util.types.d.ts +0 -0
  765. /package/{Types → Util}/Util.types.js +0 -0
  766. /package/{Types/Voxel.types.js → Voxels/Effects/VoxelEffects.types.js} +0 -0
  767. /package/{Data → Voxels}/LightData.d.ts +0 -0
  768. /package/{Data → Voxels}/LightData.js +0 -0
  769. /package/{VoxelModels → Voxels}/State/Schema/Conditions/ShapeStateSchemaRelationsCondition.d.ts +0 -0
  770. /package/{VoxelModels → Voxels}/State/Schema/Conditions/ShapeStateSchemaRelationsCondition.js +0 -0
  771. /package/{VoxelModels → Voxels}/State/Schema/ShapeStateRelationsNode.d.ts +0 -0
  772. /package/{VoxelModels → Voxels}/State/Schema/ShapeStateRelationsNode.js +0 -0
  773. /package/{VoxelModels → Voxels}/State/State.types.js +0 -0
  774. /package/{VoxelModels/VoxelModelRules.types.js → Voxels/VoxelMaterial.types.js} +0 -0
  775. /package/{Data → Voxels}/VoxelShaderData.d.ts +0 -0
  776. /package/{Data → Voxels}/VoxelShaderData.js +0 -0
  777. /package/{Data → Voxels}/VoxelStateReader.d.ts +0 -0
  778. /package/{Data → Voxels}/VoxelStateReader.js +0 -0
@@ -1,21 +1,22 @@
1
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";
2
+ import { VoxelStateReader } from "../../Voxels/VoxelStateReader.js";
3
+ import { VoxelStruct } from "../../Data/Structs/VoxelStruct.js";
4
+ import { VoxelPalette } from "../../Data/Palettes/VoxelPalette.js";
5
5
  import { ChunkDataTool } from "./WorldData/ChunkDataTool.js";
6
6
  import { HeightMapTool } from "./WorldData/HeightMapTool.js";
7
7
  import { DataToolBase } from "../Classes/DataToolBase.js";
8
8
  import { WorldSpaces } from "../../Data/World/WorldSpaces.js";
9
9
  import { ColumnDataTool } from "./WorldData/ColumnDataTool.js";
10
- import { LightData } from "../../Data/LightData.js";
11
- import { VoxelStructProperties } from "../../Data/Constants/Structs/VoxelStructProperties.js";
10
+ import { LightData } from "../../Voxels/LightData.js";
11
+ import { VoxelStructIds } from "../../Voxels/Voxel.types";
12
12
  import { MappedDataRegister } from "../../Data/Register/MappedDataRegister.js";
13
13
  import { SubstanceDataTool } from "./SubstanceDataTool.js";
14
14
  import { SafeInterval } from "@amodx/core/Intervals/SafeInterval.js";
15
15
  import { SafePromise } from "@amodx/core/Promises/SafePromise.js";
16
16
  import { WorldRegister } from "../../Data/World/WorldRegister.js";
17
- import { VoxelTagIDs } from "../../Data/Constants/VoxelTagIds.js";
18
- import { SubstancePaletteReader } from "../../Data/Substance/SubstancePalette.js";
17
+ import { SubstancePalette } from "../../Data/Palettes/SubstancePalette.js";
18
+ import { VoxelTagStates } from "../../Voxels/State/VoxelTagStates";
19
+ import { MaterialPalette } from "../../Data/Palettes/MaterialPalette";
19
20
  export var DataToolModes;
20
21
  (function (DataToolModes) {
21
22
  /**# World Data Mode
@@ -176,6 +177,8 @@ export class DataTool extends DataToolBase {
176
177
  return false;
177
178
  }
178
179
  if (this._mode == DataTool.Modes.VOXEL_DATA) {
180
+ if (this.x == 0 && this.y == 0 && this.z == 0)
181
+ return true;
179
182
  this.data.raw[0] = 0;
180
183
  this.data.raw[1] = LightData.getS(0xff);
181
184
  this.data.raw[2] = 0;
@@ -238,16 +241,16 @@ export class DataTool extends DataToolBase {
238
241
  return this.data.raw[1];
239
242
  if (vID < 2)
240
243
  return -1;
241
- const lightValue = this.__struct[VoxelTagIDs.lightValue];
244
+ const lightValue = this.__struct[VoxelStructIds.lightValue];
242
245
  if (this.isOpaque()) {
243
- if (this.__struct[VoxelTagIDs.isLightSource] && lightValue) {
246
+ if (this.isLightSource() && lightValue) {
244
247
  return lightValue;
245
248
  }
246
249
  else {
247
250
  return -1;
248
251
  }
249
252
  }
250
- if (this.__struct[VoxelTagIDs.isLightSource] && lightValue) {
253
+ if (this.isLightSource() && lightValue) {
251
254
  return LightData.mixLight(this.data.raw[1], lightValue);
252
255
  }
253
256
  return this.data.raw[1];
@@ -257,7 +260,7 @@ export class DataTool extends DataToolBase {
257
260
  return this;
258
261
  }
259
262
  isOpaque() {
260
- return this.__struct[VoxelTagIDs.isTransparent] == 0;
263
+ return this.__struct[VoxelStructIds.isTransparent] == 0;
261
264
  }
262
265
  getMod() {
263
266
  return this.data.raw[4];
@@ -291,66 +294,62 @@ export class DataTool extends DataToolBase {
291
294
  return this.data.secondaryId > 1;
292
295
  }
293
296
  canHaveSecondaryVoxel() {
294
- return this.__struct[VoxelTagIDs.canHaveSecondary] == 1;
297
+ return this.__struct[VoxelStructIds.canHaveSecondary] == 1;
295
298
  }
296
299
  //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
300
  isLightSource() {
310
301
  const vID = this._loadedId;
311
302
  if (vID < 2)
312
303
  return false;
313
- return this.__struct[VoxelTagIDs.isLightSource] == 1;
304
+ return VoxelTagStates.isRegistered(this._loadedId, VoxelStructIds.isLightSource)
305
+ ? VoxelTagStates.getValue(this._loadedId, VoxelStructIds.isLightSource, this.getShapeState()) === true
306
+ : this.__struct[VoxelStructIds.isLightSource] == 1;
314
307
  }
315
308
  noAO() {
316
309
  const vID = this._loadedId;
317
310
  if (vID < 2)
318
311
  return false;
319
- return this.__struct[VoxelTagIDs.noAO] == 1;
312
+ return this.__struct[VoxelStructIds.noAO] == 1;
320
313
  }
321
314
  getLightSourceValue() {
322
315
  const vID = this._loadedId;
323
316
  if (vID < 2)
324
317
  return 0;
325
- return this.__struct[VoxelTagIDs.lightValue];
318
+ return this.__struct[VoxelStructIds.lightValue];
326
319
  }
327
320
  getSubstanceStringId() {
328
321
  const vID = this._loadedId;
329
322
  if (vID < 2)
330
- return "#dve_transparent";
331
- return SubstancePaletteReader.id.stringFromNumber(this.getSubstance());
323
+ return "dve_transparent";
324
+ return SubstancePalette.id.stringFromNumber(this.getSubstance());
332
325
  }
333
326
  getSubstance() {
334
327
  const vID = this._loadedId;
335
328
  if (vID < 2)
336
329
  return -1;
337
- return this.__struct[VoxelTagIDs.substance];
330
+ return this.__struct[VoxelStructIds.substance];
331
+ }
332
+ getRenderedMaterial() {
333
+ return this.__struct[VoxelStructIds.renderedMaterial];
334
+ }
335
+ getRenderedMaterialStringId() {
336
+ return MaterialPalette.id.stringFromNumber(this.__struct[VoxelStructIds.renderedMaterial]);
338
337
  }
339
338
  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]);
339
+ return this.__struct[VoxelStructIds.voxelMaterial];
340
+ }
341
+ getMaterialStringId() {
342
+ return MaterialPalette.id.stringFromNumber(this.__struct[VoxelStructIds.voxelMaterial]);
344
343
  }
345
344
  getHardness() {
346
345
  const vID = this._loadedId;
347
346
  if (vID < 2)
348
347
  return 0;
349
- return this.__struct[VoxelTagIDs.hardness];
348
+ return this.__struct[VoxelStructIds.hardness];
350
349
  }
351
350
  getCollider() {
352
351
  const vID = this._loadedId;
353
- return MappedDataRegister.stringMaps.get("voxel", VoxelStructProperties.colliderID, this.__struct[VoxelTagIDs.colliderID]);
352
+ return MappedDataRegister.stringMaps.get("voxel", VoxelStructIds.colliderID, this.__struct[VoxelStructIds.colliderID]);
354
353
  }
355
354
  checkCollisions() {
356
355
  const vID = this._loadedId;
@@ -358,13 +357,13 @@ export class DataTool extends DataToolBase {
358
357
  return false;
359
358
  if (vID == 1)
360
359
  return true;
361
- return this.__struct[VoxelTagIDs.checkCollisions] == 1;
360
+ return this.__struct[VoxelStructIds.checkCollisions] == 1;
362
361
  }
363
362
  isRich() {
364
363
  const vID = this._loadedId;
365
364
  if (vID < 2)
366
365
  return 0;
367
- return this.__struct[VoxelTagIDs.isRich] == 1;
366
+ return this.__struct[VoxelStructIds.isRich] == 1;
368
367
  }
369
368
  //util
370
369
  setAir() {
@@ -1,16 +1,12 @@
1
- import { SubstanceStruct } from "../../Data/Substance/SubstanceStruct.js";
1
+ import { SubstanceStruct } from "../../Data/Structs/SubstanceStruct.js";
2
2
  export declare class SubstanceDataTool {
3
3
  static tags: typeof SubstanceStruct;
4
4
  substanceTagIndex: number;
5
- setSubstanceFromString(substance: string): void;
6
- setSubstance(substance: number): void;
5
+ setSubstanceFromString(substance: string): this;
6
+ setSubstance(substance: number): this;
7
7
  getSubstanceStringId(): string;
8
8
  isLiquid(): boolean;
9
9
  isWindAffected(): boolean;
10
- isBackFaceCulled(): boolean;
11
- cullDense(): boolean;
12
10
  getParent(): string;
13
- getRendered(): string;
14
- getCulled(): string[];
15
11
  getFlowRate(): number;
16
12
  }
@@ -1,44 +1,38 @@
1
- import { SubstanceStructProperties } from "../../Data/Constants/Structs/SubstanceStructProperties.js";
2
- import { SubstancePaletteReader } from "../../Data/Substance/SubstancePalette.js";
3
- import { SubstanceStruct } from "../../Data/Substance/SubstanceStruct.js";
1
+ import { SubstancePalette } from "../../Data/Palettes/SubstancePalette.js";
2
+ import { SubstanceStruct } from "../../Data/Structs/SubstanceStruct.js";
4
3
  import { MappedDataRegister } from "../../Data/Register/MappedDataRegister.js";
5
- import { SubstanceTagIds } from "../../Data/Constants/SubstanceTagIds.js";
4
+ import { SubstanceStructIds } from "../../Voxels/VoxelSubstances.types.js";
6
5
  export class SubstanceDataTool {
7
6
  static tags = SubstanceStruct;
8
7
  //substance = "";
9
8
  substanceTagIndex = 0;
10
9
  setSubstanceFromString(substance) {
11
10
  // this.substance = substance;
12
- this.substanceTagIndex =
13
- SubstancePaletteReader.id.numberFromString(substance);
11
+ this.substanceTagIndex = SubstancePalette.id.numberFromString(substance);
14
12
  SubstanceStruct.setSubstance(this.substanceTagIndex);
13
+ return this;
15
14
  }
16
15
  setSubstance(substance) {
17
16
  // this.substance = substance;
18
17
  this.substanceTagIndex = substance;
19
18
  SubstanceStruct.setSubstance(this.substanceTagIndex);
19
+ return this;
20
20
  }
21
21
  getSubstanceStringId() {
22
- return SubstancePaletteReader.id.stringFromNumber(this.substanceTagIndex);
22
+ return SubstancePalette.id.stringFromNumber(this.substanceTagIndex);
23
23
  }
24
24
  /* isTransparent() {
25
- return SubstanceStruct.instance[SubstanceTagIds.isTransparent] == 1;
25
+ return SubstanceStruct.instance[SubstanceStructIds.isTransparent] == 1;
26
26
  }
27
27
 
28
28
  isSolid() {
29
- return SubstanceStruct.instance[SubstanceTagIds.isSolid] == 1;
29
+ return SubstanceStruct.instance[SubstanceStructIds.isSolid] == 1;
30
30
  } */
31
31
  isLiquid() {
32
- return SubstanceStruct.instance[SubstanceTagIds.isLiquid] == 1;
32
+ return SubstanceStruct.instance[SubstanceStructIds.isLiquid] == 1;
33
33
  }
34
34
  isWindAffected() {
35
- return SubstanceStruct.instance[SubstanceTagIds.isWindAffected] == 1;
36
- }
37
- isBackFaceCulled() {
38
- return SubstanceStruct.instance[SubstanceTagIds.isBackFaceCulled] == 1;
39
- }
40
- cullDense() {
41
- return SubstanceStruct.instance[SubstanceTagIds.cullDense] == 1;
35
+ return SubstanceStruct.instance[SubstanceStructIds.isWindAffected] == 1;
42
36
  }
43
37
  /* isOpaque() {
44
38
  return this.isSolid() && !this.isTransparent();
@@ -48,15 +42,9 @@ export class SubstanceDataTool {
48
42
  return this.isTransparent();
49
43
  } */
50
44
  getParent() {
51
- return MappedDataRegister.stringMaps.get("substance", SubstanceStructProperties.parent, SubstanceStruct.instance[SubstanceTagIds.parent]);
52
- }
53
- getRendered() {
54
- return MappedDataRegister.stringMaps.get("substance", SubstanceStructProperties.rendered, SubstanceStruct.instance[SubstanceTagIds.rendered]);
55
- }
56
- getCulled() {
57
- return MappedDataRegister.objectMaps.get("substance", SubstanceStructProperties.culledSubstnaces, SubstanceStruct.instance[SubstanceTagIds.culledSubstnaces]);
45
+ return MappedDataRegister.stringMaps.get("substance", SubstanceStructIds.parent, SubstanceStruct.instance[SubstanceStructIds.parent]);
58
46
  }
59
47
  getFlowRate() {
60
- return SubstanceStruct.instance[SubstanceTagIds.flowRate];
48
+ return SubstanceStruct.instance[SubstanceStructIds.flowRate];
61
49
  }
62
50
  }
@@ -1,6 +1,6 @@
1
1
  import { DataToolBase } from "../../Classes/DataToolBase.js";
2
2
  import { Chunk } from "../../../Data/World/Classes/Chunk.js";
3
- import { RawVoxelData } from "../../../Data/Types/VoxelData.types.js";
3
+ import { RawVoxelData } from "../../../Voxels/Voxel.types.js";
4
4
  export declare class ChunkDataTool extends DataToolBase {
5
5
  struct: import("@amodx/binary").RemoteBinaryStruct;
6
6
  _chunk: Chunk;
@@ -32,50 +32,50 @@ export class ColumnDataTool extends DataToolBase {
32
32
  Column.StateStruct.structSize * this.getNumChunks());
33
33
  }
34
34
  isStored() {
35
- return this.getStructValue("#dve_is_stored") == 1;
35
+ return this.getStructValue("dve_is_stored") == 1;
36
36
  }
37
37
  markAsNotStored() {
38
- this.setTagValue("#dve_is_stored", 0);
38
+ this.setTagValue("dve_is_stored", 0);
39
39
  return this;
40
40
  }
41
41
  markAsStored() {
42
- this.setTagValue("#dve_is_stored", 1);
42
+ this.setTagValue("dve_is_stored", 1);
43
43
  return this;
44
44
  }
45
45
  isPersistent() {
46
- return this.getStructValue("#dve_persistent") == 1;
46
+ return this.getStructValue("dve_persistent") == 1;
47
47
  }
48
48
  setPersistence(value) {
49
- this.setTagValue("#dve_persistent", value ? 1 : 0);
49
+ this.setTagValue("dve_persistent", value ? 1 : 0);
50
50
  }
51
51
  isDirty() {
52
- return this.getStructValue("#dve_is_dirty") == 1;
52
+ return this.getStructValue("dve_is_dirty") == 1;
53
53
  }
54
54
  setDirty(value) {
55
- this.setTagValue("#dve_is_dirty", value ? 1 : 0);
55
+ this.setTagValue("dve_is_dirty", value ? 1 : 0);
56
56
  }
57
57
  getLastSaveTimestamp() {
58
- return this.getStructValue("#dve_last_save_timestamp");
58
+ return this.getStructValue("dve_last_save_timestamp");
59
59
  }
60
60
  setLastSaveTimestamp() {
61
- return this.setTagValue("#dve_last_save_timestamp", Date.now());
61
+ return this.setTagValue("dve_last_save_timestamp", Date.now());
62
62
  }
63
63
  getLastAnalyzerUpdateTimestamp() {
64
- return this.getStructValue("#dve_last_analyzer_update_timestamp");
64
+ return this.getStructValue("dve_last_analyzer_update_timestamp");
65
65
  }
66
66
  setLastAnalyzerUpdateTimestamp() {
67
- return this.setTagValue("#dve_last_analyzer_update_timestamp", Date.now());
67
+ return this.setTagValue("dve_last_analyzer_update_timestamp", Date.now());
68
68
  }
69
69
  hasRichData() {
70
- return this.getStructValue("#dve_has_rich_data") == 1;
70
+ return this.getStructValue("dve_has_rich_data") == 1;
71
71
  }
72
72
  setRichData(value) {
73
- this.setTagValue("#dve_has_rich_data", value ? 1 : 0);
73
+ this.setTagValue("dve_has_rich_data", value ? 1 : 0);
74
74
  }
75
75
  hasEntityData() {
76
- return this.getStructValue("#dve_has_entity_data") == 1;
76
+ return this.getStructValue("dve_has_entity_data") == 1;
77
77
  }
78
78
  setEntityData(value) {
79
- this.setTagValue("#dve_has_entity_data", value ? 1 : 0);
79
+ this.setTagValue("dve_has_entity_data", value ? 1 : 0);
80
80
  }
81
81
  }
@@ -6,7 +6,7 @@ import { WorldBounds } from "../../../Data/World/WorldBounds.js";
6
6
  import { LocationBoundTool } from "../../../Tools/Classes/LocationBoundTool.js";
7
7
  import { ChunkDataTool } from "./ChunkDataTool.js";
8
8
  //constants
9
- import { ChunkStructProperties } from "../../../Data/Constants/Structs/ChunkStructProperties.js";
9
+ import { ChunkStructProperties } from "../../../Data/Structs/Constants/ChunkStructProperties.js";
10
10
  import { $2dMooreNeighborhood } from "../../../Math/Constants/CardinalNeighbors.js";
11
11
  export class HeightMapTool extends LocationBoundTool {
12
12
  static _chunkTool = new ChunkDataTool();
@@ -1,6 +1,6 @@
1
- import { BuildTasks, GenerateTasks, Priorities } from "../../Types/Tasks.types.js";
1
+ import { BuildTasks, GenerateTasks, Priorities } from "../../Tasks/Tasks.types";
2
2
  import { LocationData } from "../../Math";
3
- import type { RawVoxelData } from "../../Data/Types/VoxelData.types.js";
3
+ import type { RawVoxelData } from "../../Voxels/Voxel.types.js";
4
4
  export type TaskRunModes = "async" | "sync";
5
5
  export declare class TaskTool {
6
6
  _data: {
@@ -1,8 +1,8 @@
1
1
  import { Threads } from "@amodx/threads/";
2
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";
3
+ import { ConstructorRemoteThreadTasks } from "../../Contexts/Constructor/Tasks/ConstructorRemoteThreadTasks.js";
4
+ import { DVEConstructorTasksQueues } from "../../Contexts/Constructor/Tasks/DVEConstructorTasksQueues.js";
5
+ import { TasksIds } from "../../Tasks/TasksIds.js";
6
6
  export class TaskTool {
7
7
  _data = {
8
8
  dimension: "main",
@@ -28,17 +28,17 @@ export class TaskTool {
28
28
  voxelUpdate = {
29
29
  update: {
30
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);
31
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.VoxelUpdate, [location, raw, this._data.queue, this._thread], [], onDone, mode == "sync" ? 0 : undefined);
32
32
  },
33
33
  },
34
34
  erase: {
35
35
  run: (location, onDone, mode = "sync") => {
36
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.VoxelErease, [location, this._data.queue, this._thread], [], onDone, mode == "sync" ? 0 : undefined);
36
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.VoxelErease, [location, this._data.queue, this._thread], [], onDone, mode == "sync" ? 0 : undefined);
37
37
  },
38
38
  },
39
39
  paint: {
40
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);
41
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.VoxelPaint, [location, raw, this._data.queue, this._thread], [], onDone, mode == "sync" ? 0 : undefined);
42
42
  },
43
43
  },
44
44
  };
@@ -46,7 +46,7 @@ export class TaskTool {
46
46
  chunk: {
47
47
  deferred: {
48
48
  run: (buildTasks, onDone) => {
49
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.BuildChunk, {
49
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.BuildChunk, {
50
50
  data: buildTasks,
51
51
  priority: this._priority,
52
52
  }, [], onDone, undefined, 0);
@@ -78,27 +78,27 @@ export class TaskTool {
78
78
  queued: {},
79
79
  deferred: {
80
80
  run: (location, onDone) => {
81
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.BuildColumn, [location, 1], [], onDone, undefined, 0);
81
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.BuildColumn, [location, 1], [], onDone, undefined, 0);
82
82
  },
83
83
  },
84
84
  },
85
85
  };
86
86
  explosion = {
87
87
  run: (location, radius, onDone) => {
88
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.Explosion, [location, radius, "", ""], [], onDone, undefined, 0);
88
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.Explosion, [location, radius, "", ""], [], onDone, undefined, 0);
89
89
  },
90
90
  };
91
91
  anaylzer = {
92
92
  update: {
93
93
  run: (location, onDone) => {
94
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.AnalyzerUpdate, [location, this._data.queue, this._thread], [], onDone, undefined, 0);
94
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.AnalyzerUpdate, [location, this._data.queue, this._thread], [], onDone, undefined, 0);
95
95
  },
96
96
  },
97
97
  };
98
98
  propagation = {
99
99
  deferred: {
100
100
  run: (location, onDone) => {
101
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.AnalyzerPropagation, [location, this._data.queue, this._thread], [], onDone, undefined, 0);
101
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.AnalyzerPropagation, [location, this._data.queue, this._thread], [], onDone, undefined, 0);
102
102
  },
103
103
  },
104
104
  queued: {
@@ -125,7 +125,7 @@ export class TaskTool {
125
125
  generate = {
126
126
  deferred: {
127
127
  run(location, data, onDone) {
128
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.Generate, [location, data], [], onDone, undefined, 0);
128
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.Generate, [location, data], [], onDone, undefined, 0);
129
129
  },
130
130
  },
131
131
  queued: {
@@ -152,7 +152,7 @@ export class TaskTool {
152
152
  decorate = {
153
153
  deferred: {
154
154
  run: (location, data, onDone) => {
155
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.Decorate, [location, data], [], onDone, undefined, 0);
155
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.Decorate, [location, data], [], onDone, undefined, 0);
156
156
  },
157
157
  },
158
158
  queued: {
@@ -179,7 +179,7 @@ export class TaskTool {
179
179
  worldSun = {
180
180
  deferred: {
181
181
  run: (location, onDone) => {
182
- DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(ConstructorTasksIds.WorldSun, [location, this._thread], [], onDone, undefined, 0);
182
+ DVEConstructorTasksQueues.instance.constructors.runPromiseTasks(TasksIds.WorldSun, [location, this._thread], [], onDone, undefined, 0);
183
183
  },
184
184
  },
185
185
  queued: {
@@ -204,11 +204,11 @@ export class TaskTool {
204
204
  },
205
205
  };
206
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);
207
+ DVEConstructorTasksQueues.onCreated.subscribe("TaskTool", () => {
208
+ DVEConstructorTasksQueues.instance.registerTasks("world-sun", TasksIds.WorldSun);
209
+ DVEConstructorTasksQueues.instance.registerTasks("decorate", TasksIds.Decorate);
210
+ DVEConstructorTasksQueues.instance.registerTasks("generate", TasksIds.Generate);
211
+ DVEConstructorTasksQueues.instance.registerTasks("propagation", TasksIds.AnalyzerPropagation);
212
212
  const tasks = new TaskTool();
213
213
  Threads.registerTasks(ConstructorRemoteThreadTasks.BuildChunk, (data) => {
214
214
  tasks.setPriority(data.priority);
@@ -0,0 +1,12 @@
1
+ import { ChunkMesh } from "../../Renderer/Classes/ChunkMesh";
2
+ export interface VoxelEffectConstructor {
3
+ id: string;
4
+ new (mesh: ChunkMesh): VoxelEffect;
5
+ }
6
+ export declare abstract class VoxelEffect {
7
+ mesh: ChunkMesh;
8
+ constructor(mesh: ChunkMesh);
9
+ abstract init(): void;
10
+ abstract setPoints(pointss: Float32Array): void;
11
+ abstract dispose(): void;
12
+ }
@@ -0,0 +1,6 @@
1
+ export class VoxelEffect {
2
+ mesh;
3
+ constructor(mesh) {
4
+ this.mesh = mesh;
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ import { VoxelEffectConstructor } from "./VoxelEffect";
2
+ export declare class VoxelEffectRegister {
3
+ static _effects: Map<string, VoxelEffectConstructor>;
4
+ static register(...effects: VoxelEffectConstructor[]): void;
5
+ static get(id: string): VoxelEffectConstructor;
6
+ }
@@ -0,0 +1,15 @@
1
+ export class VoxelEffectRegister {
2
+ static _effects = new Map();
3
+ static register(...effects) {
4
+ for (const e of effects) {
5
+ this._effects.set(e.id, e);
6
+ }
7
+ }
8
+ static get(id) {
9
+ const effect = this._effects.get(id);
10
+ if (!effect) {
11
+ throw new Error(`Effect with id ${id} does not exist`);
12
+ }
13
+ return effect;
14
+ }
15
+ }
@@ -0,0 +1,21 @@
1
+ import { Vec3Array } from "@amodx/math";
2
+ export type VoxelEffectData = {
3
+ type: "fx-points";
4
+ effectId: string;
5
+ values: Record<string, Vec3Array[]>;
6
+ } | {
7
+ type: "tag";
8
+ values: Record<string, any>;
9
+ tagId: string;
10
+ };
11
+ export type VoxelEffectSyncData = {
12
+ type: "fx-points";
13
+ effectId: string;
14
+ tree: any[];
15
+ treePalette: Vec3Array[][];
16
+ } | {
17
+ type: "tag";
18
+ tagId: string;
19
+ tree: any[];
20
+ treePalette: any[];
21
+ };
@@ -1,8 +1,10 @@
1
- import { BinarySchemaNodeData, VoxelRelationsScehmaNodeData, StateLogicStatement } from "../../State/State.types";
2
- import { VoxelRulesModoel } from "../Classes/VoxelRulesModel";
3
- import { StringPalette } from "../../../Interfaces/Data/StringPalette";
1
+ import { BinarySchemaNodeData, VoxelRelationsScehmaNodeData, StateLogicStatement } from "../State/State.types";
2
+ import { VoxelRulesModoel } from "../../Models/Rules/Classes/VoxelRulesModel";
3
+ import { StringPalette } from "../../Util/StringPalette";
4
+ import { VoxelEffectSyncData } from "../Effects/VoxelEffects.types";
4
5
  export declare function BuildStateData(model: VoxelRulesModoel, geoPalette: StringPalette): {
5
6
  schema: (BinarySchemaNodeData | VoxelRelationsScehmaNodeData)[];
7
+ effects: VoxelEffectSyncData[];
6
8
  shapeStateGeometryPalette: number[][];
7
9
  condiotnalShapeStateGeometryPalette: number[][];
8
10
  shapeStateTree: any[];