hytopia 0.8.3 → 0.8.6-dev1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun-server.mjs +171 -171
- package/docs/index.md +1 -0
- package/docs/server.audio._constructor_.md +1 -0
- package/docs/server.audio.md +1 -0
- package/docs/server.audio.play.md +1 -0
- package/docs/server.audio.setattachedtoentity.md +1 -0
- package/docs/server.audio.setcutoffdistance.md +1 -0
- package/docs/server.audio.setdetune.md +1 -0
- package/docs/server.audio.setdistortion.md +1 -0
- package/docs/server.audio.setplaybackrate.md +1 -0
- package/docs/server.audio.setposition.md +1 -0
- package/docs/server.audio.setreferencedistance.md +1 -0
- package/docs/server.audio.setvolume.md +1 -0
- package/docs/server.audioevent.md +1 -0
- package/docs/server.audioeventpayloads.md +1 -0
- package/docs/server.audiomanager.getallaudios.md +1 -37
- package/docs/server.audiomanager.getallentityattachedaudios.md +3 -18
- package/docs/server.audiomanager.getallloopedaudios.md +1 -37
- package/docs/server.audiomanager.getalloneshotaudios.md +1 -37
- package/docs/server.audiomanager.md +5 -4
- package/docs/server.audiomanager.unregisteraudio.md +1 -0
- package/docs/server.audiomanager.unregisterentityattachedaudios.md +1 -0
- package/docs/server.audiooptions.md +1 -0
- package/docs/server.ballcollideroptions.md +1 -0
- package/docs/server.basecollideroptions.md +1 -0
- package/docs/server.baseentitycontroller.attach.md +1 -0
- package/docs/server.baseentitycontroller.despawn.md +1 -0
- package/docs/server.baseentitycontroller.detach.md +1 -0
- package/docs/server.baseentitycontroller.md +1 -0
- package/docs/server.baseentitycontroller.spawn.md +1 -0
- package/docs/server.baseentitycontroller.tick.md +1 -0
- package/docs/server.baseentitycontroller.tickwithplayerinput.md +1 -0
- package/docs/server.baseentitycontrollerevent.md +1 -0
- package/docs/server.baseentitycontrollereventpayloads.md +1 -0
- package/docs/server.baseentityoptions.md +1 -0
- package/docs/server.baserigidbodyoptions.md +1 -0
- package/docs/server.block.getneighborglobalcoordinatefromhitpoint.md +1 -0
- package/docs/server.block.md +1 -0
- package/docs/server.blockcollideroptions.md +1 -0
- package/docs/server.blockentityoptions.md +1 -0
- package/docs/server.blocktype._constructor_.md +2 -15
- package/docs/server.blocktype.md +2 -22
- package/docs/server.blocktypeevent.md +1 -0
- package/docs/server.blocktypeeventpayloads.md +1 -0
- package/docs/server.blocktypeoptions.md +1 -0
- package/docs/server.blocktyperegistry.getallblocktypes.md +1 -37
- package/docs/server.blocktyperegistry.getblocktype.md +1 -0
- package/docs/server.blocktyperegistry.md +2 -1
- package/docs/server.blocktyperegistry.registerblocktype.md +1 -0
- package/docs/server.blocktyperegistry.registergenericblocktype.md +1 -0
- package/docs/server.blocktyperegistryevent.md +1 -0
- package/docs/server.blocktyperegistryeventpayloads.md +1 -0
- package/docs/server.capsulecollideroptions.md +1 -0
- package/docs/server.chatevent.md +1 -0
- package/docs/server.chateventpayloads.md +1 -0
- package/docs/server.chatmanager.md +1 -0
- package/docs/server.chatmanager.registercommand.md +1 -0
- package/docs/server.chatmanager.sendbroadcastmessage.md +1 -0
- package/docs/server.chatmanager.sendplayermessage.md +1 -0
- package/docs/server.chatmanager.unregistercommand.md +1 -0
- package/docs/server.chunk._constructor_.md +2 -15
- package/docs/server.chunk.blockindextolocalcoordinate.md +1 -0
- package/docs/server.chunk.getblockid.md +1 -0
- package/docs/server.chunk.globalcoordinatetolocalcoordinate.md +1 -0
- package/docs/server.chunk.globalcoordinatetoorigincoordinate.md +1 -0
- package/docs/server.chunk.hasblock.md +1 -0
- package/docs/server.chunk.md +2 -22
- package/docs/server.chunklattice._constructor_.md +1 -0
- package/docs/server.chunklattice.getallchunks.md +1 -37
- package/docs/server.chunklattice.getblockid.md +1 -0
- package/docs/server.chunklattice.getblocktype.md +1 -0
- package/docs/server.chunklattice.getblocktypecount.md +1 -0
- package/docs/server.chunklattice.getchunk.md +1 -0
- package/docs/server.chunklattice.getorcreatechunk.md +1 -0
- package/docs/server.chunklattice.hasblock.md +1 -0
- package/docs/server.chunklattice.haschunk.md +1 -0
- package/docs/server.chunklattice.md +2 -22
- package/docs/server.chunklattice.setblock.md +1 -0
- package/docs/server.chunklatticeevent.md +1 -0
- package/docs/server.chunklatticeeventpayloads.md +1 -0
- package/docs/server.coefficientcombinerule.md +1 -0
- package/docs/server.collider._constructor_.md +1 -0
- package/docs/server.collider.addtosimulation.md +1 -0
- package/docs/server.collider.enablecollisionevents.md +1 -0
- package/docs/server.collider.enablecontactforceevents.md +1 -0
- package/docs/server.collider.md +1 -0
- package/docs/server.collider.optionsfromblockhalfextents.md +1 -0
- package/docs/server.collider.optionsfrommodeluri.md +1 -0
- package/docs/server.collider.scale.md +1 -0
- package/docs/server.collider.setbounciness.md +1 -0
- package/docs/server.collider.setbouncinesscombinerule.md +1 -0
- package/docs/server.collider.setcollisiongroups.md +1 -0
- package/docs/server.collider.setenabled.md +1 -0
- package/docs/server.collider.setfriction.md +1 -0
- package/docs/server.collider.setfrictioncombinerule.md +1 -0
- package/docs/server.collider.setmass.md +1 -0
- package/docs/server.collider.setoncollision.md +1 -0
- package/docs/server.collider.setrelativeposition.md +1 -0
- package/docs/server.collider.setrelativerotation.md +1 -0
- package/docs/server.collider.setsensor.md +1 -0
- package/docs/server.collider.settag.md +1 -0
- package/docs/server.collider.setvoxel.md +1 -0
- package/docs/server.collidershape.md +1 -0
- package/docs/server.collisiongroupsbuilder.buildrawcollisiongroups.md +1 -0
- package/docs/server.collisiongroupsbuilder.decodecollisiongroups.md +1 -0
- package/docs/server.collisiongroupsbuilder.decoderawcollisiongroups.md +1 -0
- package/docs/server.collisiongroupsbuilder.isdefaultcollisiongroups.md +1 -0
- package/docs/server.collisiongroupsbuilder.md +1 -0
- package/docs/server.conecollideroptions.md +1 -0
- package/docs/server.cylindercollideroptions.md +1 -0
- package/docs/server.defaultplayerentity._constructor_.md +1 -0
- package/docs/server.defaultplayerentity.md +1 -0
- package/docs/server.defaultplayerentitycontroller._constructor_.md +1 -0
- package/docs/server.defaultplayerentitycontroller.attach.md +1 -0
- package/docs/server.defaultplayerentitycontroller.md +1 -0
- package/docs/server.defaultplayerentitycontroller.spawn.md +1 -0
- package/docs/server.defaultplayerentitycontroller.tickwithplayerinput.md +1 -0
- package/docs/server.defaultplayerentitycontrolleroptions.md +1 -0
- package/docs/server.dynamicrigidbodyoptions.md +1 -0
- package/docs/server.entity._constructor_.md +1 -0
- package/docs/server.entity.md +1 -0
- package/docs/server.entity.setcontroller.md +1 -0
- package/docs/server.entity.setmodelanimationsplaybackrate.md +1 -0
- package/docs/server.entity.setmodelhiddennodes.md +1 -0
- package/docs/server.entity.setmodelscale.md +1 -0
- package/docs/server.entity.setmodelshownnodes.md +1 -0
- package/docs/server.entity.setmodeltextureuri.md +1 -0
- package/docs/server.entity.setopacity.md +1 -0
- package/docs/server.entity.setparent.md +1 -0
- package/docs/server.entity.settintcolor.md +1 -0
- package/docs/server.entity.spawn.md +1 -0
- package/docs/server.entity.startmodelloopedanimations.md +1 -0
- package/docs/server.entity.startmodeloneshotanimations.md +1 -0
- package/docs/server.entity.stopallmodelanimations.md +1 -0
- package/docs/server.entity.stopallmodelloopedanimations.md +1 -0
- package/docs/server.entity.stopallmodeloneshotanimations.md +1 -0
- package/docs/server.entity.stopmodelanimations.md +1 -0
- package/docs/server.entityevent.md +1 -0
- package/docs/server.entityeventpayloads.md +1 -0
- package/docs/server.entitymanager.getallentities.md +1 -37
- package/docs/server.entitymanager.getentitiesbytag.md +1 -0
- package/docs/server.entitymanager.getentitiesbytagsubstring.md +1 -0
- package/docs/server.entitymanager.getentity.md +1 -0
- package/docs/server.entitymanager.getentitychildren.md +1 -0
- package/docs/server.entitymanager.getplayerentitiesbyplayer.md +1 -0
- package/docs/server.entitymanager.md +2 -1
- package/docs/server.errorhandler.error.md +1 -0
- package/docs/server.errorhandler.fatalerror.md +1 -0
- package/docs/server.errorhandler.md +1 -0
- package/docs/server.errorhandler.warning.md +1 -0
- package/docs/server.eventrouter.emit.md +1 -0
- package/docs/server.eventrouter.emit_1.md +1 -0
- package/docs/server.eventrouter.emitwithglobal.md +1 -0
- package/docs/server.eventrouter.emitwithglobal_1.md +1 -0
- package/docs/server.eventrouter.emitwithworld.md +1 -0
- package/docs/server.eventrouter.emitwithworld_1.md +1 -0
- package/docs/server.eventrouter.final_1.md +1 -0
- package/docs/server.eventrouter.haslisteners.md +1 -0
- package/docs/server.eventrouter.haslisteners_1.md +1 -0
- package/docs/server.eventrouter.listenercount.md +1 -0
- package/docs/server.eventrouter.listenercount_1.md +1 -0
- package/docs/server.eventrouter.listeners.md +1 -0
- package/docs/server.eventrouter.listeners_1.md +1 -0
- package/docs/server.eventrouter.md +1 -0
- package/docs/server.eventrouter.off.md +1 -0
- package/docs/server.eventrouter.off_1.md +1 -0
- package/docs/server.eventrouter.offall.md +1 -0
- package/docs/server.eventrouter.offall_1.md +1 -0
- package/docs/server.eventrouter.on.md +1 -0
- package/docs/server.eventrouter.on_1.md +1 -0
- package/docs/server.eventrouter.once.md +1 -0
- package/docs/server.eventrouter.once_1.md +1 -0
- package/docs/server.fixedrigidbodyoptions.md +1 -0
- package/docs/server.gameserver.md +1 -0
- package/docs/server.gameserverevent.md +1 -0
- package/docs/server.gameservereventpayloads.md +1 -0
- package/docs/server.iterationmap.delete.md +1 -0
- package/docs/server.iterationmap.foreach.md +1 -0
- package/docs/server.iterationmap.get.md +1 -0
- package/docs/server.iterationmap.has.md +1 -0
- package/docs/server.iterationmap.md +1 -0
- package/docs/server.iterationmap.set.md +1 -0
- package/docs/server.kinematicpositionrigidbodyoptions.md +1 -0
- package/docs/server.kinematicvelocityrigidbodyoptions.md +1 -0
- package/docs/server.light._constructor_.md +1 -0
- package/docs/server.light.md +1 -0
- package/docs/server.light.setangle.md +1 -0
- package/docs/server.light.setattachedtoentity.md +1 -0
- package/docs/server.light.setcolor.md +1 -0
- package/docs/server.light.setdistance.md +1 -0
- package/docs/server.light.setintensity.md +1 -0
- package/docs/server.light.setoffset.md +1 -0
- package/docs/server.light.setpenumbra.md +1 -0
- package/docs/server.light.setposition.md +1 -0
- package/docs/server.light.settrackedentity.md +1 -0
- package/docs/server.light.settrackedposition.md +1 -0
- package/docs/server.light.spawn.md +1 -0
- package/docs/server.lightevent.md +1 -0
- package/docs/server.lighteventpayloads.md +1 -0
- package/docs/server.lightmanager.getallentityattachedlights.md +1 -0
- package/docs/server.lightmanager.getalllights.md +1 -37
- package/docs/server.lightmanager.md +2 -1
- package/docs/server.lightoptions.md +1 -0
- package/docs/server.lighttype.md +1 -0
- package/docs/server.matrix2._constructor_.md +1 -0
- package/docs/server.matrix2.add.md +1 -0
- package/docs/server.matrix2.copy.md +1 -0
- package/docs/server.matrix2.equals.md +1 -0
- package/docs/server.matrix2.exactequals.md +1 -0
- package/docs/server.matrix2.fromrotation.md +1 -0
- package/docs/server.matrix2.fromscaling.md +1 -0
- package/docs/server.matrix2.md +1 -0
- package/docs/server.matrix2.multiply.md +1 -0
- package/docs/server.matrix2.multiplyscalar.md +1 -0
- package/docs/server.matrix2.rotate.md +1 -0
- package/docs/server.matrix2.subtract.md +1 -0
- package/docs/server.matrix3._constructor_.md +1 -0
- package/docs/server.matrix3.add.md +1 -0
- package/docs/server.matrix3.copy.md +1 -0
- package/docs/server.matrix3.equals.md +1 -0
- package/docs/server.matrix3.exactequals.md +1 -0
- package/docs/server.matrix3.frommatrix4.md +1 -0
- package/docs/server.matrix3.fromquaternion.md +1 -0
- package/docs/server.matrix3.fromrotation.md +1 -0
- package/docs/server.matrix3.fromscaling.md +1 -0
- package/docs/server.matrix3.fromtranslation.md +1 -0
- package/docs/server.matrix3.md +1 -0
- package/docs/server.matrix3.multiply.md +1 -0
- package/docs/server.matrix3.multiplyscalar.md +1 -0
- package/docs/server.matrix3.projection.md +1 -0
- package/docs/server.matrix3.rotate.md +1 -0
- package/docs/server.matrix3.subtract.md +1 -0
- package/docs/server.matrix3.transformvector.md +1 -0
- package/docs/server.matrix4._constructor_.md +1 -0
- package/docs/server.matrix4.add.md +1 -0
- package/docs/server.matrix4.copy.md +1 -0
- package/docs/server.matrix4.equals.md +1 -0
- package/docs/server.matrix4.exactequals.md +1 -0
- package/docs/server.matrix4.fromquaternion.md +1 -0
- package/docs/server.matrix4.fromrotation.md +1 -0
- package/docs/server.matrix4.fromrotationtranslation.md +1 -0
- package/docs/server.matrix4.fromrotationtranslationscale.md +1 -0
- package/docs/server.matrix4.fromrotationtranslationscaleorigin.md +1 -0
- package/docs/server.matrix4.fromscaling.md +1 -0
- package/docs/server.matrix4.fromtranslation.md +1 -0
- package/docs/server.matrix4.fromxrotation.md +1 -0
- package/docs/server.matrix4.fromyrotation.md +1 -0
- package/docs/server.matrix4.fromzrotation.md +1 -0
- package/docs/server.matrix4.frustrum.md +1 -0
- package/docs/server.matrix4.lookat.md +1 -0
- package/docs/server.matrix4.md +1 -0
- package/docs/server.matrix4.multiply.md +1 -0
- package/docs/server.matrix4.multiplyscalar.md +1 -0
- package/docs/server.matrix4.orthographic.md +1 -0
- package/docs/server.matrix4.perspective.md +1 -0
- package/docs/server.matrix4.rotate.md +1 -0
- package/docs/server.matrix4.rotatex.md +1 -0
- package/docs/server.matrix4.rotatey.md +1 -0
- package/docs/server.matrix4.rotatez.md +1 -0
- package/docs/server.matrix4.scale.md +1 -0
- package/docs/server.matrix4.subtract.md +1 -0
- package/docs/server.matrix4.targetto.md +1 -0
- package/docs/server.matrix4.translate.md +1 -0
- package/docs/server.md +1 -33
- package/docs/server.modelentityoptions.md +1 -0
- package/docs/server.modelregistry.getanimationnames.md +1 -0
- package/docs/server.modelregistry.getboundingbox.md +1 -0
- package/docs/server.modelregistry.getdepth.md +1 -0
- package/docs/server.modelregistry.getheight.md +1 -0
- package/docs/server.modelregistry.getnodenames.md +1 -0
- package/docs/server.modelregistry.gettrimesh.md +1 -0
- package/docs/server.modelregistry.getwidth.md +1 -0
- package/docs/server.modelregistry.md +1 -0
- package/docs/server.modelregistry.modelhasnode.md +1 -0
- package/docs/server.nonecollideroptions.md +1 -0
- package/docs/server.particleemitter._constructor_.md +1 -0
- package/docs/server.particleemitter.burst.md +1 -0
- package/docs/server.particleemitter.md +1 -0
- package/docs/server.particleemitter.setalphatest.md +1 -0
- package/docs/server.particleemitter.setattachedtoentity.md +1 -0
- package/docs/server.particleemitter.setattachedtoentitynodename.md +1 -0
- package/docs/server.particleemitter.setcolorend.md +1 -0
- package/docs/server.particleemitter.setcolorendvariance.md +1 -0
- package/docs/server.particleemitter.setcolorstart.md +1 -0
- package/docs/server.particleemitter.setcolorstartvariance.md +1 -0
- package/docs/server.particleemitter.setgravity.md +1 -0
- package/docs/server.particleemitter.setlifetime.md +1 -0
- package/docs/server.particleemitter.setlifetimevariance.md +1 -0
- package/docs/server.particleemitter.setmaxparticles.md +1 -0
- package/docs/server.particleemitter.setoffset.md +1 -0
- package/docs/server.particleemitter.setopacityend.md +1 -0
- package/docs/server.particleemitter.setopacityendvariance.md +1 -0
- package/docs/server.particleemitter.setopacitystart.md +1 -0
- package/docs/server.particleemitter.setopacitystartvariance.md +1 -0
- package/docs/server.particleemitter.setposition.md +1 -0
- package/docs/server.particleemitter.setpositionvariance.md +1 -0
- package/docs/server.particleemitter.setrate.md +1 -0
- package/docs/server.particleemitter.setratevariance.md +1 -0
- package/docs/server.particleemitter.setsizeend.md +1 -0
- package/docs/server.particleemitter.setsizeendvariance.md +1 -0
- package/docs/server.particleemitter.setsizestart.md +1 -0
- package/docs/server.particleemitter.setsizestartvariance.md +1 -0
- package/docs/server.particleemitter.settextureuri.md +1 -0
- package/docs/server.particleemitter.settransparent.md +1 -0
- package/docs/server.particleemitter.setvelocity.md +1 -0
- package/docs/server.particleemitter.setvelocityvariance.md +1 -0
- package/docs/server.particleemitter.spawn.md +1 -0
- package/docs/server.particleemitterevent.md +1 -0
- package/docs/server.particleemittereventpayloads.md +1 -0
- package/docs/server.particleemittermanager.getallentityattachedparticleemitters.md +1 -0
- package/docs/server.particleemittermanager.getallparticleemitters.md +1 -37
- package/docs/server.particleemittermanager.md +2 -1
- package/docs/server.particleemitteroptions.md +1 -0
- package/docs/server.pathfindingentitycontroller._constructor_.md +1 -0
- package/docs/server.pathfindingentitycontroller.md +1 -0
- package/docs/server.pathfindingentitycontroller.pathfind.md +1 -0
- package/docs/server.persistencemanager.getglobaldata.md +1 -0
- package/docs/server.persistencemanager.md +1 -0
- package/docs/server.persistencemanager.setglobaldata.md +1 -0
- package/docs/server.player.joinworld.md +1 -0
- package/docs/server.player.md +1 -0
- package/docs/server.player.setpersisteddata.md +1 -0
- package/docs/server.playercamera.lookatentity.md +1 -0
- package/docs/server.playercamera.lookatposition.md +1 -0
- package/docs/server.playercamera.md +1 -0
- package/docs/server.playercamera.setattachedtoentity.md +1 -0
- package/docs/server.playercamera.setattachedtoposition.md +1 -0
- package/docs/server.playercamera.setfilmoffset.md +1 -0
- package/docs/server.playercamera.setforwardoffset.md +1 -0
- package/docs/server.playercamera.setfov.md +1 -0
- package/docs/server.playercamera.setmode.md +1 -0
- package/docs/server.playercamera.setmodelhiddennodes.md +1 -0
- package/docs/server.playercamera.setmodelshownnodes.md +1 -0
- package/docs/server.playercamera.setoffset.md +1 -0
- package/docs/server.playercamera.setshoulderangle.md +1 -0
- package/docs/server.playercamera.settrackedentity.md +1 -0
- package/docs/server.playercamera.settrackedposition.md +1 -0
- package/docs/server.playercamera.setzoom.md +1 -0
- package/docs/server.playercameraevent.md +1 -0
- package/docs/server.playercameraeventpayloads.md +1 -0
- package/docs/server.playercameramode.md +1 -0
- package/docs/server.playerentity._constructor_.md +1 -0
- package/docs/server.playerentity.md +1 -0
- package/docs/server.playerevent.md +1 -0
- package/docs/server.playereventpayloads.md +1 -0
- package/docs/server.playermanager.getconnectedplayerbyusername.md +1 -0
- package/docs/server.playermanager.getconnectedplayersbyworld.md +1 -0
- package/docs/server.playermanager.md +1 -0
- package/docs/server.playermanagerevent.md +1 -0
- package/docs/server.playermanagereventpayloads.md +1 -0
- package/docs/server.playerui.load.md +1 -0
- package/docs/server.playerui.lockpointer.md +1 -0
- package/docs/server.playerui.md +1 -0
- package/docs/server.playerui.senddata.md +1 -0
- package/docs/server.playeruievent.md +1 -0
- package/docs/server.playeruieventpayloads.md +1 -0
- package/docs/server.quaternion._constructor_.md +1 -0
- package/docs/server.quaternion.copy.md +1 -0
- package/docs/server.quaternion.dot.md +1 -0
- package/docs/server.quaternion.equals.md +1 -0
- package/docs/server.quaternion.exactequals.md +1 -0
- package/docs/server.quaternion.fromeuler.md +1 -0
- package/docs/server.quaternion.fromquaternionlike.md +1 -0
- package/docs/server.quaternion.getangle.md +1 -0
- package/docs/server.quaternion.lerp.md +1 -0
- package/docs/server.quaternion.md +1 -0
- package/docs/server.quaternion.multiply.md +1 -0
- package/docs/server.quaternion.power.md +1 -0
- package/docs/server.quaternion.rotatex.md +1 -0
- package/docs/server.quaternion.rotatey.md +1 -0
- package/docs/server.quaternion.rotatez.md +1 -0
- package/docs/server.quaternion.scale.md +1 -0
- package/docs/server.quaternion.setaxisangle.md +1 -0
- package/docs/server.quaternion.slerp.md +1 -0
- package/docs/server.quaternion.transformvector.md +1 -0
- package/docs/server.quaternionlike.md +1 -0
- package/docs/server.rgbcolor.md +1 -0
- package/docs/server.rigidbody._constructor_.md +1 -0
- package/docs/server.rigidbody.addchildcollidertosimulation.md +1 -0
- package/docs/server.rigidbody.addforce.md +1 -0
- package/docs/server.rigidbody.addtorque.md +1 -0
- package/docs/server.rigidbody.addtosimulation.md +1 -0
- package/docs/server.rigidbody.applyimpulse.md +1 -0
- package/docs/server.rigidbody.applyimpulseatpoint.md +1 -0
- package/docs/server.rigidbody.applytorqueimpulse.md +1 -0
- package/docs/server.rigidbody.createandaddchildcollider.md +1 -0
- package/docs/server.rigidbody.createandaddchildcolliders.md +1 -0
- package/docs/server.rigidbody.getcollidersbytag.md +1 -0
- package/docs/server.rigidbody.md +1 -0
- package/docs/server.rigidbody.setadditionalmass.md +1 -0
- package/docs/server.rigidbody.setadditionalmassproperties.md +1 -0
- package/docs/server.rigidbody.setadditionalsolveriterations.md +1 -0
- package/docs/server.rigidbody.setangulardamping.md +1 -0
- package/docs/server.rigidbody.setangularvelocity.md +1 -0
- package/docs/server.rigidbody.setccdenabled.md +1 -0
- package/docs/server.rigidbody.setcollisiongroupsforsensorcolliders.md +1 -0
- package/docs/server.rigidbody.setcollisiongroupsforsolidcolliders.md +1 -0
- package/docs/server.rigidbody.setdominancegroup.md +1 -0
- package/docs/server.rigidbody.setenabled.md +1 -0
- package/docs/server.rigidbody.setenabledpositions.md +1 -0
- package/docs/server.rigidbody.setenabledrotations.md +1 -0
- package/docs/server.rigidbody.setgravityscale.md +1 -0
- package/docs/server.rigidbody.setlineardamping.md +1 -0
- package/docs/server.rigidbody.setlinearvelocity.md +1 -0
- package/docs/server.rigidbody.setnextkinematicposition.md +1 -0
- package/docs/server.rigidbody.setnextkinematicrotation.md +1 -0
- package/docs/server.rigidbody.setposition.md +1 -0
- package/docs/server.rigidbody.setrotation.md +1 -0
- package/docs/server.rigidbody.setsleeping.md +1 -0
- package/docs/server.rigidbody.setsoftccdprediction.md +1 -0
- package/docs/server.rigidbody.settype.md +1 -0
- package/docs/server.rigidbodytype.md +1 -0
- package/docs/server.roundcylindercollideroptions.md +1 -0
- package/docs/server.sceneui._constructor_.md +1 -0
- package/docs/server.sceneui.load.md +1 -0
- package/docs/server.sceneui.md +1 -0
- package/docs/server.sceneui.setattachedtoentity.md +1 -0
- package/docs/server.sceneui.setoffset.md +1 -0
- package/docs/server.sceneui.setposition.md +1 -0
- package/docs/server.sceneui.setstate.md +1 -0
- package/docs/server.sceneui.setviewdistance.md +1 -0
- package/docs/server.sceneuievent.md +1 -0
- package/docs/server.sceneuieventpayloads.md +1 -0
- package/docs/server.sceneuimanager.getallentityattachedsceneuis.md +1 -0
- package/docs/server.sceneuimanager.getallsceneuis.md +1 -37
- package/docs/server.sceneuimanager.getsceneuibyid.md +1 -0
- package/docs/server.sceneuimanager.md +2 -1
- package/docs/server.sceneuimanager.unloadentityattachedsceneuis.md +1 -0
- package/docs/server.sceneuioptions.md +1 -0
- package/docs/server.simpleentitycontroller._constructor_.md +1 -0
- package/docs/server.simpleentitycontroller.face.md +1 -0
- package/docs/server.simpleentitycontroller.jump.md +1 -0
- package/docs/server.simpleentitycontroller.md +1 -0
- package/docs/server.simpleentitycontroller.move.md +1 -0
- package/docs/server.simpleentitycontroller.spawn.md +1 -0
- package/docs/server.simulation.enabledebugraycasting.md +1 -0
- package/docs/server.simulation.enabledebugrendering.md +1 -0
- package/docs/server.simulation.getcontactmanifolds.md +1 -0
- package/docs/server.simulation.intersectionswithrawshape.md +1 -0
- package/docs/server.simulation.md +1 -0
- package/docs/server.simulation.raycast.md +1 -0
- package/docs/server.simulation.setgravity.md +1 -0
- package/docs/server.simulationevent.md +1 -0
- package/docs/server.simulationeventpayloads.md +1 -0
- package/docs/server.startserver.md +1 -0
- package/docs/server.telemetry.getprocessstats.md +1 -0
- package/docs/server.telemetry.initializesentry.md +1 -0
- package/docs/server.telemetry.md +1 -0
- package/docs/server.telemetry.startspan.md +1 -0
- package/docs/server.telemetryspanoperation.md +1 -14
- package/docs/server.trimeshcollideroptions.md +1 -0
- package/docs/server.vector2._constructor_.md +1 -0
- package/docs/server.vector2.add.md +1 -0
- package/docs/server.vector2.angle.md +1 -0
- package/docs/server.vector2.copy.md +1 -0
- package/docs/server.vector2.distance.md +1 -0
- package/docs/server.vector2.divide.md +1 -0
- package/docs/server.vector2.dot.md +1 -0
- package/docs/server.vector2.equals.md +1 -0
- package/docs/server.vector2.exactequals.md +1 -0
- package/docs/server.vector2.lerp.md +1 -0
- package/docs/server.vector2.max.md +1 -0
- package/docs/server.vector2.md +1 -0
- package/docs/server.vector2.min.md +1 -0
- package/docs/server.vector2.multiply.md +1 -0
- package/docs/server.vector2.randomize.md +1 -0
- package/docs/server.vector2.rotate.md +1 -0
- package/docs/server.vector2.scale.md +1 -0
- package/docs/server.vector2.scaleandadd.md +1 -0
- package/docs/server.vector2.subtract.md +1 -0
- package/docs/server.vector2.transformmatrix2.md +1 -0
- package/docs/server.vector2.transformmatrix3.md +1 -0
- package/docs/server.vector2.transformmatrix4.md +1 -0
- package/docs/server.vector2boolean.md +1 -0
- package/docs/server.vector2like.md +1 -0
- package/docs/server.vector3._constructor_.md +1 -0
- package/docs/server.vector3.add.md +1 -0
- package/docs/server.vector3.copy.md +1 -0
- package/docs/server.vector3.cross.md +1 -0
- package/docs/server.vector3.distance.md +1 -0
- package/docs/server.vector3.divide.md +1 -0
- package/docs/server.vector3.dot.md +1 -0
- package/docs/server.vector3.equals.md +1 -0
- package/docs/server.vector3.exactequals.md +1 -0
- package/docs/server.vector3.fromvector3like.md +1 -0
- package/docs/server.vector3.lerp.md +1 -0
- package/docs/server.vector3.max.md +1 -0
- package/docs/server.vector3.md +1 -0
- package/docs/server.vector3.min.md +1 -0
- package/docs/server.vector3.multiply.md +1 -0
- package/docs/server.vector3.randomize.md +1 -0
- package/docs/server.vector3.rotatex.md +1 -0
- package/docs/server.vector3.rotatey.md +1 -0
- package/docs/server.vector3.rotatez.md +1 -0
- package/docs/server.vector3.scale.md +1 -0
- package/docs/server.vector3.scaleandadd.md +1 -0
- package/docs/server.vector3.subtract.md +1 -0
- package/docs/server.vector3.transformmatrix3.md +1 -0
- package/docs/server.vector3.transformmatrix4.md +1 -0
- package/docs/server.vector3.transformquaternion.md +1 -0
- package/docs/server.vector3boolean.md +1 -0
- package/docs/server.vector3like.md +1 -0
- package/docs/server.voxelscollideroptions.md +1 -0
- package/docs/server.wedgecollideroptions.md +1 -0
- package/docs/server.world._constructor_.md +1 -0
- package/docs/server.world.loadmap.md +1 -0
- package/docs/server.world.md +1 -21
- package/docs/server.world.setambientlightcolor.md +1 -0
- package/docs/server.world.setambientlightintensity.md +1 -0
- package/docs/server.world.setdirectionallightcolor.md +1 -0
- package/docs/server.world.setdirectionallightintensity.md +1 -0
- package/docs/server.world.setdirectionallightposition.md +1 -0
- package/docs/server.world.setfogcolor.md +1 -0
- package/docs/server.world.setfogfar.md +1 -0
- package/docs/server.world.setfognear.md +1 -0
- package/docs/server.world.setskyboxintensity.md +1 -0
- package/docs/server.worldevent.md +1 -0
- package/docs/server.worldeventpayloads.md +1 -0
- package/docs/server.worldloop.md +1 -0
- package/docs/server.worldloopevent.md +1 -0
- package/docs/server.worldloopeventpayloads.md +1 -0
- package/docs/server.worldmanager.createworld.md +1 -0
- package/docs/server.worldmanager.getworld.md +1 -0
- package/docs/server.worldmanager.getworldsbytag.md +1 -0
- package/docs/server.worldmanager.md +1 -0
- package/docs/server.worldmanager.setdefaultworld.md +1 -0
- package/docs/server.worldmanagerevent.md +1 -0
- package/docs/server.worldmanagereventpayloads.md +1 -0
- package/docs/server.worldmap.md +1 -0
- package/docs/server.worldoptions.md +1 -0
- package/node-server.mjs +172 -172
- package/package.json +1 -1
- package/server.api.json +53 -1092
- package/server.d.ts +30 -181
- package/tsdoc-metadata.json +1 -1
- package/docs/server.array3number.md +0 -13
- package/docs/server.array4number.md +0 -13
- package/docs/server.blocktype.blocktyperegistry.md +0 -13
- package/docs/server.chunk.chunklattice.md +0 -13
- package/docs/server.chunklattice.world.md +0 -13
- package/docs/server.tickallocator.filter.md +0 -71
- package/docs/server.tickallocator.getarray.md +0 -71
- package/docs/server.tickallocator.getarray3number.md +0 -55
- package/docs/server.tickallocator.getarray4number.md +0 -55
- package/docs/server.tickallocator.getobject.md +0 -71
- package/docs/server.tickallocator.getset.md +0 -71
- package/docs/server.tickallocator.map.md +0 -71
- package/docs/server.tickallocator.md +0 -162
- package/docs/server.tickallocator.reset.md +0 -17
- package/docs/server.world.tickallocator.md +0 -13
package/server.d.ts
CHANGED
|
@@ -13,12 +13,6 @@ import type { Socket } from 'net';
|
|
|
13
13
|
import type { types } from 'mediasoup';
|
|
14
14
|
import { WebSocket as WebSocket_2 } from 'ws';
|
|
15
15
|
|
|
16
|
-
/** A 3-element number array. @public */
|
|
17
|
-
export declare type Array3Number = [number, number, number];
|
|
18
|
-
|
|
19
|
-
/** A 4-element number array. @public */
|
|
20
|
-
export declare type Array4Number = [number, number, number, number];
|
|
21
|
-
|
|
22
16
|
/**
|
|
23
17
|
* Represents a audio playback in a world.
|
|
24
18
|
*
|
|
@@ -279,40 +273,30 @@ export declare class AudioManager {
|
|
|
279
273
|
/**
|
|
280
274
|
* Retrieves all loaded audio instances for the world.
|
|
281
275
|
*
|
|
282
|
-
* @param tickAllocated - If true, uses the tick allocator and frees
|
|
283
|
-
* the allocated array at the end of the current tick. false by default.
|
|
284
|
-
*
|
|
285
276
|
* @returns An array of audio instances.
|
|
286
277
|
*/
|
|
287
|
-
getAllAudios(
|
|
278
|
+
getAllAudios(): Audio[];
|
|
288
279
|
/**
|
|
289
280
|
* Retrieves all loaded audio instances attached to a specific entity.
|
|
290
281
|
*
|
|
291
282
|
* @param entity - The entity to get attached audio instances for.
|
|
292
|
-
* @param tickAllocated - If true, uses the tick allocator and frees
|
|
293
283
|
* the allocated array at the end of the current tick. false by default.
|
|
294
284
|
|
|
295
285
|
* @returns An array of audio instances.
|
|
296
286
|
*/
|
|
297
|
-
getAllEntityAttachedAudios(entity: Entity
|
|
287
|
+
getAllEntityAttachedAudios(entity: Entity): Audio[];
|
|
298
288
|
/**
|
|
299
289
|
* Retrieves all looped audio instances for the world.
|
|
300
290
|
*
|
|
301
|
-
* @param tickAllocated - If true, uses the tick allocator and frees
|
|
302
|
-
* the allocated array at the end of the current tick. false by default.
|
|
303
|
-
*
|
|
304
291
|
* @returns An array of audio instances.
|
|
305
292
|
*/
|
|
306
|
-
getAllLoopedAudios(
|
|
293
|
+
getAllLoopedAudios(): Audio[];
|
|
307
294
|
/**
|
|
308
295
|
* Retrieves all oneshot (non-looped) audio instances for the world.
|
|
309
296
|
*
|
|
310
|
-
* @param tickAllocated - If true, uses the tick allocator and frees
|
|
311
|
-
* the allocated array at the end of the current tick. false by default.
|
|
312
|
-
*
|
|
313
297
|
* @returns An array of audio instances.
|
|
314
298
|
*/
|
|
315
|
-
getAllOneshotAudios(
|
|
299
|
+
getAllOneshotAudios(): Audio[];
|
|
316
300
|
|
|
317
301
|
/**
|
|
318
302
|
* Unregisters and stops an audio instance from the audio manager.
|
|
@@ -622,17 +606,14 @@ export declare class BlockType extends EventRouter implements protocol.Serializa
|
|
|
622
606
|
|
|
623
607
|
|
|
624
608
|
|
|
625
|
-
|
|
626
609
|
/**
|
|
627
610
|
* Creates a new block type instance.
|
|
628
611
|
* @param world - The world the block type is for.
|
|
629
612
|
* @param options - The options for the block type.
|
|
630
613
|
*/
|
|
631
|
-
constructor(
|
|
614
|
+
constructor(options?: BlockTypeOptions);
|
|
632
615
|
/** The unique identifier for the block type. */
|
|
633
616
|
get id(): number;
|
|
634
|
-
/** The block type registry that the block type belongs to. */
|
|
635
|
-
get blockTypeRegistry(): BlockTypeRegistry;
|
|
636
617
|
/** The collider options for the block type. */
|
|
637
618
|
get colliderOptions(): VoxelsColliderOptions;
|
|
638
619
|
/** The half extents size of the block type. */
|
|
@@ -724,15 +705,9 @@ export declare class BlockTypeRegistry extends EventRouter implements protocol.S
|
|
|
724
705
|
get world(): World;
|
|
725
706
|
/**
|
|
726
707
|
* Get all registered block types.
|
|
727
|
-
*
|
|
728
|
-
* @param tickAllocated - Whether to use the tick allocator to allocate the
|
|
729
|
-
* returned array of BlockType instances. The allocated array will be collected
|
|
730
|
-
* and released at the end of the current tick if true. Only use this if
|
|
731
|
-
* you know what you're doing.
|
|
732
|
-
*
|
|
733
708
|
* @returns An array of all registered block types.
|
|
734
709
|
*/
|
|
735
|
-
getAllBlockTypes(
|
|
710
|
+
getAllBlockTypes(): BlockType[];
|
|
736
711
|
/**
|
|
737
712
|
* Get a registered block type by its id.
|
|
738
713
|
* @param id - The id of the block type to get.
|
|
@@ -890,15 +865,12 @@ export declare class ChatManager extends EventRouter {
|
|
|
890
865
|
export declare class Chunk implements protocol.Serializable {
|
|
891
866
|
|
|
892
867
|
|
|
893
|
-
|
|
894
868
|
/**
|
|
895
869
|
* Creates a new chunk instance.
|
|
896
870
|
*/
|
|
897
|
-
constructor(
|
|
871
|
+
constructor(originCoordinate: Vector3Like);
|
|
898
872
|
/** The blocks in the chunk as a flat Uint8Array[4096], each index as 0 or a block type id. */
|
|
899
873
|
get blocks(): Readonly<Uint8Array>;
|
|
900
|
-
/** The chunk lattice that the chunk belongs to. */
|
|
901
|
-
get chunkLattice(): ChunkLattice;
|
|
902
874
|
/** The origin coordinate of the chunk. */
|
|
903
875
|
get originCoordinate(): Vector3Like;
|
|
904
876
|
/**
|
|
@@ -959,8 +931,6 @@ export declare class ChunkLattice extends EventRouter {
|
|
|
959
931
|
constructor(world: World);
|
|
960
932
|
/** The number of chunks in the lattice. */
|
|
961
933
|
get chunkCount(): number;
|
|
962
|
-
/** The world that the chunk lattice belongs to. */
|
|
963
|
-
get world(): World;
|
|
964
934
|
/**
|
|
965
935
|
* Removes and clears all chunks and their blocks from the lattice.
|
|
966
936
|
*/
|
|
@@ -999,15 +969,9 @@ export declare class ChunkLattice extends EventRouter {
|
|
|
999
969
|
getOrCreateChunk(globalCoordinate: Vector3Like): Chunk;
|
|
1000
970
|
/**
|
|
1001
971
|
* Get all chunks in the lattice.
|
|
1002
|
-
*
|
|
1003
|
-
* @param tickAllocated - Whether to use the tick allocator to allocate the
|
|
1004
|
-
* returned array of Chunk instances. The allocated array will be collected
|
|
1005
|
-
* and released at the end of the current tick if true. Only use this if
|
|
1006
|
-
* you know what you're doing.
|
|
1007
|
-
*
|
|
1008
972
|
* @returns An array of all chunks in the lattice.
|
|
1009
973
|
*/
|
|
1010
|
-
getAllChunks(
|
|
974
|
+
getAllChunks(): Chunk[];
|
|
1011
975
|
/**
|
|
1012
976
|
* Check if a block exists at a specific global coordinate.
|
|
1013
977
|
* @param globalCoordinate - The global coordinate of the block to check.
|
|
@@ -2153,15 +2117,9 @@ export declare class EntityManager {
|
|
|
2153
2117
|
|
|
2154
2118
|
/**
|
|
2155
2119
|
* Gets all spawned entities in the world.
|
|
2156
|
-
*
|
|
2157
|
-
* @param tickAllocated - Whether to use the tick allocator to allocate the
|
|
2158
|
-
* returned array of Entity instances. The allocated array will be collected
|
|
2159
|
-
* and released at the end of the current tick if true. Only use this if
|
|
2160
|
-
* you know what you're doing.
|
|
2161
|
-
*
|
|
2162
2120
|
* @returns All spawned entities in the world.
|
|
2163
2121
|
*/
|
|
2164
|
-
getAllEntities(
|
|
2122
|
+
getAllEntities(): Entity[];
|
|
2165
2123
|
/**
|
|
2166
2124
|
* Gets all spawned player entities in the world.
|
|
2167
2125
|
* @returns All spawned player entities in the world.
|
|
@@ -2811,14 +2769,9 @@ export declare class LightManager {
|
|
|
2811
2769
|
/**
|
|
2812
2770
|
* Retrieves all spawned Light instances for the world.
|
|
2813
2771
|
*
|
|
2814
|
-
* @param tickAllocated - Whether to use the tick allocator to allocate the
|
|
2815
|
-
* returned array of Light instances. The allocated array will be collected
|
|
2816
|
-
* and released at the end of the current tick if true. Only use this if
|
|
2817
|
-
* you know what you're doing.
|
|
2818
|
-
*
|
|
2819
2772
|
* @returns An array of Light instances.
|
|
2820
2773
|
*/
|
|
2821
|
-
getAllLights(
|
|
2774
|
+
getAllLights(): Light[];
|
|
2822
2775
|
/**
|
|
2823
2776
|
* Retrieves all spawned Light instances attached to a specific entity.
|
|
2824
2777
|
*
|
|
@@ -4164,14 +4117,9 @@ export declare class ParticleEmitterManager {
|
|
|
4164
4117
|
/**
|
|
4165
4118
|
* Retrieves all spawned ParticleEmitter instances for the world.
|
|
4166
4119
|
*
|
|
4167
|
-
* @param tickAllocated - Whether to use the tick allocator to allocate the
|
|
4168
|
-
* returned array of ParticleEmitter instances. The allocated array will be collected
|
|
4169
|
-
* and released at the end of the current tick if true. Only use this if
|
|
4170
|
-
* you know what you're doing.
|
|
4171
|
-
*
|
|
4172
4120
|
* @returns An array of ParticleEmitter instances.
|
|
4173
4121
|
*/
|
|
4174
|
-
getAllParticleEmitters(
|
|
4122
|
+
getAllParticleEmitters(): ParticleEmitter[];
|
|
4175
4123
|
/**
|
|
4176
4124
|
* Retrieves all spawned ParticleEmitter instances attached to a specific entity.
|
|
4177
4125
|
*
|
|
@@ -5802,14 +5750,9 @@ export declare class SceneUIManager {
|
|
|
5802
5750
|
/**
|
|
5803
5751
|
* Retrieves all loaded SceneUI instances for the world.
|
|
5804
5752
|
*
|
|
5805
|
-
* @param tickAllocated - Whether to use the tick allocator to allocate the
|
|
5806
|
-
* returned array of SceneUI instances. The allocated array will be collected
|
|
5807
|
-
* and released at the end of the current tick if true. Only use this if
|
|
5808
|
-
* you know what you're doing.
|
|
5809
|
-
*
|
|
5810
5753
|
* @returns An array of SceneUI instances.
|
|
5811
5754
|
*/
|
|
5812
|
-
getAllSceneUIs(
|
|
5755
|
+
getAllSceneUIs(): SceneUI[];
|
|
5813
5756
|
/**
|
|
5814
5757
|
* Retrieves all loaded SceneUI instances attached to a specific entity.
|
|
5815
5758
|
*
|
|
@@ -6255,7 +6198,6 @@ export declare enum TelemetrySpanOperation {
|
|
|
6255
6198
|
NETWORK_SYNCHRONIZE_CLEANUP = "network_synchronize_cleanup",
|
|
6256
6199
|
PHYSICS_CLEANUP = "physics_cleanup",
|
|
6257
6200
|
PHYSICS_STEP = "physics_step",
|
|
6258
|
-
RELEASE_TICK_ALLOCATION = "release_tick_allocation",
|
|
6259
6201
|
SEND_ALL_PACKETS = "send_all_packets",
|
|
6260
6202
|
SEND_PACKETS = "send_packets",
|
|
6261
6203
|
SERIALIZE_FREE_BUFFERS = "serialize_free_buffers",
|
|
@@ -6274,96 +6216,6 @@ export declare type TelemetrySpanOptions = {
|
|
|
6274
6216
|
attributes?: Record<string, string | number>;
|
|
6275
6217
|
};
|
|
6276
6218
|
|
|
6277
|
-
/**
|
|
6278
|
-
* High-performance tick-scoped allocator for temporary objects, arrays, and buffers.
|
|
6279
|
-
* All allocations are automatically bulk-released when reset() is called.
|
|
6280
|
-
*
|
|
6281
|
-
* @remarks
|
|
6282
|
-
* TickAllocator maintains separate pools for different data types and tracks all
|
|
6283
|
-
* allocations made during a tick cycle. Objects are reused across ticks to eliminate
|
|
6284
|
-
* garbage collection overhead in hot paths like network synchronization.
|
|
6285
|
-
*
|
|
6286
|
-
* @example
|
|
6287
|
-
* ```typescript
|
|
6288
|
-
* // Allocate during tick
|
|
6289
|
-
* const position = tickAllocator.getArray3Number();
|
|
6290
|
-
* const rotation = tickAllocator.getArray4Number();
|
|
6291
|
-
* const data = tickAllocator.getObject<EntitySchema>();
|
|
6292
|
-
*
|
|
6293
|
-
* // At end of tick - bulk release everything
|
|
6294
|
-
* tickAllocator.reset();
|
|
6295
|
-
* ```
|
|
6296
|
-
*
|
|
6297
|
-
* @public
|
|
6298
|
-
*/
|
|
6299
|
-
export declare class TickAllocator {
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
/**
|
|
6311
|
-
* Filters an array using a callback function.
|
|
6312
|
-
* @typeParam T - The type of the array.
|
|
6313
|
-
* @param array - The array to filter.
|
|
6314
|
-
* @param callback - The callback function to filter the array.
|
|
6315
|
-
* @returns A new array with the filtered values.
|
|
6316
|
-
*/
|
|
6317
|
-
filter<T>(array: T[], callback: (value: T, index: number, array: T[]) => boolean): T[];
|
|
6318
|
-
/**
|
|
6319
|
-
* Gets a generic array from the pool.
|
|
6320
|
-
* Array is reset to empty state and ready for use.
|
|
6321
|
-
* @typeParam T - The array type.
|
|
6322
|
-
* @returns A reusable array.
|
|
6323
|
-
*/
|
|
6324
|
-
getArray<T extends unknown[] = unknown[]>(copyFromA?: Iterable<unknown>, copyFromB?: Iterable<unknown>): T;
|
|
6325
|
-
/**
|
|
6326
|
-
* Gets a 3-element number array from the pool.
|
|
6327
|
-
* Array is reset to [0, 0, 0] and ready for use.
|
|
6328
|
-
* @returns A reusable 3-element array.
|
|
6329
|
-
*/
|
|
6330
|
-
getArray3Number(copyFrom?: Array3Number | Set<number>): Array3Number;
|
|
6331
|
-
/**
|
|
6332
|
-
* Gets a 4-element number array from the pool.
|
|
6333
|
-
* Array is reset to [0, 0, 0, 0] and ready for use.
|
|
6334
|
-
* @returns A reusable 4-element array.
|
|
6335
|
-
*/
|
|
6336
|
-
getArray4Number(copyFrom?: Array4Number | Set<number>): Array4Number;
|
|
6337
|
-
/**
|
|
6338
|
-
* Gets a plain object from the pool.
|
|
6339
|
-
* Object is reset to empty state and ready for use.
|
|
6340
|
-
* @typeParam T - The type interface for the object.
|
|
6341
|
-
* @returns A reusable plain object.
|
|
6342
|
-
*/
|
|
6343
|
-
getObject<T extends Record<string, unknown> = Record<string, unknown>>(copyFromA?: T, copyFromB?: T): T;
|
|
6344
|
-
/**
|
|
6345
|
-
* Gets a set from the pool.
|
|
6346
|
-
* Set is reset to empty state and ready for use.
|
|
6347
|
-
* @typeParam T - The type of the set.
|
|
6348
|
-
* @returns A reusable set.
|
|
6349
|
-
*/
|
|
6350
|
-
getSet<T>(copyFromA?: Set<T> | T[], copyFromB?: Set<T> | T[]): Set<T>;
|
|
6351
|
-
/**
|
|
6352
|
-
* Maps an array to a new array using a callback function.
|
|
6353
|
-
* @typeParam T - The type of the array.
|
|
6354
|
-
* @typeParam U - The type of the resulting array.
|
|
6355
|
-
* @param array - The array to map.
|
|
6356
|
-
* @param callback - The callback function to map the array.
|
|
6357
|
-
* @returns A new array with the mapped values.
|
|
6358
|
-
*/
|
|
6359
|
-
map<T, U>(array: T[], callback: (value: T, index: number, array: T[]) => U): U[];
|
|
6360
|
-
/**
|
|
6361
|
-
* Releases all allocated objects back to their respective pools.
|
|
6362
|
-
* This is intended to be called at the end of a tick.
|
|
6363
|
-
*/
|
|
6364
|
-
reset(): void;
|
|
6365
|
-
}
|
|
6366
|
-
|
|
6367
6219
|
/** The options for a trimesh collider. @public */
|
|
6368
6220
|
export declare interface TrimeshColliderOptions extends BaseColliderOptions {
|
|
6369
6221
|
shape: ColliderShape.TRIMESH;
|
|
@@ -6978,7 +6830,6 @@ export declare class World extends EventRouter implements protocol.Serializable
|
|
|
6978
6830
|
|
|
6979
6831
|
|
|
6980
6832
|
|
|
6981
|
-
|
|
6982
6833
|
|
|
6983
6834
|
|
|
6984
6835
|
/**
|
|
@@ -6991,32 +6842,40 @@ export declare class World extends EventRouter implements protocol.Serializable
|
|
|
6991
6842
|
get ambientLightColor(): RgbColor;
|
|
6992
6843
|
/** The intensity of the ambient light. */
|
|
6993
6844
|
get ambientLightIntensity(): number;
|
|
6994
|
-
/** The block type registry for the world. */
|
|
6995
|
-
get blockTypeRegistry(): BlockTypeRegistry;
|
|
6996
|
-
/** The chat manager for the world. */
|
|
6997
|
-
get chatManager(): ChatManager;
|
|
6998
|
-
/** The chunk lattice for the world. */
|
|
6999
|
-
get chunkLattice(): ChunkLattice;
|
|
7000
6845
|
/** The color of the directional light. */
|
|
7001
6846
|
get directionalLightColor(): RgbColor;
|
|
7002
6847
|
/** The intensity of the directional light. */
|
|
7003
6848
|
get directionalLightIntensity(): number;
|
|
7004
6849
|
/** The position the directional light originates from. */
|
|
7005
6850
|
get directionalLightPosition(): Vector3Like;
|
|
7006
|
-
/** The entity manager for the world. */
|
|
7007
|
-
get entityManager(): EntityManager;
|
|
7008
6851
|
/** The color of the fog, if not explicitly set, defaults to ambient light color. */
|
|
7009
6852
|
get fogColor(): RgbColor | undefined;
|
|
7010
6853
|
/** The maximum distance from the camera at which fog stops being applied. */
|
|
7011
6854
|
get fogFar(): number;
|
|
7012
6855
|
/** The minimum distance from the camera to start applying fog. */
|
|
7013
6856
|
get fogNear(): number;
|
|
6857
|
+
/** The name of the world. */
|
|
6858
|
+
get name(): string;
|
|
6859
|
+
/** The intensity of the world's skybox brightness. */
|
|
6860
|
+
get skyboxIntensity(): number;
|
|
6861
|
+
/** The URI of the skybox cubemap for the world. */
|
|
6862
|
+
get skyboxUri(): string;
|
|
6863
|
+
/** The audio manager for the world. */
|
|
6864
|
+
get audioManager(): AudioManager;
|
|
6865
|
+
/** An arbitrary identifier tag of the world. Useful for your own logic. */
|
|
6866
|
+
get tag(): string | undefined;
|
|
6867
|
+
/** The block type registry for the world. */
|
|
6868
|
+
get blockTypeRegistry(): BlockTypeRegistry;
|
|
6869
|
+
/** The chat manager for the world. */
|
|
6870
|
+
get chatManager(): ChatManager;
|
|
6871
|
+
/** The chunk lattice for the world. */
|
|
6872
|
+
get chunkLattice(): ChunkLattice;
|
|
6873
|
+
/** The entity manager for the world. */
|
|
6874
|
+
get entityManager(): EntityManager;
|
|
7014
6875
|
/** The light manager for the world. */
|
|
7015
6876
|
get lightManager(): LightManager;
|
|
7016
6877
|
/** The world loop for the world. */
|
|
7017
6878
|
get loop(): WorldLoop;
|
|
7018
|
-
/** The name of the world. */
|
|
7019
|
-
get name(): string;
|
|
7020
6879
|
|
|
7021
6880
|
/** The particle emitter manager for the world. */
|
|
7022
6881
|
get particleEmitterManager(): ParticleEmitterManager;
|
|
@@ -7024,16 +6883,6 @@ export declare class World extends EventRouter implements protocol.Serializable
|
|
|
7024
6883
|
get sceneUIManager(): SceneUIManager;
|
|
7025
6884
|
/** The simulation for the world. */
|
|
7026
6885
|
get simulation(): Simulation;
|
|
7027
|
-
/** The intensity of the world's skybox brightness. */
|
|
7028
|
-
get skyboxIntensity(): number;
|
|
7029
|
-
/** The URI of the skybox cubemap for the world. */
|
|
7030
|
-
get skyboxUri(): string;
|
|
7031
|
-
/** The audio manager for the world. */
|
|
7032
|
-
get audioManager(): AudioManager;
|
|
7033
|
-
/** An arbitrary identifier tag of the world. Useful for your own logic. */
|
|
7034
|
-
get tag(): string | undefined;
|
|
7035
|
-
/** The tick allocator for the world. */
|
|
7036
|
-
get tickAllocator(): TickAllocator;
|
|
7037
6886
|
/**
|
|
7038
6887
|
* Loads a map into the world, clearing any prior map.
|
|
7039
6888
|
* @param map - The map to load.
|
package/tsdoc-metadata.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [Array3Number](./server.array3number.md)
|
|
4
|
-
|
|
5
|
-
## Array3Number type
|
|
6
|
-
|
|
7
|
-
A 3-element number array.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type Array3Number = [number, number, number];
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [Array4Number](./server.array4number.md)
|
|
4
|
-
|
|
5
|
-
## Array4Number type
|
|
6
|
-
|
|
7
|
-
A 4-element number array.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type Array4Number = [number, number, number, number];
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [BlockType](./server.blocktype.md) > [blockTypeRegistry](./server.blocktype.blocktyperegistry.md)
|
|
4
|
-
|
|
5
|
-
## BlockType.blockTypeRegistry property
|
|
6
|
-
|
|
7
|
-
The block type registry that the block type belongs to.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
get blockTypeRegistry(): BlockTypeRegistry;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [Chunk](./server.chunk.md) > [chunkLattice](./server.chunk.chunklattice.md)
|
|
4
|
-
|
|
5
|
-
## Chunk.chunkLattice property
|
|
6
|
-
|
|
7
|
-
The chunk lattice that the chunk belongs to.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
get chunkLattice(): ChunkLattice;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [ChunkLattice](./server.chunklattice.md) > [world](./server.chunklattice.world.md)
|
|
4
|
-
|
|
5
|
-
## ChunkLattice.world property
|
|
6
|
-
|
|
7
|
-
The world that the chunk lattice belongs to.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
get world(): World;
|
|
13
|
-
```
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [TickAllocator](./server.tickallocator.md) > [filter](./server.tickallocator.filter.md)
|
|
4
|
-
|
|
5
|
-
## TickAllocator.filter() method
|
|
6
|
-
|
|
7
|
-
Filters an array using a callback function.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
filter<T>(array: T[], callback: (value: T, index: number, array: T[]) => boolean): T[];
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
array
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
T\[\]
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The array to filter.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
callback
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
(value: T, index: number, array: T\[\]) => boolean
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
The callback function to filter the array.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
**Returns:**
|
|
67
|
-
|
|
68
|
-
T\[\]
|
|
69
|
-
|
|
70
|
-
A new array with the filtered values.
|
|
71
|
-
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [TickAllocator](./server.tickallocator.md) > [getArray](./server.tickallocator.getarray.md)
|
|
4
|
-
|
|
5
|
-
## TickAllocator.getArray() method
|
|
6
|
-
|
|
7
|
-
Gets a generic array from the pool. Array is reset to empty state and ready for use.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
getArray<T extends unknown[] = unknown[]>(copyFromA?: Iterable<unknown>, copyFromB?: Iterable<unknown>): T;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
copyFromA
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
Iterable<unknown>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
_(Optional)_
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
copyFromB
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
Iterable<unknown>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
_(Optional)_
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
**Returns:**
|
|
67
|
-
|
|
68
|
-
T
|
|
69
|
-
|
|
70
|
-
A reusable array.
|
|
71
|
-
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [TickAllocator](./server.tickallocator.md) > [getArray3Number](./server.tickallocator.getarray3number.md)
|
|
4
|
-
|
|
5
|
-
## TickAllocator.getArray3Number() method
|
|
6
|
-
|
|
7
|
-
Gets a 3-element number array from the pool. Array is reset to \[0, 0, 0\] and ready for use.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
getArray3Number(copyFrom?: Array3Number | Set<number>): Array3Number;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
copyFrom
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
[Array3Number](./server.array3number.md) \| Set<number>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
_(Optional)_
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
**Returns:**
|
|
51
|
-
|
|
52
|
-
[Array3Number](./server.array3number.md)
|
|
53
|
-
|
|
54
|
-
A reusable 3-element array.
|
|
55
|
-
|