@wildshard/shard-format 0.47.2 → 0.48.1

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 (177) hide show
  1. package/package.json +1 -2
  2. package/src/format/entryClearance.ts +2 -0
  3. package/src/format/entryLanding.ts +1 -1
  4. package/src/format/liftApproach.ts +1 -0
  5. package/src/format/portalFloor.ts +1 -1
  6. package/src/format/prop-hull.ts +158 -0
  7. package/src/format/props.ts +35 -3
  8. package/corpus/handwritten/blobs/bin/027822f6ae9c374ce1ced851f2227cb9acb03077e5cc6b7fecb245c31f021abd.bin +0 -0
  9. package/corpus/handwritten/blobs/bin/0377ce182bd604bcf4d501f14bf954c434ea64ad856ad9d71c502d1045612703.bin +0 -0
  10. package/corpus/handwritten/blobs/bin/05ad93d239eeeb5d9afa09b00d90c56098d88e8850e5b5e691fcaa7520dec3cd.bin +0 -0
  11. package/corpus/handwritten/blobs/bin/0c8980141e6e394ea473df1eb11c347ba617a1a9a4b39b3fa1871b5d15b97d87.bin +0 -0
  12. package/corpus/handwritten/blobs/bin/14eb11f8d809320e0a68b1edea7837d7a5b4a3da71f1ce4f54068e0afe0b039b.bin +0 -0
  13. package/corpus/handwritten/blobs/bin/16590066c039ac71e5038a9866a53ccb95e21af13db29cb655b379c4fcfef7bb.bin +0 -0
  14. package/corpus/handwritten/blobs/bin/1795b5147ad52482445d2414ee22823b947c43a917b6e96fd9ec017f17000912.bin +0 -0
  15. package/corpus/handwritten/blobs/bin/18f2e24ecc1ed1b1d12ae1c89732a5a1a618ab6e973d4ff0332cf9ecc4e4f4a6.bin +0 -0
  16. package/corpus/handwritten/blobs/bin/1a18ade01095f1a9ebe75650127861ef27dda0bb17c2b91bde057ec88ef2e98a.bin +0 -0
  17. package/corpus/handwritten/blobs/bin/1dba017cddb874bc147efb00c55418846ffa344a696f4df702bbabeea55034d0.bin +0 -0
  18. package/corpus/handwritten/blobs/bin/248c703537e4687ddd2b69a40d1ef3936da718626289d6867ce0a6866f562ba4.bin +0 -0
  19. package/corpus/handwritten/blobs/bin/2612d9fd4727f8c349f2dbfb7b1650bb7a752d0798a4966ac22cf2b6cdd9fcef.bin +0 -0
  20. package/corpus/handwritten/blobs/bin/28c54c766e90e3b046a2377b9fa015b0ce45cf3da4420f2b10553251f86c06aa.bin +0 -0
  21. package/corpus/handwritten/blobs/bin/30866b4807b12579f50218f6525c3db00919fbd43c97921daf47b3244b25dca6.bin +0 -0
  22. package/corpus/handwritten/blobs/bin/3d14fae85d77406a9b8c59f2e973cdae9587d49108ea92fb460679ca860196b8.bin +0 -0
  23. package/corpus/handwritten/blobs/bin/3f2201a53c441abcfb52089fe9bbb01f26fac8744099d3fb6668452885c2fa11.bin +0 -0
  24. package/corpus/handwritten/blobs/bin/42f270a99367fc4cc901518ccaa344ab595e265f113be944510da745c11f69d1.bin +0 -0
  25. package/corpus/handwritten/blobs/bin/43fd4327fedd51a586684ac611bcad4a8b9d62e51e03967de71fb42c9bf0f6e1.bin +0 -0
  26. package/corpus/handwritten/blobs/bin/484adda0898a881b6f095dad447f6a619bf0933f65efe940b72f1ab7f3630c22.bin +0 -0
  27. package/corpus/handwritten/blobs/bin/4a38cd49e8797429ce76265c3d8972195d5b0a02a35fc05fc513eab11240f415.bin +0 -0
  28. package/corpus/handwritten/blobs/bin/4fe636237bbbd4f836b0816bc61702f4c224d4cb91fbd94f244c731e24a1b945.bin +0 -0
  29. package/corpus/handwritten/blobs/bin/51b1cff782dc7ebb382bc429ee965023d4cdb52c7b3e37d6ffff5ef55c1c2813.bin +0 -0
  30. package/corpus/handwritten/blobs/bin/52561f02071ecaa98432fab5e8ece407a8e8f733a01f8eb7c543d1efe02614da.bin +0 -0
  31. package/corpus/handwritten/blobs/bin/556d6333923afea9641c4738741a41d6a46ae28a508288b9a49a749a344c1398.bin +0 -0
  32. package/corpus/handwritten/blobs/bin/5caeb97f32c7f31e1029eebdf31131f879f781bb5e3a225206a646710d83fd75.bin +0 -0
  33. package/corpus/handwritten/blobs/bin/5d1131e42a045083225105b640ff72e02c7f353ee6285545ac264d01bea26b1b.bin +0 -0
  34. package/corpus/handwritten/blobs/bin/5d80b30eee9f8342a92f6756fd0d84fb9d2d2ce994d222627641e584ad45d2a8.bin +0 -0
  35. package/corpus/handwritten/blobs/bin/5e0f9f7f2a85abe11a0a61ede853c9b9942b4494c3eb9943785cf6ae221e40e3.bin +0 -0
  36. package/corpus/handwritten/blobs/bin/5fdc5485343bba8201185c9bae862ad8618498ab5ce63b53514e4e0226fa7bdb.bin +0 -0
  37. package/corpus/handwritten/blobs/bin/6623dcb0b31c9ca0be342f6dca6b9e607ec3c12ff82068fa6030c142c2df77f7.bin +0 -0
  38. package/corpus/handwritten/blobs/bin/6887131a04175edbd1989aa95e8749d1703e7f2d0b8464e85f6bad28d6964125.bin +0 -0
  39. package/corpus/handwritten/blobs/bin/6cf89771d998486cad9049e6f4fc177d742a18ad79fafa4596814ff9d3cf1952.bin +0 -0
  40. package/corpus/handwritten/blobs/bin/74bbb0fc219e8476cd5550014a357ee18abc981ff3fe787ae3e60d4593705ec5.bin +0 -0
  41. package/corpus/handwritten/blobs/bin/76784a7f519ac43ce113a0c9365881839b75f66f96aa009fe8d3c8ab539ef283.bin +0 -0
  42. package/corpus/handwritten/blobs/bin/79a2f693ee2da546bb551f8b641b9c3affd2b8bfb5632ed7f417daba9d900af9.bin +0 -0
  43. package/corpus/handwritten/blobs/bin/7b593b0f9eefb957fb9d58b316d9836971203038d7c8127284bba44ccb3090bb.bin +0 -0
  44. package/corpus/handwritten/blobs/bin/7bb8e518ca5606de78972a6c648b57623f8bc12d7e06b4bbf43c60ac419a9bbd.bin +0 -0
  45. package/corpus/handwritten/blobs/bin/7c6133f3350147257fa501f41269cb77cb11d8ed96d351e873333b079cee524a.bin +0 -0
  46. package/corpus/handwritten/blobs/bin/7f5acf1893828995256f5b2c54948f80ba21e53de72db26ea72ce2479f5b0682.bin +0 -0
  47. package/corpus/handwritten/blobs/bin/836516253cf0f3e6e79537609fdbe6331c8c5c974f9ec4d3fbe4a7db48cf123d.bin +0 -0
  48. package/corpus/handwritten/blobs/bin/89900344f82d5c1474d2a163f8d29903447bac64e9c9775123ef499be70c2380.bin +0 -0
  49. package/corpus/handwritten/blobs/bin/95d76a9273c3edd98b3643c54e2e7989800bdcaf6f815230ef09f601e760330f.bin +0 -0
  50. package/corpus/handwritten/blobs/bin/a7b5a5fe053a38c93eed899bde5051cddd80e0a3f3c82b6fd814869097f0944b.bin +0 -0
  51. package/corpus/handwritten/blobs/bin/b29be84df0bfd1bc97a1464fd5ea068130947bfed3328e167640c81326eb45d7.bin +0 -0
  52. package/corpus/handwritten/blobs/bin/b6518dc352be03332a256f1cd9d1149da262fe6829e87ba43364f19c687ca7c9.bin +0 -0
  53. package/corpus/handwritten/blobs/bin/b7edb8095beeb158adb61ae3caa1653773757afbcd8fb2764c94b975a43fe9e2.bin +0 -0
  54. package/corpus/handwritten/blobs/bin/b86d617ae7fa397df51ff7af87cd89fa113ac19abd3840ea8f3a086d6c82905c.bin +0 -0
  55. package/corpus/handwritten/blobs/bin/bb860b5c67ee7f2fafd67588822152228d6f6c9de1231123eeafa4844732b18b.bin +0 -0
  56. package/corpus/handwritten/blobs/bin/bf8c3971bbb224075d488ffa9cfc20e322c61f9ca0c59c356838415f6778014b.bin +0 -0
  57. package/corpus/handwritten/blobs/bin/c2edd52ee14ebdc9fcc01d38c15d6ab3379df7a20098c260c546551898959cd1.bin +0 -0
  58. package/corpus/handwritten/blobs/bin/c3de13c551c5b45270143dcbb9fc9a31651f6012355823c0709c2fe6cafda940.bin +0 -0
  59. package/corpus/handwritten/blobs/bin/c57a8d9da18b1289afd16de00dd1ec75027048b8dcf7dd218da36bc3276ff035.bin +0 -0
  60. package/corpus/handwritten/blobs/bin/cc2975c9dea4c31b1bf380623a8f44059423004653f9cae4f603d374174323b7.bin +0 -0
  61. package/corpus/handwritten/blobs/bin/d476abba2e1c63ad3c7527617559173484ee837a5be2744d968466d5527c286b.bin +0 -0
  62. package/corpus/handwritten/blobs/bin/db242f89115c878cf0c3b976a1647e9cdeb6a1a51813b1dacaf1188715603294.bin +0 -0
  63. package/corpus/handwritten/blobs/bin/dcc4b9b3bc4ca777d11c494ae5478f17ad7cf2efa18dcba30def872d55355bc3.bin +0 -0
  64. package/corpus/handwritten/blobs/bin/dd99da483f385327d6b8319d6e2e9000b580280069353718aa0fda2230707e8b.bin +0 -0
  65. package/corpus/handwritten/blobs/bin/dfc139dba26f1789e16f72602e654636f2d99bcd41e3f10454da74b3a6a64dda.bin +0 -0
  66. package/corpus/handwritten/blobs/bin/e15ab3cc9f60657321cfe8d9751e086f025734f4e7068271e0baf6066a686f18.bin +0 -0
  67. package/corpus/handwritten/blobs/bin/e16a83a71213db6f804ce1d53981a2308062752c85c440022d9eeb7605fd37c8.bin +0 -0
  68. package/corpus/handwritten/blobs/bin/e7355876487f660ac9f25c9d9dfcd66eaf432e1e1669eb89d12ce8267a8d3e86.bin +0 -0
  69. package/corpus/handwritten/blobs/bin/e81a632e2da0f6a4d801f18aadfe2c6e640401cc1178935a9099ebb8e3af6cc1.bin +0 -0
  70. package/corpus/handwritten/blobs/bin/f0721c60d0b1046579d8c587fac8482a70822f0b39a85f9acc0cfc31f82b7dd2.bin +0 -0
  71. package/corpus/handwritten/blobs/bin/f301cf574de6d84030f839098ca44705dca115f9d3e4ee848e0b35fff3deaf77.bin +0 -0
  72. package/corpus/handwritten/blobs/bin/f7797f295a7570c437bf7020a1ddf208fea2a7aab595333320a6396c1608d360.bin +0 -0
  73. package/corpus/handwritten/blobs/glb/08de0bb2439ac812adef528b4b073bdb954bbeada972a2f3afb1757bd0540396.glb +0 -0
  74. package/corpus/handwritten/blobs/glb/153681171c35d2898569324e21ebe734b8418d4122833618a1e64ea326be1e5e.glb +0 -0
  75. package/corpus/handwritten/blobs/glb/1df5ce0b6cae72ec4cf3c41510681ba70ebb474f9745d536ebd4f03e8fc82de9.glb +0 -0
  76. package/corpus/handwritten/blobs/glb/262031e2fa710bd8d586eafce1019ca1434a2170e407567741aac1d99fc9c5ab.glb +0 -0
  77. package/corpus/handwritten/blobs/glb/27466efb180fb5b5074b40e424bd0b8d78f7ff0f5f3663748e014daeeeb5bedd.glb +0 -0
  78. package/corpus/handwritten/blobs/glb/2d2f6d00a14c89a4efb7f679b371118f564f258797ed8b8b42baf4ae60902ea6.glb +0 -0
  79. package/corpus/handwritten/blobs/glb/31f327d215ed7ef422e2169172f3869769e9816c9da979616844081e74f2eb09.glb +0 -0
  80. package/corpus/handwritten/blobs/glb/3bfe0e9ca18077ffee9c284ef40fed9f2fc354f7495612c785a6f980b5966559.glb +0 -0
  81. package/corpus/handwritten/blobs/glb/3db43042b3eeb1dee7ce9de1cc00322cefc348aa18c37d168b0858e6af6ca7a4.glb +0 -0
  82. package/corpus/handwritten/blobs/glb/46460a50da44fb8e792b48a646ec9ce025bb309d315dbcf67d2e9598591750de.glb +0 -0
  83. package/corpus/handwritten/blobs/glb/4902213556fedaf269fba6f0f195e424b2e49973ab45dcb8b69e34d253d9d8ff.glb +0 -0
  84. package/corpus/handwritten/blobs/glb/4dda463c9cd4bf339e5611871d4ba2fe16fe1487389a88b2888e96bc55e45d93.glb +0 -0
  85. package/corpus/handwritten/blobs/glb/4ed23469bd2b6b73183564cfc80a1ebcd0ffe2666a90a556752af0ca147fd2f7.glb +0 -0
  86. package/corpus/handwritten/blobs/glb/4fe74a1bed6b67129885b90cfcae01b5ca82e23e6d40507e280f02fca7fda54f.glb +0 -0
  87. package/corpus/handwritten/blobs/glb/50521bb3a50cc7199d324a0b25bc167c2e9d69770cb500490428efefc81ce3ea.glb +0 -0
  88. package/corpus/handwritten/blobs/glb/5ecca36d1e503edc092af0ef42f139cdcad99b8c2008318eb6ad337023d57296.glb +0 -0
  89. package/corpus/handwritten/blobs/glb/60fc036925852568cdb1b9fb85218dc43a8bf2ed86d3971a221ad942ece203a7.glb +0 -0
  90. package/corpus/handwritten/blobs/glb/611633cee0e5822b744486e6dff5414ad5b159eaabffe1c0ba0bb68be794bfa1.glb +0 -0
  91. package/corpus/handwritten/blobs/glb/67c7f983a0bcb9f84425378acac121a53f30795dce3181643bc1b763d0ae80b5.glb +0 -0
  92. package/corpus/handwritten/blobs/glb/6ecc0d307030943727484b49b1872643479c55ccc92252fca06e9e3cbe98fa90.glb +0 -0
  93. package/corpus/handwritten/blobs/glb/774b366df4de56cb6f9e3c904f02ec98016ac2ec489dc9e214b09220fca2f8e5.glb +0 -0
  94. package/corpus/handwritten/blobs/glb/785bae514ffc029e611d602259db7d37cbef589409a0814b9d37175d8b6c0a45.glb +0 -0
  95. package/corpus/handwritten/blobs/glb/79e79524efb2830e90af3c945c5b36ef07c1a38f2da2958112203a99eac52a16.glb +0 -0
  96. package/corpus/handwritten/blobs/glb/7bebdcdaf0be30d9f8d21bde72af68c32d825d12dc668f48109223ed7ff71c9f.glb +0 -0
  97. package/corpus/handwritten/blobs/glb/7d8b5ec9326a11362b3f9fa3409cb59d11b99f549cc304319c63c1ec55cbf5ab.glb +0 -0
  98. package/corpus/handwritten/blobs/glb/82e886f826315e4bf962363165fadadd3d93f85132c1909095045e0a7ccc0b34.glb +0 -0
  99. package/corpus/handwritten/blobs/glb/84b4ef190c3994ae7ca1b1f7a936526d1d20ad7deac13f949e3fe6bb7ba139ed.glb +0 -0
  100. package/corpus/handwritten/blobs/glb/85b7153e943fbe8c659bd6e4b323511dc6f6e2c7a3a1185e7a9a29ea6ddfdfa6.glb +0 -0
  101. package/corpus/handwritten/blobs/glb/85cf2d2be91cedbaf454ca42ad53c0c17b311088528d274695dbcea490d6c684.glb +0 -0
  102. package/corpus/handwritten/blobs/glb/8662b4cdc626c61a45e63f71dc866746c083cd0d4644b817a373105f936a7047.glb +0 -0
  103. package/corpus/handwritten/blobs/glb/8a4d33bfbb17d865e5deb0a0bdf3de67fc2312950a7568ed2635c22fbe4b1ecf.glb +0 -0
  104. package/corpus/handwritten/blobs/glb/8b11171d41c9027411ca8b87797d9ec70355471bdd3a247c114c49b8b781bbd9.glb +0 -0
  105. package/corpus/handwritten/blobs/glb/9026e1c4f0250832b69a989e69fe3071e5cad72adfe9c22ce11c409b18bb3357.glb +0 -0
  106. package/corpus/handwritten/blobs/glb/945b946f17b6393ea040230641c3083678bb6ab42e1d7239aeb9c950d0e7d5bb.glb +0 -0
  107. package/corpus/handwritten/blobs/glb/9afab455d603f1f8a38074c5a6cbed26d7d7f2cfd8a531820bd165d4b37399ee.glb +0 -0
  108. package/corpus/handwritten/blobs/glb/a6d702fb1be1095517625bfb2a2383f5f9638775059fd7e0d093d2044651b848.glb +0 -0
  109. package/corpus/handwritten/blobs/glb/aae479c2f99848998a1b499bbcad815d971349c2442bc363786aef63baad4337.glb +0 -0
  110. package/corpus/handwritten/blobs/glb/b155bd41f260d5303e293d691b657e0fb9b9c8b2f8aa589a0187061baa033eb7.glb +0 -0
  111. package/corpus/handwritten/blobs/glb/b1e8b770d99e8ca4396f21fd512f632c587149fc13db69deba388f702a46982f.glb +0 -0
  112. package/corpus/handwritten/blobs/glb/b382c318a5baac35da59a7b99ebaad6992e30c4bac327e85851ce0b2f89aa58b.glb +0 -0
  113. package/corpus/handwritten/blobs/glb/ba4478198696802808262af9bbfc224fe37e24e3f8c13de91debc87d3e1a9d41.glb +0 -0
  114. package/corpus/handwritten/blobs/glb/baf02cd967d1bf3c6a2ae878f4ca4ed34d0c39302ca2b8b6e3560a4e87b5c16f.glb +0 -0
  115. package/corpus/handwritten/blobs/glb/bc14dd152815ea6ed39458dcf89f2d69173d61d6e2b57be99d31ce2da64ccf67.glb +0 -0
  116. package/corpus/handwritten/blobs/glb/bc4e4d3bcf7ace855183efec0fbf242d444a32714d8b2fd8a45fa7b539ef2c73.glb +0 -0
  117. package/corpus/handwritten/blobs/glb/bc53475e2aa2fc9c2c0574b36a449fd57259c462d771e2b360def5c338d37c26.glb +0 -0
  118. package/corpus/handwritten/blobs/glb/c35d9e50f392c29f2587e3a6eb4f21143ba08e48d76a53b9de62d3b5be46c1a5.glb +0 -0
  119. package/corpus/handwritten/blobs/glb/c6911e059d3ac6aea75bc0ad3dd8b220704bfbba8ba98b57705e7aa3ecbe0050.glb +0 -0
  120. package/corpus/handwritten/blobs/glb/c84d88b6ed878490bcf9fa985b5e6a7a683de8ee7808ee4151a3b6a898fbe4f2.glb +0 -0
  121. package/corpus/handwritten/blobs/glb/c9d5d02ef0e38ac2898d3e6ecbc2ea0a6d2bd04531118550ab54b5e83293d7ec.glb +0 -0
  122. package/corpus/handwritten/blobs/glb/cd9d04e361e4c3d0aeb82f8682d71114ff8318b8fc4980bccee3c5e5c16afc27.glb +0 -0
  123. package/corpus/handwritten/blobs/glb/d32499928422a0cd1a32b1afaeacc31d2d84d74876f6805b36218dc04402a921.glb +0 -0
  124. package/corpus/handwritten/blobs/glb/dc7ea629fcddeba445599d73a5d721f4d5004e056c3c140baa3e6817393c6462.glb +0 -0
  125. package/corpus/handwritten/blobs/glb/dce79b59c85ca5a7f9fc25e585d253b15558f8f5d8497a76923c9071601de8b1.glb +0 -0
  126. package/corpus/handwritten/blobs/glb/e7fa1b02bae6c8d19ace0e8db44810beab9a1be9f8172d5816324760267d6d11.glb +0 -0
  127. package/corpus/handwritten/blobs/glb/eb664feed0fdcc3ac73cecbe737109994fe5dfad8a33997de88598965fa936ba.glb +0 -0
  128. package/corpus/handwritten/blobs/glb/ec6a771ca852b0b69e55a12df9d347384d01e611c8c6151ea771910f1601605d.glb +0 -0
  129. package/corpus/handwritten/blobs/glb/ede05013f575b4216d2b4b3f8a14d611ef28756f952f702bb169529c8ab02eff.glb +0 -0
  130. package/corpus/handwritten/blobs/glb/fec21fa96950340a1a031b31b37407468361ab0a7645c683e0d7773c18591a26.glb +0 -0
  131. package/corpus/handwritten/blobs/glb/ff21ea082bb00b01006900e7dbbb85220f31f45c144405c840a70872f9e09cb9.glb +0 -0
  132. package/corpus/handwritten/blobs/image/248fe9601e921305ffb35421414bc5f03e9f1b3dba15bf9b5c3387d8f255da17.png +0 -0
  133. package/corpus/handwritten/blobs/image/4b47420aff1ded28c9c6cf1eb92d6e2d7b01d057f2654654405445ff8d562e55.webp +0 -0
  134. package/corpus/handwritten/blobs/image/5dbc818ed0be692e6ba3df87898fd623280a2686eed5a538333e1325764b238d.png +0 -0
  135. package/corpus/handwritten/blobs/image/d5ae692911bbc2b60b5fdde239b70aad4ce9be0d7665c4a91b438de6077e21e3.jpg +0 -0
  136. package/corpus/handwritten/blobs/ktx2/df0dd2e8adc1d9479148bb198cb750471df454680cf0c9ffd6dc85d6262ed676.ktx2 +0 -0
  137. package/corpus/handwritten/blobs/wasm/ecc886d8bbebcf190298ff9162b6bb364f2125606f5bdc8cc220ea28044f96ea.wasm +0 -0
  138. package/corpus/handwritten/cook.json +0 -1
  139. package/corpus/handwritten/mounts/shardfiles/blender-template/discovery.json +0 -1
  140. package/corpus/handwritten/sections/actors/creatures.json +0 -1
  141. package/corpus/handwritten/sections/actors/crowds.json +0 -1
  142. package/corpus/handwritten/sections/actors/species.json +0 -1
  143. package/corpus/handwritten/sections/audio/audio.json +0 -1
  144. package/corpus/handwritten/sections/client/plan.json +0 -1
  145. package/corpus/handwritten/sections/combat/encounters.json +0 -1
  146. package/corpus/handwritten/sections/combat/items.json +0 -1
  147. package/corpus/handwritten/sections/combat/strikes.json +0 -1
  148. package/corpus/handwritten/sections/economy/ledger.json +0 -1
  149. package/corpus/handwritten/sections/economy/loot.json +0 -1
  150. package/corpus/handwritten/sections/look/look.json +0 -1
  151. package/corpus/handwritten/sections/look/map.json +0 -1
  152. package/corpus/handwritten/sections/look/materials.json +0 -1
  153. package/corpus/handwritten/sections/quests/quests.json +0 -1
  154. package/corpus/handwritten/sections/sim/client-scripts.json +0 -1
  155. package/corpus/handwritten/sections/sim/hooks.json +0 -1
  156. package/corpus/handwritten/sections/sim/plumbing.json +0 -1
  157. package/corpus/handwritten/sections/sim/sim.json +0 -1
  158. package/corpus/handwritten/sections/state/migrations.json +0 -1
  159. package/corpus/handwritten/sections/state/state.json +0 -1
  160. package/corpus/handwritten/sections/ui/card.json +0 -1
  161. package/corpus/handwritten/sections/ui/compendium.json +0 -1
  162. package/corpus/handwritten/sections/ui/level.json +0 -1
  163. package/corpus/handwritten/sections/ui/ui.json +0 -1
  164. package/corpus/handwritten/sections/world/collision.json +0 -1
  165. package/corpus/handwritten/sections/world/days.json +0 -1
  166. package/corpus/handwritten/sections/world/edge.json +0 -1
  167. package/corpus/handwritten/sections/world/movers.json +0 -1
  168. package/corpus/handwritten/sections/world/navigation.json +0 -1
  169. package/corpus/handwritten/sections/world/props.json +0 -1
  170. package/corpus/handwritten/sections/world/spawn.json +0 -1
  171. package/corpus/handwritten/sections/world/terrain.json +0 -1
  172. package/corpus/handwritten/sections/world/tiles.json +0 -1
  173. package/corpus/handwritten/sections/world/traversal.json +0 -1
  174. package/corpus/handwritten/sections/world/water.json +0 -1
  175. package/corpus/handwritten/sections/world/weather.json +0 -1
  176. package/corpus/handwritten/shard.json +0 -1
  177. package/corpus/handwritten/validation.json +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildshard/shard-format",
3
- "version": "0.47.2",
3
+ "version": "0.48.1",
4
4
  "description": "The raw shardfile format: the spec, the validator and a validate CLI. The public, versioned contract every other repo builds on.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -35,7 +35,6 @@
35
35
  "src/cli/*.ts",
36
36
  "src/cli/*.mjs",
37
37
  "!src/cli/*.test.ts",
38
- "corpus/handwritten/**",
39
38
  "corpus/exports/**",
40
39
  "src/format/meshopt-static.mjs",
41
40
  "src/format/meshopt-decoder.wasm",
@@ -1,5 +1,6 @@
1
1
  import type { ShardEntryways } from './entryways.ts';
2
2
  import type { ShardProps } from './props.ts';
3
+ import { propHullBounds } from './prop-hull.ts';
3
4
  import type { ShardWater } from './water.ts';
4
5
  import { entryFootprints, clipEntryPolygon, obstructsEntry, type EntryVertex, type EntryFootprint } from './entryGeometry.ts';
5
6
  import { PropExtent, visitGlbTriangles } from './shardfile-assets.ts';
@@ -51,6 +52,7 @@ export function validateEntrywayClearance(source: { entryways: ShardEntryways; p
51
52
  // Hidden/inactive panels can become active, so their authored shapes still count.
52
53
  for (const row of props.colliders) for (const shape of row.shapes) {
53
54
  if (shape.kind === 'box') boxTriangles(shape, inspect);
55
+ else if (shape.kind === 'hull') { boxTriangles(propHullBounds(shape), inspect); }
54
56
  else {
55
57
  const dx = shape.to.x - shape.from.x, dz = shape.to.z - shape.from.z, run = Math.hypot(dx, dz) / shape.count, rise = (shape.to.y - shape.from.y) / shape.count;
56
58
  for (let i = 0; i < shape.count; i++) {
@@ -39,7 +39,7 @@ export function validateSocketLandings(source: { entryways: ShardEntryways; terr
39
39
  if (!row.initialActive || row.panel !== null) continue;
40
40
  for (const shape of row.shapes) {
41
41
  if (shape.kind === 'box') decks.push(...boxTop(shape));
42
- else {
42
+ else if (shape.kind === 'treads') {
43
43
  const dx = shape.to.x - shape.from.x, dz = shape.to.z - shape.from.z, run = Math.hypot(dx, dz) / shape.count, rise = (shape.to.y - shape.from.y) / shape.count;
44
44
  for (let i = 0; i < shape.count; i++) {
45
45
  const f = (i + 0.5) / shape.count, hy = Math.max(0.01, rise * (i + 1) / 2);
@@ -22,6 +22,7 @@ function boxTop(box: Box): EntryVertex[][] {
22
22
  function staticTops(rows: readonly ShardProps['colliders'][number][]): EntryVertex[][] {
23
23
  return rows.flatMap(row => row.shapes.flatMap(shape => {
24
24
  if (shape.kind === 'box') return boxTop(shape);
25
+ if (shape.kind === 'hull') { return []; }
25
26
  const dx = shape.to.x - shape.from.x, dz = shape.to.z - shape.from.z, run = Math.hypot(dx, dz) / shape.count, rise = (shape.to.y - shape.from.y) / shape.count;
26
27
  return Array.from({ length: shape.count }, (_unused, i) => {
27
28
  const f = (i + 0.5) / shape.count, hy = Math.max(0.01, rise * (i + 1) / 2);
@@ -24,7 +24,7 @@ export function validatePortalFloors(entries: readonly PortalLinkEntry[], source
24
24
  if (!row.initialActive || row.panel !== null) throw new Error('Portal floor is not permanent');
25
25
  for (const shape of row.shapes) {
26
26
  if (shape.kind === 'box') result.push(...boxTop(shape));
27
- else {
27
+ else if (shape.kind === 'treads') {
28
28
  const dx = shape.to.x - shape.from.x, dz = shape.to.z - shape.from.z, run = Math.hypot(dx, dz) / shape.count, rise = (shape.to.y - shape.from.y) / shape.count;
29
29
  for (let i = 0; i < shape.count; i++) {
30
30
  const f = (i + 0.5) / shape.count, hy = Math.max(0.01, rise * (i + 1) / 2);
@@ -0,0 +1,158 @@
1
+ /* oxlint-disable id-length -- The collision and GLB wire contracts use x, y, z, w and half extents. */
2
+ import { CELL_ABOVE, CELL_BELOW } from './contentBounds.ts'
3
+ import { glbPoint, glbTransform } from './glbTriangles.ts'
4
+
5
+ import type { GlbVertex } from './glbTriangles.ts'
6
+
7
+ type HullPose = Readonly<GlbVertex> & {
8
+ readonly points: readonly number[]
9
+ readonly yaw?: number | undefined
10
+ readonly rot?: (Readonly<GlbVertex> & { readonly w: number }) | undefined
11
+ }
12
+ type HullBounds = GlbVertex & {
13
+ readonly kind: 'box'
14
+ readonly hx: number
15
+ readonly hy: number
16
+ readonly hz: number
17
+ }
18
+
19
+ const CELL_HALF_WIDTH = 250
20
+ const DIAMETER = 2
21
+ const ZERO = 0
22
+ const CELL_WIDTH = CELL_HALF_WIDTH * DIAMETER
23
+ const LOCAL_LIMIT = Math.hypot(CELL_WIDTH, CELL_ABOVE + CELL_BELOW, CELL_WIDTH)
24
+ const COMPONENTS = 3
25
+ const MIN_VERTICES = 4
26
+ const PLANE_EPSILON = 1e-5
27
+
28
+ function pointsInWorld(shape: HullPose): GlbVertex[] {
29
+ const halfYaw = (shape.yaw ?? ZERO) / DIAMETER
30
+ const rotation = shape.rot ?? {
31
+ x: 0,
32
+ y: Math.sin(halfYaw),
33
+ z: 0,
34
+ w: Math.cos(halfYaw),
35
+ }
36
+ const matrix = glbTransform({
37
+ translation: [shape.x, shape.y, shape.z],
38
+ rotation: [rotation.x, rotation.y, rotation.z, rotation.w],
39
+ })
40
+ const result: GlbVertex[] = []
41
+ for (let index = 0; index < shape.points.length; index += COMPONENTS) {
42
+ const [localX, localY, localZ] = shape.points.slice(
43
+ index,
44
+ index + COMPONENTS,
45
+ )
46
+ if (localX === undefined || localY === undefined || localZ === undefined) {
47
+ return []
48
+ }
49
+ result.push(
50
+ glbPoint(matrix, {
51
+ x: Math.fround(localX),
52
+ y: Math.fround(localY),
53
+ z: Math.fround(localZ),
54
+ }),
55
+ )
56
+ }
57
+ return result
58
+ }
59
+
60
+ function insideCell(vertex: Readonly<GlbVertex>): boolean {
61
+ return (
62
+ Math.abs(vertex.x) <= CELL_HALF_WIDTH &&
63
+ Math.abs(vertex.z) <= CELL_HALF_WIDTH &&
64
+ vertex.y >= -CELL_BELOW &&
65
+ vertex.y <= CELL_ABOVE
66
+ )
67
+ }
68
+
69
+ function longest(points: readonly Readonly<GlbVertex>[]): Readonly<GlbVertex> {
70
+ let vector = { x: 0, y: 0, z: 0 }
71
+ let maxLength = 0
72
+ for (const point of points) {
73
+ const length = point.x * point.x + point.y * point.y + point.z * point.z
74
+ if (length > maxLength) {
75
+ maxLength = length
76
+ vector = point
77
+ }
78
+ }
79
+ return vector
80
+ }
81
+
82
+ function hasVolume(
83
+ vertices: readonly Readonly<GlbVertex>[],
84
+ first: Readonly<GlbVertex>,
85
+ ): boolean {
86
+ const offsets = vertices.map((point: Readonly<GlbVertex>): GlbVertex => ({
87
+ x: point.x - first.x,
88
+ y: point.y - first.y,
89
+ z: point.z - first.z,
90
+ }))
91
+ const axis = longest(offsets)
92
+ const normal = longest(
93
+ offsets.map((point: Readonly<GlbVertex>): GlbVertex => ({
94
+ x: axis.y * point.z - axis.z * point.y,
95
+ y: axis.z * point.x - axis.x * point.z,
96
+ z: axis.x * point.y - axis.y * point.x,
97
+ })),
98
+ )
99
+ const length = Math.hypot(normal.x, normal.y, normal.z)
100
+ return (
101
+ length > ZERO &&
102
+ offsets.some(
103
+ (point: Readonly<GlbVertex>): boolean =>
104
+ Math.abs(normal.x * point.x + normal.y * point.y + normal.z * point.z) >
105
+ PLANE_EPSILON * length,
106
+ )
107
+ )
108
+ }
109
+
110
+ /** Require volume after rounding the local vertices to Rapier's float32 coordinates. */
111
+ function solidHullWithinCell(shape: HullPose): boolean {
112
+ const { points } = shape
113
+ if (
114
+ points.length < MIN_VERTICES * COMPONENTS ||
115
+ points.length % COMPONENTS !== ZERO ||
116
+ !points.every((value): boolean => Math.abs(value) <= LOCAL_LIMIT)
117
+ ) {
118
+ return false
119
+ }
120
+ const posed = pointsInWorld(shape)
121
+ const [first] = posed
122
+ if (
123
+ first === undefined ||
124
+ !posed.every((vertex: Readonly<GlbVertex>): boolean => insideCell(vertex))
125
+ ) {
126
+ return false
127
+ }
128
+ return hasVolume(posed, first)
129
+ }
130
+
131
+ function axisBounds(values: readonly number[]): readonly [number, number] {
132
+ return [Math.min(...values), Math.max(...values)]
133
+ }
134
+
135
+ /** A conservative clearance envelope for the posed convex solid. */
136
+ function propHullBounds(shape: HullPose): HullBounds {
137
+ const points = pointsInWorld(shape)
138
+ const [minX, maxX] = axisBounds(
139
+ points.map((point: Readonly<GlbVertex>): number => point.x),
140
+ )
141
+ const [minY, maxY] = axisBounds(
142
+ points.map((point: Readonly<GlbVertex>): number => point.y),
143
+ )
144
+ const [minZ, maxZ] = axisBounds(
145
+ points.map((point: Readonly<GlbVertex>): number => point.z),
146
+ )
147
+ return {
148
+ kind: 'box',
149
+ x: (minX + maxX) / DIAMETER,
150
+ y: (minY + maxY) / DIAMETER,
151
+ z: (minZ + maxZ) / DIAMETER,
152
+ hx: (maxX - minX) / DIAMETER,
153
+ hy: (maxY - minY) / DIAMETER,
154
+ hz: (maxZ - minZ) / DIAMETER,
155
+ }
156
+ }
157
+
158
+ export { propHullBounds, solidHullWithinCell }
@@ -4,6 +4,8 @@ import { isJsonData } from './json.ts';
4
4
  import { PropMaterialsSchema, propMaterialTextureRefs, validatePropMaterials } from './propMaterials.ts';
5
5
  import { SplatTerrainSchema, validateSplatTerrain } from './splatTerrain.ts';
6
6
  import { glbPoint, glbTransform } from './glbTriangles.ts';
7
+ import { solidHullWithinCell } from './prop-hull.ts';
8
+ import type { GlbVertex } from './glbTriangles.ts';
7
9
 
8
10
  const ref = v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/u));
9
11
  const id = v.pipe(v.string(), v.regex(/^[a-z][a-z0-9.-]*$/u), v.maxLength(128));
@@ -25,8 +27,25 @@ function boxWithinCell(b: v.InferOutput<typeof boxData>): boolean {
25
27
  })).every(vertex => Math.abs(vertex.x) <= 250 && Math.abs(vertex.z) <= 250 && vertex.y >= -CELL_BELOW && vertex.y <= CELL_ABOVE);
26
28
  }
27
29
  const box = v.pipe(boxData, v.check(boxWithinCell, 'collider within cell'));
30
+ interface PropHull extends GlbVertex {
31
+ kind: 'hull';
32
+ points: number[];
33
+ yaw?: number | undefined;
34
+ // oxlint-disable-next-line eslint/id-length -- Quaternion components are part of the wire.
35
+ rot?: (GlbVertex & { w: number }) | undefined;
36
+ surface?: 'wood' | 'stone' | 'grass' | 'sand' | 'rock' | 'metal' | 'earth' | 'felt' | undefined;
37
+ }
38
+ const MIN_HULL_COORDS = 12;
39
+ const MAX_HULL_COORDS = 192;
40
+ const AXES_PER_VERTEX = 3;
41
+ const COLLIDER_UNIT = 1;
42
+ const hullPoints = v.pipe(v.array(finite), v.minLength(MIN_HULL_COORDS), v.maxLength(MAX_HULL_COORDS));
43
+ // oxlint-disable-next-line eslint/id-length -- A hull has the same cell-local pose as a prop box.
44
+ const hullData = v.strictObject({ kind: v.literal('hull'), x: coord, y: height, z: coord, points: hullPoints,
45
+ yaw: v.optional(finite), rot: v.optional(rotation), surface });
46
+ const hull = v.pipe(hullData, v.check<v.InferOutput<typeof hullData>, string>(solidHullWithinCell, 'solid hull within cell'));
28
47
  const treads = v.pipe(v.strictObject({ kind: v.literal('treads'), from: point, to: point, width: extent, count: v.pipe(v.number(), v.integer(), v.minValue(1), v.maxValue(256)), surface }), v.check((t) => Math.hypot(t.to.x - t.from.x, t.to.z - t.from.z) > 0 && t.to.y >= t.from.y && [t.from, t.to].every((p) => Math.abs(p.x) + t.width / 2 <= 250 && Math.abs(p.z) + t.width / 2 <= 250), 'bounded nondegenerate stair'));
29
- const collider = v.strictObject({ id, panel: v.nullable(id), initialActive: v.boolean(), shapes: v.pipe(v.array(v.variant('kind', [box, treads])), v.minLength(1), v.maxLength(256)) });
48
+ const collider = v.strictObject({ id, panel: v.nullable(id), initialActive: v.boolean(), shapes: v.pipe(v.array(v.variant('kind', [box, treads, hull])), v.minLength(1), v.maxLength(256)) });
30
49
  const BODY_EXTENT_MIN = 0.005;
31
50
  const BODY_EXTENT_MAX = 8;
32
51
  const BODY_DENSITY_MIN = 1;
@@ -62,6 +81,19 @@ function bodiesAdmitted(section: { readonly bodies?: readonly { readonly id: str
62
81
  const owned = new Set(rows.map((row): string => row.panel));
63
82
  return ids.size === rows.length && owned.size === rows.length && rows.every((row): boolean => declared.has(row.panel) && !claimed.has(row.panel));
64
83
  }
84
+ type CostedShape = Readonly<{ kind: 'treads'; count: number }> | Readonly<{ kind: 'hull'; points: readonly number[] }> | Readonly<{ kind: 'box' }>;
85
+ const COLLIDER_BUDGET = 2048;
86
+ function withinColliderBudget(rows: readonly Readonly<{ shapes: readonly CostedShape[] }>[]): boolean {
87
+ let total = 0;
88
+ for (const row of rows) {
89
+ for (const shape of row.shapes) {
90
+ if (shape.kind === 'treads') { total += shape.count; }
91
+ else if (shape.kind === 'hull') { total += shape.points.length / AXES_PER_VERTEX; }
92
+ else { total += COLLIDER_UNIT; }
93
+ }
94
+ }
95
+ return total <= COLLIDER_BUDGET;
96
+ }
65
97
  /** Declared self-contained GLBs: merged tile meshes, EXT_mesh_gpu_instancing lists, far proxy and script-addressable panels. */
66
98
  export const PropsSchema: v.GenericSchema<PropsDataInput, PropsData> = v.pipe(v.unknown(), v.check(isJsonData, 'JSON-only props'), v.strictObject({ version: v.literal(1), family: id,
67
99
  materials: v.exactOptional(PropMaterialsSchema),
@@ -76,7 +108,7 @@ export const PropsSchema: v.GenericSchema<PropsDataInput, PropsData> = v.pipe(v.
76
108
  colliders: v.optional(v.pipe(v.array(collider), v.maxLength(1024)), []),
77
109
  textures: v.pipe(v.array(v.strictObject({ model: ref, colour: ref })), v.maxLength(256)),
78
110
  bodies: v.exactOptional(bodies),
79
- }), v.check((s) => new Set(s.tiles.map((tile) => `${tile.lod}/${tile.x}/${tile.z}`)).size === s.tiles.length && s.tiles.every((tile) => tile.x < (tile.lod === 0 ? 8 : 4) && tile.z < (tile.lod === 0 ? 8 : 4)) && new Set([...s.panels, ...s.models].map((entry) => entry.id)).size === s.panels.length + s.models.length && new Set(s.textures.map((texture) => texture.model)).size === s.textures.length && new Set(s.colliders.map((solid) => solid.id)).size === s.colliders.length && s.colliders.reduce((sum, solid) => sum + solid.shapes.reduce((count, shape) => count + (shape.kind === 'treads' ? shape.count : 1), 0), 0) <= 2048 && s.colliders.every((solid) => solid.panel === null || s.panels.some((panel) => panel.id === solid.panel)), 'unique props addresses and ids'), v.check<PropsData, string>(bodiesAdmitted, 'touchable bodies have unique ids and each names its own panel, which no static collider claims'));
111
+ }), v.check((s) => new Set(s.tiles.map((tile) => `${tile.lod}/${tile.x}/${tile.z}`)).size === s.tiles.length && s.tiles.every((tile) => tile.x < (tile.lod === 0 ? 8 : 4) && tile.z < (tile.lod === 0 ? 8 : 4)) && new Set([...s.panels, ...s.models].map((entry) => entry.id)).size === s.panels.length + s.models.length && new Set(s.textures.map((texture) => texture.model)).size === s.textures.length && new Set(s.colliders.map((solid) => solid.id)).size === s.colliders.length && withinColliderBudget(s.colliders) && s.colliders.every((solid) => solid.panel === null || s.panels.some((panel) => panel.id === solid.panel)), 'unique props addresses and ids'), v.check<PropsData, string>(bodiesAdmitted, 'touchable bodies have unique ids and each names its own panel, which no static collider claims'));
80
112
  /** Validated data for the props renderer; no callbacks, URLs or generator code enter this section. */
81
113
  export type ShardProps = v.InferOutput<typeof PropsSchema>;
82
114
  /** Check every render binding against ordinary admitted file, tile and library rows before allocating content. */
@@ -148,7 +180,7 @@ interface PropsDataFields {
148
180
  w: number;
149
181
  } | undefined;
150
182
  surface?: 'wood' | 'stone' | 'grass' | 'sand' | 'rock' | 'metal' | 'earth' | 'felt' | undefined;
151
- }) | ({
183
+ }) | PropHull | ({
152
184
  kind: 'treads';
153
185
  from: {
154
186
  x: number;