@divinevoxel/vlox 0.0.72 → 0.0.74

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 (307) hide show
  1. package/Contexts/Base/Remote/InitDataSync.js +4 -0
  2. package/Contexts/Base/Remote/InitWorldDataSync.js +1 -1
  3. package/Contexts/Render/DivineVoxelEngineRender.d.ts +2 -1
  4. package/Contexts/World/DivineVoxelEngineWorld.d.ts +2 -1
  5. package/Init/StartConstructor.js +8 -4
  6. package/Init/StartWorld.d.ts +1 -1
  7. package/Math/index.d.ts +5 -1
  8. package/Mesher/Functions/CompactVoxelMesh.d.ts +2 -2
  9. package/Mesher/Functions/CompactVoxelMesh.js +1 -1
  10. package/Mesher/Functions/CompactVoxelSectionMesh.d.ts +4 -0
  11. package/Mesher/Functions/CompactVoxelSectionMesh.js +112 -0
  12. package/Mesher/Functions/MeshSection.d.ts +1 -1
  13. package/Mesher/Functions/MeshSection.js +27 -22
  14. package/Mesher/Functions/MeshTexture.d.ts +1 -1
  15. package/Mesher/Functions/MeshTexture.js +3 -4
  16. package/Mesher/Geomtry/CompactedSectionVoxelMesh.d.ts +23 -0
  17. package/Mesher/Geomtry/CompactedSectionVoxelMesh.js +144 -0
  18. package/Mesher/Geomtry/Primitives/QuadVertexData.d.ts +12 -10
  19. package/Mesher/Geomtry/Primitives/QuadVertexData.js +49 -56
  20. package/Mesher/Geomtry/VoxelGeometryBuilder.d.ts +2 -2
  21. package/Mesher/Geomtry/VoxelGeometryBuilder.js +120 -199
  22. package/Mesher/Geomtry/VoxelMesh.d.ts +1 -1
  23. package/Mesher/Geomtry/VoxelMesh.js +4 -4
  24. package/Mesher/Geomtry/VoxelMeshBVHBuilder.d.ts +16 -0
  25. package/Mesher/Geomtry/VoxelMeshBVHBuilder.js +51 -0
  26. package/Mesher/Geomtry/VoxelMeshBVHStructCursor.d.ts +22 -0
  27. package/Mesher/Geomtry/VoxelMeshBVHStructCursor.js +78 -0
  28. package/Mesher/Geomtry/{Buffers.js → VoxelMeshBuffers.js} +2 -2
  29. package/Mesher/Geomtry/index.d.ts +0 -1
  30. package/Mesher/Geomtry/index.js +0 -1
  31. package/Mesher/InitMesher.js +1 -1
  32. package/Mesher/InitTask.js +9 -23
  33. package/Mesher/Models/Common/BoxGeometryNode.js +7 -7
  34. package/Mesher/Models/Common/Calc/CalcConstants.d.ts +1 -1
  35. package/Mesher/Models/Common/Calc/CalcConstants.js +1 -1
  36. package/Mesher/Models/Common/Calc/FaceDataCalc.d.ts +2 -2
  37. package/Mesher/Models/Common/Calc/FaceDataCalc.js +37 -30
  38. package/Mesher/Models/Common/QuadGeometryNode.js +2 -2
  39. package/Mesher/Models/Nodes/Custom/Liquid/FlowGradient.d.ts +2 -2
  40. package/Mesher/Models/Nodes/Custom/Liquid/FlowGradient.js +1 -1
  41. package/Mesher/Models/Nodes/Custom/Liquid/LiquidGeomtryNode.js +18 -24
  42. package/Mesher/Models/Nodes/GeometryNode.d.ts +2 -2
  43. package/Mesher/Models/Nodes/Ruled/BoxVoxelGeometryNode.d.ts +1 -0
  44. package/Mesher/Models/Nodes/Ruled/BoxVoxelGeometryNode.js +40 -31
  45. package/Mesher/Models/Nodes/Ruled/QuadVoxelGeometryNode.js +2 -2
  46. package/Mesher/Models/Nodes/Ruleless/RulelessBoxVoxelGeometryNode.js +2 -2
  47. package/Mesher/Models/Nodes/Ruleless/RulelessQuadVoxelGeometryNode.js +2 -2
  48. package/Mesher/{Tools → Models/Protocols}/OutlinedVoxelTool.d.ts +1 -1
  49. package/Mesher/{Tools → Models/Protocols}/OutlinedVoxelTool.js +1 -1
  50. package/Mesher/Models/RenderedMaterials.d.ts +6 -0
  51. package/Mesher/{RenderedMaterials.js → Models/RenderedMaterials.js} +2 -2
  52. package/Mesher/Models/VoxelConstructor.d.ts +6 -6
  53. package/Mesher/Models/VoxelConstructor.js +8 -8
  54. package/Mesher/Models/VoxelGeometryBuilderCacheSpace.d.ts +3 -5
  55. package/Mesher/Models/VoxelGeometryBuilderCacheSpace.js +8 -32
  56. package/Mesher/{Tools/VoxelMesherDataTool.d.ts → Models/VoxelModelBuilder.d.ts} +4 -5
  57. package/Mesher/{Tools/VoxelMesherDataTool.js → Models/VoxelModelBuilder.js} +5 -8
  58. package/Mesher/Types/Mesher.types.d.ts +1 -0
  59. package/Models/Defaults/CubeVoxelGeometry.js +4 -0
  60. package/Models/Defaults/CubeVoxelModels.js +360 -383
  61. package/Models/Defaults/LiquidVoxelModel.js +5 -5
  62. package/Models/Defaults/PanelVoxelModels.js +442 -468
  63. package/Models/Defaults/StairVoxelModel.js +582 -597
  64. package/Models/Examples.js +490 -498
  65. package/Models/Rules/Classes/VoxelRulesModel.d.ts +1 -1
  66. package/Models/Rules/Classes/VoxelRulesModel.js +3 -3
  67. package/Models/Rules/Functions/BuildFinalInputs.d.ts +1 -1
  68. package/Models/Rules/Functions/BuildFinalInputs.js +21 -19
  69. package/Models/Rules/Functions/BuildGeomtryInputs.js +8 -5
  70. package/Models/Rules/Functions/BuildRules.js +2 -2
  71. package/Models/Rules/{VoxelModelManager.d.ts → VoxelModelRuleBuilderRegister.d.ts} +1 -1
  72. package/Models/Rules/VoxelModelRuleBuilderRegister.js +178 -0
  73. package/Models/VoxelModel.types.d.ts +17 -8
  74. package/Renderer/Classes/DVESectionMeshes.d.ts +2 -3
  75. package/Renderer/Classes/SectorMesh.d.ts +3 -4
  76. package/Renderer/Classes/SectorMesh.js +6 -11
  77. package/Renderer/InitTasks.js +1 -10
  78. package/Renderer/MeshManager.d.ts +1 -1
  79. package/Renderer/MeshManager.js +26 -25
  80. package/Renderer/MeshRegister.d.ts +5 -5
  81. package/Renderer/MeshRegister.js +4 -3
  82. package/Settings/EngineSettings.d.ts +2 -1
  83. package/Settings/EngineSettings.js +6 -5
  84. package/Settings/EngineSettings.types.d.ts +24 -39
  85. package/Settings/EngineSettings.types.js +22 -29
  86. package/Tasks/Logic/InitTasks.d.ts +1 -0
  87. package/Tasks/Logic/InitTasks.js +10 -0
  88. package/Tasks/Logic/VoxelLogicUpdate.d.ts +3 -0
  89. package/Tasks/Logic/VoxelLogicUpdate.js +71 -0
  90. package/Tasks/Propagation/Explosion/ExplosionManager.d.ts +2 -2
  91. package/Tasks/Propagation/Explosion/ExplosionManager.js +1 -2
  92. package/Tasks/Propagation/Flow/FlowManager.d.ts +4 -4
  93. package/Tasks/Propagation/Flow/FlowRemove.d.ts +2 -2
  94. package/Tasks/Propagation/Flow/FlowUpdate.d.ts +2 -2
  95. package/Tasks/Propagation/Flow/WorldFlow.d.ts +2 -2
  96. package/Tasks/Propagation/Illumanation/RGBUpdate.d.ts +3 -3
  97. package/Tasks/Propagation/Illumanation/SunUpdate.d.ts +3 -3
  98. package/Tasks/Propagation/Illumanation/WorldRGB.d.ts +2 -2
  99. package/Tasks/Propagation/Illumanation/WorldSun.d.ts +2 -2
  100. package/Tasks/Propagation/Illumanation/WorldSun.js +8 -15
  101. package/Tasks/Propagation/InitTasks.js +4 -4
  102. package/Tasks/Propagation/Power/PowerUpdate.d.ts +3 -0
  103. package/Tasks/Propagation/Power/PowerUpdate.js +80 -0
  104. package/Tasks/Tasks.types.d.ts +2 -2
  105. package/Tasks/TasksIds.d.ts +2 -1
  106. package/Tasks/TasksIds.js +1 -0
  107. package/Tasks/Update/Common.d.ts +3 -0
  108. package/Tasks/Update/Common.js +41 -0
  109. package/Tasks/Update/EreaseUpdate.d.ts +3 -0
  110. package/Tasks/Update/EreaseUpdate.js +66 -0
  111. package/Tasks/Update/InitTasks.d.ts +2 -2
  112. package/Tasks/Update/InitTasks.js +3 -1
  113. package/Tasks/Update/PaintUpdate.d.ts +3 -0
  114. package/Tasks/Update/PaintUpdate.js +89 -0
  115. package/Tasks/Update/VoxelUpdate.d.ts +2 -5
  116. package/Tasks/Update/VoxelUpdate.js +7 -143
  117. package/Tasks/{Update/UpdateTask.d.ts → VoxelUpdateTask.d.ts} +16 -6
  118. package/Tasks/{Update/UpdateTask.js → VoxelUpdateTask.js} +44 -5
  119. package/Tasks/WorldGeneration/WorldGenBrush.d.ts +3 -3
  120. package/Tasks/WorldGeneration/WorldGenBrush.js +3 -3
  121. package/Tasks/WorldGeneration/WorldGenRegister.d.ts +1 -1
  122. package/Templates/Cursor/TemplateCursor.d.ts +2 -2
  123. package/Templates/Cursor/TemplateCursor.js +1 -2
  124. package/Templates/Functions/CreateTemplate.d.ts +1 -1
  125. package/Templates/VoxelTemplates.types.d.ts +1 -1
  126. package/Textures/Classes/CompiledTexture.d.ts +18 -0
  127. package/Textures/Classes/CompiledTexture.js +50 -0
  128. package/Textures/Classes/CompiledTextureAnimation.d.ts +12 -0
  129. package/Textures/Classes/CompiledTextureAnimation.js +27 -0
  130. package/Textures/Classes/TextureAnimationTexture.d.ts +10 -0
  131. package/Textures/Classes/TextureAnimationTexture.js +32 -0
  132. package/Textures/Functions/BuildTextureData.d.ts +10 -0
  133. package/Textures/Functions/BuildTextureData.js +205 -0
  134. package/Textures/Texture.types.d.ts +50 -64
  135. package/Textures/TextureManager.d.ts +8 -19
  136. package/Textures/TextureManager.js +28 -166
  137. package/Tools/Brush/AdvancedBrushTool.js +1 -1
  138. package/Tools/Brush/Brush.d.ts +3 -3
  139. package/Tools/Brush/Brush.js +40 -8
  140. package/Tools/Tasks/TasksTool.d.ts +1 -0
  141. package/Tools/Tasks/TasksTool.js +2 -0
  142. package/Util/Binary/BinaryArrays.d.ts +6 -0
  143. package/Util/Binary/BinaryArrays.js +25 -0
  144. package/Util/Binary/BinaryBuffer.d.ts +35 -0
  145. package/Util/Binary/BinaryBuffer.js +136 -0
  146. package/Util/Binary/{BitArray.d.ts → BinaryFunctions.d.ts} +1 -2
  147. package/Util/Binary/BinaryFunctions.js +11 -0
  148. package/{Mesher/Tools/VoxelMeshBVHBuilder.d.ts → Util/Binary/BinaryTree.d.ts} +1 -33
  149. package/Util/Binary/BinaryTree.js +104 -0
  150. package/Voxels/Cursor/DataCursor.interface.d.ts +5 -0
  151. package/Voxels/Cursor/VoxelCursor.interface.d.ts +8 -3
  152. package/Voxels/Cursor/VoxelCursor.interface.js +54 -13
  153. package/Voxels/Cursor/VoxelLightData.js +1 -1
  154. package/Voxels/Data/VoxelPalettesRegister.d.ts +0 -5
  155. package/Voxels/Data/VoxelPalettesRegister.js +0 -9
  156. package/Voxels/Data/VoxelTag.types.d.ts +17 -2
  157. package/Voxels/Data/VoxelTag.types.js +6 -1
  158. package/Voxels/Data/VoxelTagsRegister.js +12 -7
  159. package/Voxels/Functions/BuildStateData.d.ts +6 -6
  160. package/Voxels/Functions/BuildStateData.js +37 -37
  161. package/Voxels/Functions/BuildTagAndPaletteData.js +6 -3
  162. package/Voxels/Indexes/VoxelIndex.d.ts +2 -2
  163. package/Voxels/Indexes/VoxelIndex.js +16 -18
  164. package/Voxels/InitVoxelData.js +24 -21
  165. package/Voxels/Logic/Classes/Default/Types/VoxelPoweredLogicType.d.ts +5 -0
  166. package/Voxels/Logic/Classes/Default/Types/VoxelPoweredLogicType.js +6 -0
  167. package/Voxels/Logic/Classes/VoxelLogic.d.ts +11 -0
  168. package/Voxels/Logic/Classes/VoxelLogic.js +49 -0
  169. package/Voxels/Logic/Classes/VoxelLogicType.d.ts +4 -0
  170. package/Voxels/Logic/Classes/VoxelLogicType.js +2 -0
  171. package/Voxels/Logic/VoxelLogic.types.d.ts +23 -0
  172. package/Voxels/Logic/VoxelLogic.types.js +1 -0
  173. package/Voxels/Logic/VoxelLogicRegister.d.ts +9 -0
  174. package/Voxels/Logic/VoxelLogicRegister.js +15 -0
  175. package/Voxels/State/Schema/StateSchema.d.ts +1 -1
  176. package/Voxels/State/SchemaRegister.js +10 -5
  177. package/Voxels/State/State.types.d.ts +1 -1
  178. package/Voxels/State/StateTreeReader.d.ts +1 -1
  179. package/Voxels/State/StateTreeReader.js +2 -3
  180. package/Voxels/Types/Voxel.types.d.ts +21 -0
  181. package/Voxels/Types/Voxel.types.js +6 -2
  182. package/Voxels/Types/VoxelModelCompiledData.types.d.ts +6 -4
  183. package/World/Archive/Archive.types.d.ts +65 -42
  184. package/World/Archive/Classes/ArchiveClasses.d.ts +66 -0
  185. package/World/Archive/Classes/ArchiveClasses.js +78 -0
  186. package/World/Archive/Classes/ImportedSection.d.ts +40 -0
  187. package/World/Archive/Classes/ImportedSection.js +307 -0
  188. package/World/Archive/Classes/ImportedSector.d.ts +23 -0
  189. package/World/Archive/Classes/ImportedSector.js +97 -0
  190. package/World/Archive/Functions/ArchiveArea.d.ts +1 -1
  191. package/World/Archive/Functions/ArchiveArea.js +49 -54
  192. package/World/Archive/Functions/ArchiveSector.js +373 -282
  193. package/World/Archive/Functions/CreateArchivedSection.d.ts +3 -0
  194. package/World/Archive/Functions/CreateArchivedSection.js +207 -0
  195. package/World/Archive/Functions/ImportSector.d.ts +2 -4
  196. package/World/Archive/Functions/ImportSector.js +50 -220
  197. package/World/Archive/Functions/RemoveDuplicates.d.ts +3 -0
  198. package/World/Archive/Functions/RemoveDuplicates.js +92 -0
  199. package/World/Archive/Functions/Shared.d.ts +6 -0
  200. package/World/Archive/Functions/Shared.js +50 -0
  201. package/World/Archive/InitTasks.js +37 -23
  202. package/World/Cursor/SectionCursor.d.ts +3 -3
  203. package/World/Cursor/SectionCursor.js +2 -3
  204. package/World/Cursor/SectorCursor.d.ts +3 -3
  205. package/World/Cursor/SectorCursor.js +1 -2
  206. package/World/Cursor/WorldCursor.d.ts +6 -5
  207. package/World/Cursor/WorldCursor.js +17 -15
  208. package/World/Cursor/WorldVoxelCursor.d.ts +0 -4
  209. package/World/Cursor/WorldVoxelCursor.js +24 -14
  210. package/World/Dimension/Dimension.d.ts +4 -1
  211. package/World/Dimension/Dimension.js +8 -1
  212. package/World/InitTasks.d.ts +1 -1
  213. package/World/Lock/WorldLock.d.ts +1 -1
  214. package/World/Section/Section.d.ts +27 -18
  215. package/World/Section/Section.js +125 -21
  216. package/World/Section/SectionState.d.ts +12 -0
  217. package/World/Section/SectionState.js +13 -0
  218. package/World/Sector/Sector.d.ts +20 -6
  219. package/World/Sector/Sector.js +100 -17
  220. package/World/Sector/SectorHeightMap.js +2 -2
  221. package/World/Sector/SectorState.d.ts +16 -7
  222. package/World/Sector/SectorState.js +29 -15
  223. package/World/Types/WorldData.types.d.ts +2 -7
  224. package/World/Types/WorldStorage.interface.js +1 -0
  225. package/World/WorldRegister.d.ts +13 -9
  226. package/World/WorldRegister.js +24 -9
  227. package/World/WorldSpaces.d.ts +4 -0
  228. package/World/WorldSpaces.js +25 -12
  229. package/{Tasks/IWG → WorldSimulation}/Internal/Classes/DimensionSegment.d.ts +2 -2
  230. package/{Tasks/IWG → WorldSimulation}/Internal/Classes/Generator.d.ts +10 -3
  231. package/{Tasks/IWG → WorldSimulation}/Internal/Classes/Generator.js +19 -3
  232. package/WorldSimulation/Internal/Classes/Queues/BuildQueue.d.ts +5 -0
  233. package/WorldSimulation/Internal/Classes/Queues/BuildQueue.js +6 -0
  234. package/WorldSimulation/Internal/Classes/Queues/LogiccQueue.d.ts +5 -0
  235. package/WorldSimulation/Internal/Classes/Queues/LogiccQueue.js +6 -0
  236. package/{Tasks/IWG → WorldSimulation}/Internal/Classes/SectorVisistedMap.js +1 -1
  237. package/WorldSimulation/Internal/Classes/TickQueue.d.ts +12 -0
  238. package/WorldSimulation/Internal/Classes/TickQueue.js +58 -0
  239. package/WorldSimulation/Internal/Classes/WorldSimulationTaskBase.d.ts +15 -0
  240. package/{Tasks/IWG/Internal/Classes/IWGTaskBase.js → WorldSimulation/Internal/Classes/WorldSimulationTaskBase.js} +8 -8
  241. package/{Tasks/IWG → WorldSimulation}/Internal/Functions/cullSectors.js +9 -9
  242. package/{Tasks/IWG → WorldSimulation}/Internal/Functions/getSectorState.d.ts +1 -1
  243. package/{Tasks/IWG → WorldSimulation}/Internal/Functions/getSectorState.js +4 -4
  244. package/WorldSimulation/Internal/Functions/runTickUpdate.d.ts +2 -0
  245. package/{Tasks/IWG/Internal/Functions/runBuildUpdate.js → WorldSimulation/Internal/Functions/runTickUpdate.js} +38 -9
  246. package/{Tasks/IWG → WorldSimulation}/Internal/Functions/runWorldUpdate.js +13 -13
  247. package/{Tasks/IWG → WorldSimulation}/Internal/TaskRegister.d.ts +2 -2
  248. package/{Tasks/IWG → WorldSimulation}/Internal/TaskRegister.js +1 -1
  249. package/WorldSimulation/Internal/WorldSimulationDimensions.d.ts +6 -0
  250. package/{Tasks/IWG/Internal/IWGDimensions.js → WorldSimulation/Internal/WorldSimulationDimensions.js} +1 -1
  251. package/WorldSimulation/Internal/WorldSimulationTasks.d.ts +30 -0
  252. package/{Tasks/IWG/Internal/IWGTasks.js → WorldSimulation/Internal/WorldSimulationTasks.js} +14 -24
  253. package/WorldSimulation/Internal/WorldSimulationTools.d.ts +8 -0
  254. package/{Tasks/IWG/Internal/IWGTools.js → WorldSimulation/Internal/WorldSimulationTools.js} +1 -1
  255. package/{Tasks/IWG → WorldSimulation}/Procedures/InitalLoad.d.ts +1 -1
  256. package/{Tasks/IWG → WorldSimulation}/Procedures/InitalLoad.js +11 -11
  257. package/{Tasks/IWG → WorldSimulation}/Procedures/SaveAllSectors.js +7 -5
  258. package/{Tasks/IWG/IWG.d.ts → WorldSimulation/WorldSimulation.d.ts} +6 -5
  259. package/{Tasks/IWG/IWG.js → WorldSimulation/WorldSimulation.js} +29 -23
  260. package/{Tasks/IWG → WorldSimulation}/index.d.ts +1 -1
  261. package/{Tasks/IWG → WorldSimulation}/index.js +1 -1
  262. package/package.json +1 -1
  263. package/Mesher/Functions/CompactMesh.d.ts +0 -2
  264. package/Mesher/Functions/CompactMesh.js +0 -42
  265. package/Mesher/Geomtry/GeometryNormals.d.ts +0 -10
  266. package/Mesher/Geomtry/GeometryNormals.js +0 -52
  267. package/Mesher/Geomtry/MeshData.types.d.ts +0 -13
  268. package/Mesher/Geomtry/MeshData.types.js +0 -6
  269. package/Mesher/Geomtry/Tools/MesherDataTools.d.ts +0 -7
  270. package/Mesher/Geomtry/Tools/MesherDataTools.js +0 -12
  271. package/Mesher/Geomtry/Tools/index.d.ts +0 -1
  272. package/Mesher/Geomtry/Tools/index.js +0 -1
  273. package/Mesher/RenderedMaterials.d.ts +0 -6
  274. package/Mesher/Tools/VoxelMeshBVHBuilder.js +0 -216
  275. package/Models/Rules/VoxelModelManager.js +0 -82
  276. package/Tasks/IWG/Internal/Classes/IWGTaskBase.d.ts +0 -15
  277. package/Tasks/IWG/Internal/Functions/runBuildUpdate.d.ts +0 -2
  278. package/Tasks/IWG/Internal/IWGDimensions.d.ts +0 -6
  279. package/Tasks/IWG/Internal/IWGTasks.d.ts +0 -34
  280. package/Tasks/IWG/Internal/IWGTools.d.ts +0 -8
  281. package/Textures/TextureAnimations.d.ts +0 -4
  282. package/Textures/TextureAnimations.js +0 -35
  283. package/Textures/TextureArray.d.ts +0 -47
  284. package/Textures/TextureArray.js +0 -202
  285. package/Textures/TextureBuilder.d.ts +0 -13
  286. package/Textures/TextureBuilder.js +0 -120
  287. package/Textures/TextureRegister.d.ts +0 -9
  288. package/Textures/TextureRegister.js +0 -28
  289. package/Tools/DataCursor.interface.d.ts +0 -5
  290. package/Tools/DataCursor.interface.js +0 -2
  291. package/Util/Binary/BitArray.js +0 -16
  292. package/World/Structs/WorldDataStructProperties.d.ts +0 -8
  293. package/World/Structs/WorldDataStructProperties.js +0 -9
  294. /package/Mesher/Geomtry/{Buffers.d.ts → VoxelMeshBuffers.d.ts} +0 -0
  295. /package/Mesher/{Tools → Geomtry}/VoxelMeshVertexStructCursor.d.ts +0 -0
  296. /package/Mesher/{Tools → Geomtry}/VoxelMeshVertexStructCursor.js +0 -0
  297. /package/Mesher/{VoxelShaderData.d.ts → Geomtry/VoxelShaderData.d.ts} +0 -0
  298. /package/Mesher/{VoxelShaderData.js → Geomtry/VoxelShaderData.js} +0 -0
  299. /package/{World/Storage/WorldStorage.interface.js → Voxels/Cursor/DataCursor.interface.js} +0 -0
  300. /package/World/{Storage → Types}/WorldStorage.interface.d.ts +0 -0
  301. /package/{Tasks/IWG → WorldSimulation}/Internal/Classes/DimensionSegment.js +0 -0
  302. /package/{Tasks/IWG → WorldSimulation}/Internal/Classes/SectorState.d.ts +0 -0
  303. /package/{Tasks/IWG → WorldSimulation}/Internal/Classes/SectorState.js +0 -0
  304. /package/{Tasks/IWG → WorldSimulation}/Internal/Classes/SectorVisistedMap.d.ts +0 -0
  305. /package/{Tasks/IWG → WorldSimulation}/Internal/Functions/cullSectors.d.ts +0 -0
  306. /package/{Tasks/IWG → WorldSimulation}/Internal/Functions/runWorldUpdate.d.ts +0 -0
  307. /package/{Tasks/IWG → WorldSimulation}/Procedures/SaveAllSectors.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  export const simpleCube = {
2
2
  id: "dve_simple_cube",
3
3
  relationsSchema: [],
4
- shapeStateSchema: [],
4
+ stateSchema: [],
5
5
  arguments: {
6
6
  texture: {
7
7
  type: "texture",
@@ -11,25 +11,25 @@ export const simpleCube = {
11
11
  default: false,
12
12
  },
13
13
  },
14
- shapeStatesConditonalNodes: {},
15
- shapeStatesNodes: {
14
+ conditonalNodes: {},
15
+ stateNodes: {
16
16
  "*": [
17
17
  {
18
18
  id: "cube",
19
19
  geometryId: "dve_cube",
20
20
  inputs: {
21
- "@upTex": "@texture",
22
- "@upTexTransparent": "@transparent",
23
- "@downTex": "@texture",
24
- "@downTexTransparent": "@transparent",
25
- "@northTex": "@texture",
26
- "@northTexTransparent": "@transparent",
27
- "@southTex": "@texture",
28
- "@southTexTransparent": "@transparent",
29
- "@eastTex": "@texture",
30
- "@eastTexTransparent": "@transparent",
31
- "@westTex": "@texture",
32
- "@westTexTransparent": "@transparent",
21
+ upTex: "@texture",
22
+ upTexTransparent: "@transparent",
23
+ downTex: "@texture",
24
+ downTexTransparent: "@transparent",
25
+ northTex: "@texture",
26
+ northTexTransparent: "@transparent",
27
+ southTex: "@texture",
28
+ southTexTransparent: "@transparent",
29
+ eastTex: "@texture",
30
+ eastTexTransparent: "@transparent",
31
+ westTex: "@texture",
32
+ westTexTransparent: "@transparent",
33
33
  },
34
34
  },
35
35
  ],
@@ -38,28 +38,16 @@ export const simpleCube = {
38
38
  export const orientedCube = {
39
39
  id: "dve_oriented_cube",
40
40
  relationsSchema: [],
41
- shapeStateSchema: [
41
+ stateSchema: [
42
42
  {
43
43
  name: "placement",
44
44
  type: "string",
45
- values: {
46
- 0: "down",
47
- 1: "up",
48
- 2: "north",
49
- 3: "south",
50
- 4: "east",
51
- 5: "west",
52
- },
45
+ values: ["down", "up", "north", "south", "east", "west"],
53
46
  },
54
47
  {
55
48
  name: "direction",
56
49
  type: "string",
57
- values: {
58
- 0: "north",
59
- 1: "south",
60
- 2: "east",
61
- 3: "west",
62
- },
50
+ values: ["north", "south", "east", "west"],
63
51
  },
64
52
  ],
65
53
  arguments: {
@@ -82,21 +70,21 @@ export const orientedCube = {
82
70
  type: "texture",
83
71
  },
84
72
  },
85
- shapeStatesConditonalNodes: {},
86
- shapeStatesNodes: {
73
+ conditonalNodes: {},
74
+ stateNodes: {
87
75
  "placement=down,direction=north": [
88
76
  {
89
77
  id: "cube",
90
78
  geometryId: "dve_cube",
91
79
  inputs: {
92
- "@upTex": "@upTex",
93
- "@upTexRotation": 0,
94
- "@downTex": "@downTex",
95
- "@downTexRotation": 0,
96
- "@northTex": "@northTex",
97
- "@southTex": "@southTex",
98
- "@eastTex": "@eastTex",
99
- "@westTex": "@westTex",
80
+ upTex: "@upTex",
81
+ upTexRotation: 0,
82
+ downTex: "@downTex",
83
+ downTexRotation: 0,
84
+ northTex: "@northTex",
85
+ southTex: "@southTex",
86
+ eastTex: "@eastTex",
87
+ westTex: "@westTex",
100
88
  },
101
89
  },
102
90
  ],
@@ -105,14 +93,14 @@ export const orientedCube = {
105
93
  id: "cube",
106
94
  geometryId: "dve_cube",
107
95
  inputs: {
108
- "@upTex": "@upTex",
109
- "@upTexRotation": 180,
110
- "@downTex": "@downTex",
111
- "@downTexRotation": 180,
112
- "@northTex": "@northTex",
113
- "@southTex": "@southTex",
114
- "@eastTex": "@eastTex",
115
- "@westTex": "@westTex",
96
+ upTex: "@upTex",
97
+ upTexRotation: 180,
98
+ downTex: "@downTex",
99
+ downTexRotation: 180,
100
+ northTex: "@northTex",
101
+ southTex: "@southTex",
102
+ eastTex: "@eastTex",
103
+ westTex: "@westTex",
116
104
  },
117
105
  },
118
106
  ],
@@ -121,14 +109,14 @@ export const orientedCube = {
121
109
  id: "cube",
122
110
  geometryId: "dve_cube",
123
111
  inputs: {
124
- "@upTex": "@upTex",
125
- "@upTexRotation": 90,
126
- "@downTex": "@downTex",
127
- "@downTexRotation": 90,
128
- "@northTex": "@eastTex",
129
- "@southTex": "@westTex",
130
- "@eastTex": "@southTex",
131
- "@westTex": "@northTex",
112
+ upTex: "@upTex",
113
+ upTexRotation: 90,
114
+ downTex: "@downTex",
115
+ downTexRotation: 90,
116
+ northTex: "@eastTex",
117
+ southTex: "@westTex",
118
+ eastTex: "@southTex",
119
+ westTex: "@northTex",
132
120
  },
133
121
  },
134
122
  ],
@@ -137,14 +125,14 @@ export const orientedCube = {
137
125
  id: "cube",
138
126
  geometryId: "dve_cube",
139
127
  inputs: {
140
- "@upTex": "@upTex",
141
- "@upTexRotation": 270,
142
- "@downTex": "@downTex",
143
- "@downTexRotation": 270,
144
- "@northTex": "@westTex",
145
- "@southTex": "@eastTex",
146
- "@eastTex": "@northTex",
147
- "@westTex": "@southTex",
128
+ upTex: "@upTex",
129
+ upTexRotation: 270,
130
+ downTex: "@downTex",
131
+ downTexRotation: 270,
132
+ northTex: "@westTex",
133
+ southTex: "@eastTex",
134
+ eastTex: "@northTex",
135
+ westTex: "@southTex",
148
136
  },
149
137
  },
150
138
  ],
@@ -153,18 +141,18 @@ export const orientedCube = {
153
141
  id: "cube",
154
142
  geometryId: "dve_cube",
155
143
  inputs: {
156
- "@upTex": "@downTex",
157
- "@upTexRotation": 0,
158
- "@downTex": "@upTex",
159
- "@downTexRotation": 0,
160
- "@northTex": "@northTex",
161
- "@southTex": "@southTex",
162
- "@eastTex": "@eastTex",
163
- "@westTex": "@westTex",
164
- "@northTexRotation": 180,
165
- "@southTexRotation": 180,
166
- "@eastTexRotation": 180,
167
- "@westTexRotation": 180,
144
+ upTex: "@downTex",
145
+ upTexRotation: 0,
146
+ downTex: "@upTex",
147
+ downTexRotation: 0,
148
+ northTex: "@northTex",
149
+ southTex: "@southTex",
150
+ eastTex: "@eastTex",
151
+ westTex: "@westTex",
152
+ northTexRotation: 180,
153
+ southTexRotation: 180,
154
+ eastTexRotation: 180,
155
+ westTexRotation: 180,
168
156
  },
169
157
  },
170
158
  ],
@@ -173,18 +161,18 @@ export const orientedCube = {
173
161
  id: "cube",
174
162
  geometryId: "dve_cube",
175
163
  inputs: {
176
- "@upTex": "@downTex",
177
- "@upTexRotation": 180,
178
- "@downTex": "@upTex",
179
- "@downTexRotation": 180,
180
- "@northTex": "@southTex",
181
- "@southTex": "@northTex",
182
- "@eastTex": "@westTex",
183
- "@westTex": "@eastTex",
184
- "@northTexRotation": 180,
185
- "@southTexRotation": 180,
186
- "@eastTexRotation": 180,
187
- "@westTexRotation": 180,
164
+ upTex: "@downTex",
165
+ upTexRotation: 180,
166
+ downTex: "@upTex",
167
+ downTexRotation: 180,
168
+ northTex: "@southTex",
169
+ southTex: "@northTex",
170
+ eastTex: "@westTex",
171
+ westTex: "@eastTex",
172
+ northTexRotation: 180,
173
+ southTexRotation: 180,
174
+ eastTexRotation: 180,
175
+ westTexRotation: 180,
188
176
  },
189
177
  },
190
178
  ],
@@ -193,18 +181,18 @@ export const orientedCube = {
193
181
  id: "cube",
194
182
  geometryId: "dve_cube",
195
183
  inputs: {
196
- "@upTex": "@downTex",
197
- "@upTexRotation": 90,
198
- "@downTex": "@upTex",
199
- "@downTexRotation": 90,
200
- "@northTex": "@eastTex",
201
- "@southTex": "@westTex",
202
- "@eastTex": "@southTex",
203
- "@westTex": "@northTex",
204
- "@northTexRotation": 180,
205
- "@southTexRotation": 180,
206
- "@eastTexRotation": 180,
207
- "@westTexRotation": 180,
184
+ upTex: "@downTex",
185
+ upTexRotation: 90,
186
+ downTex: "@upTex",
187
+ downTexRotation: 90,
188
+ northTex: "@eastTex",
189
+ southTex: "@westTex",
190
+ eastTex: "@southTex",
191
+ westTex: "@northTex",
192
+ northTexRotation: 180,
193
+ southTexRotation: 180,
194
+ eastTexRotation: 180,
195
+ westTexRotation: 180,
208
196
  },
209
197
  },
210
198
  ],
@@ -213,18 +201,18 @@ export const orientedCube = {
213
201
  id: "cube",
214
202
  geometryId: "dve_cube",
215
203
  inputs: {
216
- "@upTex": "@downTex",
217
- "@upTexRotation": 270,
218
- "@downTex": "@upTex",
219
- "@downTexRotation": 270,
220
- "@northTex": "@westTex",
221
- "@southTex": "@eastTex",
222
- "@eastTex": "@northTex",
223
- "@westTex": "@southTex",
224
- "@northTexRotation": 180,
225
- "@southTexRotation": 180,
226
- "@eastTexRotation": 180,
227
- "@westTexRotation": 180,
204
+ upTex: "@downTex",
205
+ upTexRotation: 270,
206
+ downTex: "@upTex",
207
+ downTexRotation: 270,
208
+ northTex: "@westTex",
209
+ southTex: "@eastTex",
210
+ eastTex: "@northTex",
211
+ westTex: "@southTex",
212
+ northTexRotation: 180,
213
+ southTexRotation: 180,
214
+ eastTexRotation: 180,
215
+ westTexRotation: 180,
228
216
  },
229
217
  },
230
218
  ],
@@ -233,18 +221,18 @@ export const orientedCube = {
233
221
  id: "cube",
234
222
  geometryId: "dve_cube",
235
223
  inputs: {
236
- "@upTex": "@northTex",
237
- "@northTex": "@upTex",
238
- "@northTexRotation": 0,
239
- "@southTex": "@downTex",
240
- "@southTexRotation": 0,
241
- "@downTex": "@southTex",
242
- "@eastTex": "@eastTex",
243
- "@westTex": "@westTex",
244
- "@upTexRotation": 0,
245
- "@downTexRotation": 0,
246
- "@eastTexRotation": 90,
247
- "@westTexRotation": 90,
224
+ upTex: "@northTex",
225
+ northTex: "@upTex",
226
+ northTexRotation: 0,
227
+ southTex: "@downTex",
228
+ southTexRotation: 0,
229
+ downTex: "@southTex",
230
+ eastTex: "@eastTex",
231
+ westTex: "@westTex",
232
+ upTexRotation: 0,
233
+ downTexRotation: 0,
234
+ eastTexRotation: 90,
235
+ westTexRotation: 90,
248
236
  },
249
237
  },
250
238
  ],
@@ -253,18 +241,18 @@ export const orientedCube = {
253
241
  id: "cube",
254
242
  geometryId: "dve_cube",
255
243
  inputs: {
256
- "@upTex": "@southTex",
257
- "@northTex": "@upTex",
258
- "@northTexRotation": 180,
259
- "@southTex": "@downTex",
260
- "@southTexRotation": 180,
261
- "@downTex": "@northTex",
262
- "@eastTex": "@westTex",
263
- "@westTex": "@eastTex",
264
- "@upTexRotation": 0,
265
- "@downTexRotation": 0,
266
- "@eastTexRotation": 90,
267
- "@westTexRotation": 90,
244
+ upTex: "@southTex",
245
+ northTex: "@upTex",
246
+ northTexRotation: 180,
247
+ southTex: "@downTex",
248
+ southTexRotation: 180,
249
+ downTex: "@northTex",
250
+ eastTex: "@westTex",
251
+ westTex: "@eastTex",
252
+ upTexRotation: 0,
253
+ downTexRotation: 0,
254
+ eastTexRotation: 90,
255
+ westTexRotation: 90,
268
256
  },
269
257
  },
270
258
  ],
@@ -273,18 +261,18 @@ export const orientedCube = {
273
261
  id: "cube",
274
262
  geometryId: "dve_cube",
275
263
  inputs: {
276
- "@upTex": "@westTex",
277
- "@northTex": "@upTex",
278
- "@northTexRotation": 90,
279
- "@southTex": "@downTex",
280
- "@southTexRotation": 90,
281
- "@downTex": "@eastTex",
282
- "@eastTex": "@southTex",
283
- "@westTex": "@northTex",
284
- "@upTexRotation": 0,
285
- "@downTexRotation": 0,
286
- "@eastTexRotation": 90,
287
- "@westTexRotation": 90,
264
+ upTex: "@westTex",
265
+ northTex: "@upTex",
266
+ northTexRotation: 90,
267
+ southTex: "@downTex",
268
+ southTexRotation: 90,
269
+ downTex: "@eastTex",
270
+ eastTex: "@southTex",
271
+ westTex: "@northTex",
272
+ upTexRotation: 0,
273
+ downTexRotation: 0,
274
+ eastTexRotation: 90,
275
+ westTexRotation: 90,
288
276
  },
289
277
  },
290
278
  ],
@@ -293,18 +281,18 @@ export const orientedCube = {
293
281
  id: "cube",
294
282
  geometryId: "dve_cube",
295
283
  inputs: {
296
- "@upTex": "@eastTex",
297
- "@northTex": "@upTex",
298
- "@northTexRotation": 270,
299
- "@southTex": "@downTex",
300
- "@southTexRotation": 270,
301
- "@downTex": "@westTex",
302
- "@eastTex": "@northTex",
303
- "@westTex": "@southTex",
304
- "@upTexRotation": 0,
305
- "@downTexRotation": 0,
306
- "@eastTexRotation": 90,
307
- "@westTexRotation": 90,
284
+ upTex: "@eastTex",
285
+ northTex: "@upTex",
286
+ northTexRotation: 270,
287
+ southTex: "@downTex",
288
+ southTexRotation: 270,
289
+ downTex: "@westTex",
290
+ eastTex: "@northTex",
291
+ westTex: "@southTex",
292
+ upTexRotation: 0,
293
+ downTexRotation: 0,
294
+ eastTexRotation: 90,
295
+ westTexRotation: 90,
308
296
  },
309
297
  },
310
298
  ],
@@ -313,18 +301,18 @@ export const orientedCube = {
313
301
  id: "cube",
314
302
  geometryId: "dve_cube",
315
303
  inputs: {
316
- "@upTex": "@southTex",
317
- "@northTex": "@downTex",
318
- "@northTexRotation": 180,
319
- "@southTex": "@upTex",
320
- "@southTexRotation": 180,
321
- "@downTex": "@northTex",
322
- "@eastTex": "@westTex",
323
- "@westTex": "@eastTex",
324
- "@upTexRotation": 180,
325
- "@downTexRotation": 180,
326
- "@eastTexRotation": 270,
327
- "@westTexRotation": 270,
304
+ upTex: "@southTex",
305
+ northTex: "@downTex",
306
+ northTexRotation: 180,
307
+ southTex: "@upTex",
308
+ southTexRotation: 180,
309
+ downTex: "@northTex",
310
+ eastTex: "@westTex",
311
+ westTex: "@eastTex",
312
+ upTexRotation: 180,
313
+ downTexRotation: 180,
314
+ eastTexRotation: 270,
315
+ westTexRotation: 270,
328
316
  },
329
317
  },
330
318
  ],
@@ -333,18 +321,18 @@ export const orientedCube = {
333
321
  id: "cube",
334
322
  geometryId: "dve_cube",
335
323
  inputs: {
336
- "@upTex": "@northTex",
337
- "@northTex": "@downTex",
338
- "@northTexRotation": 0,
339
- "@southTex": "@upTex",
340
- "@southTexRotation": 0,
341
- "@downTex": "@southTex",
342
- "@eastTex": "@eastTex",
343
- "@westTex": "@westTex",
344
- "@upTexRotation": 180,
345
- "@downTexRotation": 180,
346
- "@eastTexRotation": 270,
347
- "@westTexRotation": 270,
324
+ upTex: "@northTex",
325
+ northTex: "@downTex",
326
+ northTexRotation: 0,
327
+ southTex: "@upTex",
328
+ southTexRotation: 0,
329
+ downTex: "@southTex",
330
+ eastTex: "@eastTex",
331
+ westTex: "@westTex",
332
+ upTexRotation: 180,
333
+ downTexRotation: 180,
334
+ eastTexRotation: 270,
335
+ westTexRotation: 270,
348
336
  },
349
337
  },
350
338
  ],
@@ -353,18 +341,18 @@ export const orientedCube = {
353
341
  id: "cube",
354
342
  geometryId: "dve_cube",
355
343
  inputs: {
356
- "@upTex": "@westTex",
357
- "@northTex": "@downTex",
358
- "@northTexRotation": 90,
359
- "@southTex": "@upTex",
360
- "@southTexRotation": 90,
361
- "@downTex": "@eastTex",
362
- "@eastTex": "@southTex",
363
- "@westTex": "@northTex",
364
- "@upTexRotation": 180,
365
- "@downTexRotation": 180,
366
- "@eastTexRotation": 270,
367
- "@westTexRotation": 270,
344
+ upTex: "@westTex",
345
+ northTex: "@downTex",
346
+ northTexRotation: 90,
347
+ southTex: "@upTex",
348
+ southTexRotation: 90,
349
+ downTex: "@eastTex",
350
+ eastTex: "@southTex",
351
+ westTex: "@northTex",
352
+ upTexRotation: 180,
353
+ downTexRotation: 180,
354
+ eastTexRotation: 270,
355
+ westTexRotation: 270,
368
356
  },
369
357
  },
370
358
  ],
@@ -373,18 +361,18 @@ export const orientedCube = {
373
361
  id: "cube",
374
362
  geometryId: "dve_cube",
375
363
  inputs: {
376
- "@upTex": "@eastTex",
377
- "@northTex": "@downTex",
378
- "@northTexRotation": 270,
379
- "@southTex": "@upTex",
380
- "@southTexRotation": 270,
381
- "@downTex": "@westTex",
382
- "@eastTex": "@northTex",
383
- "@westTex": "@southTex",
384
- "@upTexRotation": 180,
385
- "@downTexRotation": 180,
386
- "@eastTexRotation": 270,
387
- "@westTexRotation": 270,
364
+ upTex: "@eastTex",
365
+ northTex: "@downTex",
366
+ northTexRotation: 270,
367
+ southTex: "@upTex",
368
+ southTexRotation: 270,
369
+ downTex: "@westTex",
370
+ eastTex: "@northTex",
371
+ westTex: "@southTex",
372
+ upTexRotation: 180,
373
+ downTexRotation: 180,
374
+ eastTexRotation: 270,
375
+ westTexRotation: 270,
388
376
  },
389
377
  },
390
378
  ],
@@ -393,18 +381,18 @@ export const orientedCube = {
393
381
  id: "cube",
394
382
  geometryId: "dve_cube",
395
383
  inputs: {
396
- "@upTex": "@northTex",
397
- "@upTexRotation": 90,
398
- "@downTex": "@southTex",
399
- "@downTexRotation": 90,
400
- "@northTex": "@eastTex",
401
- "@southTex": "@westTex",
402
- "@eastTex": "@upTex",
403
- "@westTex": "@downTex",
404
- "@eastTexRotation": 0,
405
- "@westTexRotation": 0,
406
- "@northTexRotation": 90,
407
- "@southTexRotation": 90,
384
+ upTex: "@northTex",
385
+ upTexRotation: 90,
386
+ downTex: "@southTex",
387
+ downTexRotation: 90,
388
+ northTex: "@eastTex",
389
+ southTex: "@westTex",
390
+ eastTex: "@upTex",
391
+ westTex: "@downTex",
392
+ eastTexRotation: 0,
393
+ westTexRotation: 0,
394
+ northTexRotation: 90,
395
+ southTexRotation: 90,
408
396
  },
409
397
  },
410
398
  ],
@@ -413,18 +401,18 @@ export const orientedCube = {
413
401
  id: "cube",
414
402
  geometryId: "dve_cube",
415
403
  inputs: {
416
- "@upTex": "@southTex",
417
- "@upTexRotation": 90,
418
- "@downTex": "@northTex",
419
- "@downTexRotation": 90,
420
- "@northTex": "@westTex",
421
- "@southTex": "@eastTex",
422
- "@eastTex": "@upTex",
423
- "@westTex": "@downTex",
424
- "@eastTexRotation": 180,
425
- "@westTexRotation": 180,
426
- "@northTexRotation": 90,
427
- "@southTexRotation": 90,
404
+ upTex: "@southTex",
405
+ upTexRotation: 90,
406
+ downTex: "@northTex",
407
+ downTexRotation: 90,
408
+ northTex: "@westTex",
409
+ southTex: "@eastTex",
410
+ eastTex: "@upTex",
411
+ westTex: "@downTex",
412
+ eastTexRotation: 180,
413
+ westTexRotation: 180,
414
+ northTexRotation: 90,
415
+ southTexRotation: 90,
428
416
  },
429
417
  },
430
418
  ],
@@ -433,18 +421,18 @@ export const orientedCube = {
433
421
  id: "cube",
434
422
  geometryId: "dve_cube",
435
423
  inputs: {
436
- "@upTex": "@eastTex",
437
- "@upTexRotation": 90,
438
- "@downTex": "@westTex",
439
- "@downTexRotation": 90,
440
- "@northTex": "@southTex",
441
- "@southTex": "@northTex",
442
- "@eastTex": "@upTex",
443
- "@westTex": "@downTex",
444
- "@eastTexRotation": 270,
445
- "@westTexRotation": 270,
446
- "@northTexRotation": 90,
447
- "@southTexRotation": 90,
424
+ upTex: "@eastTex",
425
+ upTexRotation: 90,
426
+ downTex: "@westTex",
427
+ downTexRotation: 90,
428
+ northTex: "@southTex",
429
+ southTex: "@northTex",
430
+ eastTex: "@upTex",
431
+ westTex: "@downTex",
432
+ eastTexRotation: 270,
433
+ westTexRotation: 270,
434
+ northTexRotation: 90,
435
+ southTexRotation: 90,
448
436
  },
449
437
  },
450
438
  ],
@@ -453,18 +441,18 @@ export const orientedCube = {
453
441
  id: "cube",
454
442
  geometryId: "dve_cube",
455
443
  inputs: {
456
- "@upTex": "@westTex",
457
- "@upTexRotation": 90,
458
- "@downTex": "@eastTex",
459
- "@downTexRotation": 90,
460
- "@northTex": "@northTex",
461
- "@southTex": "@southTex",
462
- "@eastTex": "@upTex",
463
- "@westTex": "@downTex",
464
- "@eastTexRotation": 90,
465
- "@westTexRotation": 90,
466
- "@northTexRotation": 90,
467
- "@southTexRotation": 90,
444
+ upTex: "@westTex",
445
+ upTexRotation: 90,
446
+ downTex: "@eastTex",
447
+ downTexRotation: 90,
448
+ northTex: "@northTex",
449
+ southTex: "@southTex",
450
+ eastTex: "@upTex",
451
+ westTex: "@downTex",
452
+ eastTexRotation: 90,
453
+ westTexRotation: 90,
454
+ northTexRotation: 90,
455
+ southTexRotation: 90,
468
456
  },
469
457
  },
470
458
  ],
@@ -473,18 +461,18 @@ export const orientedCube = {
473
461
  id: "cube",
474
462
  geometryId: "dve_cube",
475
463
  inputs: {
476
- "@upTex": "@northTex",
477
- "@upTexRotation": 270,
478
- "@downTex": "@southTex",
479
- "@downTexRotation": 270,
480
- "@northTex": "@eastTex",
481
- "@southTex": "@westTex",
482
- "@eastTex": "@downTex",
483
- "@westTex": "@upTex",
484
- "@eastTexRotation": 0,
485
- "@westTexRotation": 0,
486
- "@northTexRotation": 270,
487
- "@southTexRotation": 270,
464
+ upTex: "@northTex",
465
+ upTexRotation: 270,
466
+ downTex: "@southTex",
467
+ downTexRotation: 270,
468
+ northTex: "@eastTex",
469
+ southTex: "@westTex",
470
+ eastTex: "@downTex",
471
+ westTex: "@upTex",
472
+ eastTexRotation: 0,
473
+ westTexRotation: 0,
474
+ northTexRotation: 270,
475
+ southTexRotation: 270,
488
476
  },
489
477
  },
490
478
  ],
@@ -493,18 +481,18 @@ export const orientedCube = {
493
481
  id: "cube",
494
482
  geometryId: "dve_cube",
495
483
  inputs: {
496
- "@upTex": "@southTex",
497
- "@upTexRotation": 270,
498
- "@downTex": "@northTex",
499
- "@downTexRotation": 270,
500
- "@northTex": "@westTex",
501
- "@southTex": "@eastTex",
502
- "@eastTex": "@downTex",
503
- "@westTex": "@upTex",
504
- "@eastTexRotation": 180,
505
- "@westTexRotation": 180,
506
- "@northTexRotation": 270,
507
- "@southTexRotation": 270,
484
+ upTex: "@southTex",
485
+ upTexRotation: 270,
486
+ downTex: "@northTex",
487
+ downTexRotation: 270,
488
+ northTex: "@westTex",
489
+ southTex: "@eastTex",
490
+ eastTex: "@downTex",
491
+ westTex: "@upTex",
492
+ eastTexRotation: 180,
493
+ westTexRotation: 180,
494
+ northTexRotation: 270,
495
+ southTexRotation: 270,
508
496
  },
509
497
  },
510
498
  ],
@@ -513,18 +501,18 @@ export const orientedCube = {
513
501
  id: "cube",
514
502
  geometryId: "dve_cube",
515
503
  inputs: {
516
- "@upTex": "@eastTex",
517
- "@upTexRotation": 270,
518
- "@downTex": "@westTex",
519
- "@downTexRotation": 270,
520
- "@northTex": "@southTex",
521
- "@southTex": "@northTex",
522
- "@eastTex": "@downTex",
523
- "@westTex": "@upTex",
524
- "@eastTexRotation": 270,
525
- "@westTexRotation": 270,
526
- "@northTexRotation": 270,
527
- "@southTexRotation": 270,
504
+ upTex: "@eastTex",
505
+ upTexRotation: 270,
506
+ downTex: "@westTex",
507
+ downTexRotation: 270,
508
+ northTex: "@southTex",
509
+ southTex: "@northTex",
510
+ eastTex: "@downTex",
511
+ westTex: "@upTex",
512
+ eastTexRotation: 270,
513
+ westTexRotation: 270,
514
+ northTexRotation: 270,
515
+ southTexRotation: 270,
528
516
  },
529
517
  },
530
518
  ],
@@ -533,18 +521,18 @@ export const orientedCube = {
533
521
  id: "cube",
534
522
  geometryId: "dve_cube",
535
523
  inputs: {
536
- "@upTex": "@westTex",
537
- "@upTexRotation": 270,
538
- "@downTex": "@eastTex",
539
- "@downTexRotation": 270,
540
- "@northTex": "@northTex",
541
- "@southTex": "@southTex",
542
- "@eastTex": "@downTex",
543
- "@westTex": "@upTex",
544
- "@eastTexRotation": 90,
545
- "@westTexRotation": 90,
546
- "@northTexRotation": 270,
547
- "@southTexRotation": 270,
524
+ upTex: "@westTex",
525
+ upTexRotation: 270,
526
+ downTex: "@eastTex",
527
+ downTexRotation: 270,
528
+ northTex: "@northTex",
529
+ southTex: "@southTex",
530
+ eastTex: "@downTex",
531
+ westTex: "@upTex",
532
+ eastTexRotation: 90,
533
+ westTexRotation: 90,
534
+ northTexRotation: 270,
535
+ southTexRotation: 270,
548
536
  },
549
537
  },
550
538
  ],
@@ -553,18 +541,11 @@ export const orientedCube = {
553
541
  export const simpleHalfCube = {
554
542
  id: "dve_simple_half_cube",
555
543
  relationsSchema: [],
556
- shapeStateSchema: [
544
+ stateSchema: [
557
545
  {
558
546
  name: "placement",
559
547
  type: "string",
560
- values: {
561
- 0: "down",
562
- 1: "up",
563
- 2: "north",
564
- 3: "south",
565
- 4: "east",
566
- 5: "west",
567
- },
548
+ values: ["down", "up", "north", "south", "east", "west"],
568
549
  },
569
550
  ],
570
551
  arguments: {
@@ -575,19 +556,19 @@ export const simpleHalfCube = {
575
556
  type: "texture",
576
557
  },
577
558
  },
578
- shapeStatesConditonalNodes: {},
579
- shapeStatesNodes: {
559
+ conditonalNodes: {},
560
+ stateNodes: {
580
561
  "placement=down": [
581
562
  {
582
563
  id: "half_cube",
583
564
  geometryId: "dve_half_cube_down_half",
584
565
  inputs: {
585
- "@upTex": "@upDownTextures",
586
- "@downTex": "@upDownTextures",
587
- "@northTex": "@sideTextures",
588
- "@southTex": "@sideTextures",
589
- "@eastTex": "@sideTextures",
590
- "@westTex": "@sideTextures",
566
+ upTex: "@upDownTextures",
567
+ downTex: "@upDownTextures",
568
+ northTex: "@sideTextures",
569
+ southTex: "@sideTextures",
570
+ eastTex: "@sideTextures",
571
+ westTex: "@sideTextures",
591
572
  },
592
573
  },
593
574
  ],
@@ -597,12 +578,12 @@ export const simpleHalfCube = {
597
578
  position: [0, 0.5, 0],
598
579
  geometryId: "dve_half_cube_down_half",
599
580
  inputs: {
600
- "@upTex": "@upDownTextures",
601
- "@downTex": "@upDownTextures",
602
- "@northTex": "@sideTextures",
603
- "@southTex": "@sideTextures",
604
- "@eastTex": "@sideTextures",
605
- "@westTex": "@sideTextures",
581
+ upTex: "@upDownTextures",
582
+ downTex: "@upDownTextures",
583
+ northTex: "@sideTextures",
584
+ southTex: "@sideTextures",
585
+ eastTex: "@sideTextures",
586
+ westTex: "@sideTextures",
606
587
  },
607
588
  },
608
589
  ],
@@ -611,12 +592,12 @@ export const simpleHalfCube = {
611
592
  id: "half_cube",
612
593
  geometryId: "dve_half_cube_south_half",
613
594
  inputs: {
614
- "@upTex": "@sideTextures",
615
- "@downTex": "@sideTextures",
616
- "@northTex": "@upDownTextures",
617
- "@southTex": "@upDownTextures",
618
- "@eastTex": "@sideTextures",
619
- "@westTex": "@sideTextures",
595
+ upTex: "@sideTextures",
596
+ downTex: "@sideTextures",
597
+ northTex: "@upDownTextures",
598
+ southTex: "@upDownTextures",
599
+ eastTex: "@sideTextures",
600
+ westTex: "@sideTextures",
620
601
  },
621
602
  },
622
603
  ],
@@ -626,12 +607,12 @@ export const simpleHalfCube = {
626
607
  position: [0, 0, 0.5],
627
608
  geometryId: "dve_half_cube_south_half",
628
609
  inputs: {
629
- "@upTex": "@sideTextures",
630
- "@downTex": "@sideTextures",
631
- "@northTex": "@upDownTextures",
632
- "@southTex": "@upDownTextures",
633
- "@eastTex": "@sideTextures",
634
- "@westTex": "@sideTextures",
610
+ upTex: "@sideTextures",
611
+ downTex: "@sideTextures",
612
+ northTex: "@upDownTextures",
613
+ southTex: "@upDownTextures",
614
+ eastTex: "@sideTextures",
615
+ westTex: "@sideTextures",
635
616
  },
636
617
  },
637
618
  ],
@@ -640,12 +621,12 @@ export const simpleHalfCube = {
640
621
  id: "half_cube",
641
622
  geometryId: "dve_half_cube_west_half",
642
623
  inputs: {
643
- "@upTex": "@sideTextures",
644
- "@downTex": "@sideTextures",
645
- "@northTex": "@sideTextures",
646
- "@southTex": "@sideTextures",
647
- "@eastTex": "@upDownTextures",
648
- "@westTex": "@upDownTextures",
624
+ upTex: "@sideTextures",
625
+ downTex: "@sideTextures",
626
+ northTex: "@sideTextures",
627
+ southTex: "@sideTextures",
628
+ eastTex: "@upDownTextures",
629
+ westTex: "@upDownTextures",
649
630
  },
650
631
  },
651
632
  ],
@@ -655,12 +636,12 @@ export const simpleHalfCube = {
655
636
  position: [0.5, 0, 0],
656
637
  geometryId: "dve_half_cube_west_half",
657
638
  inputs: {
658
- "@upTex": "@sideTextures",
659
- "@downTex": "@sideTextures",
660
- "@northTex": "@sideTextures",
661
- "@southTex": "@sideTextures",
662
- "@eastTex": "@upDownTextures",
663
- "@westTex": "@upDownTextures",
639
+ upTex: "@sideTextures",
640
+ downTex: "@sideTextures",
641
+ northTex: "@sideTextures",
642
+ southTex: "@sideTextures",
643
+ eastTex: "@upDownTextures",
644
+ westTex: "@upDownTextures",
664
645
  },
665
646
  },
666
647
  ],
@@ -724,15 +705,11 @@ export const pillarCube = {
724
705
  ],
725
706
  },
726
707
  ],
727
- shapeStateSchema: [
708
+ stateSchema: [
728
709
  {
729
710
  name: "direction",
730
711
  type: "string",
731
- values: {
732
- 0: "down-up",
733
- 1: "south-north",
734
- 2: "west-east",
735
- },
712
+ values: ["down-up", "south-north", "west-east"],
736
713
  },
737
714
  ],
738
715
  arguments: {
@@ -755,19 +732,19 @@ export const pillarCube = {
755
732
  type: "texture",
756
733
  },
757
734
  },
758
- shapeStatesConditonalNodes: {},
759
- shapeStatesNodes: {
735
+ conditonalNodes: {},
736
+ stateNodes: {
760
737
  "direction=down-up,same-down=false,same-up=false": [
761
738
  {
762
739
  id: "cube",
763
740
  geometryId: "dve_cube",
764
741
  inputs: {
765
- "@upTex": "@upTex",
766
- "@downTex": "@downTex",
767
- "@northTex": "@sideDisconnectedTex",
768
- "@southTex": "@sideDisconnectedTex",
769
- "@eastTex": "@sideDisconnectedTex",
770
- "@westTex": "@sideDisconnectedTex",
742
+ upTex: "@upTex",
743
+ downTex: "@downTex",
744
+ northTex: "@sideDisconnectedTex",
745
+ southTex: "@sideDisconnectedTex",
746
+ eastTex: "@sideDisconnectedTex",
747
+ westTex: "@sideDisconnectedTex",
771
748
  },
772
749
  },
773
750
  ],
@@ -776,12 +753,12 @@ export const pillarCube = {
776
753
  id: "cube",
777
754
  geometryId: "dve_cube",
778
755
  inputs: {
779
- "@upTex": "@upTex",
780
- "@downTex": "@downTex",
781
- "@northTex": "@sideUpTex",
782
- "@southTex": "@sideUpTex",
783
- "@eastTex": "@sideUpTex",
784
- "@westTex": "@sideUpTex",
756
+ upTex: "@upTex",
757
+ downTex: "@downTex",
758
+ northTex: "@sideUpTex",
759
+ southTex: "@sideUpTex",
760
+ eastTex: "@sideUpTex",
761
+ westTex: "@sideUpTex",
785
762
  },
786
763
  },
787
764
  ],
@@ -790,12 +767,12 @@ export const pillarCube = {
790
767
  id: "cube",
791
768
  geometryId: "dve_cube",
792
769
  inputs: {
793
- "@upTex": "@upTex",
794
- "@downTex": "@downTex",
795
- "@northTex": "@sideDownTex",
796
- "@southTex": "@sideDownTex",
797
- "@eastTex": "@sideDownTex",
798
- "@westTex": "@sideDownTex",
770
+ upTex: "@upTex",
771
+ downTex: "@downTex",
772
+ northTex: "@sideDownTex",
773
+ southTex: "@sideDownTex",
774
+ eastTex: "@sideDownTex",
775
+ westTex: "@sideDownTex",
799
776
  },
800
777
  },
801
778
  ],
@@ -804,12 +781,12 @@ export const pillarCube = {
804
781
  id: "cube",
805
782
  geometryId: "dve_cube",
806
783
  inputs: {
807
- "@upTex": "@upTex",
808
- "@downTex": "@downTex",
809
- "@northTex": "@sideConnectedTex",
810
- "@southTex": "@sideConnectedTex",
811
- "@eastTex": "@sideConnectedTex",
812
- "@westTex": "@sideConnectedTex",
784
+ upTex: "@upTex",
785
+ downTex: "@downTex",
786
+ northTex: "@sideConnectedTex",
787
+ southTex: "@sideConnectedTex",
788
+ eastTex: "@sideConnectedTex",
789
+ westTex: "@sideConnectedTex",
813
790
  },
814
791
  },
815
792
  ],