hytopia 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/scripts.js +1 -0
- package/docs/server.blocktype.md +2 -2
- package/docs/server.blocktype.onentitycollision.md +1 -1
- package/docs/server.blocktype.onentitycontactforce.md +1 -1
- package/docs/server.defaultcharactercontroller.canjump.md +1 -1
- package/docs/server.defaultcharactercontroller.canrun.md +1 -1
- package/docs/server.defaultcharactercontroller.canwalk.md +1 -1
- package/docs/server.defaultcharactercontroller.md +3 -3
- package/docs/server.entity.createcustomcharactercontroller.md +2 -2
- package/docs/server.entity.md +9 -9
- package/docs/server.entity.onblockcollision.md +1 -1
- package/docs/server.entity.onblockcontactforce.md +1 -1
- package/docs/server.entity.ondespawn.md +1 -1
- package/docs/server.entity.onentitycollision.md +1 -1
- package/docs/server.entity.onentitycontactforce.md +1 -1
- package/docs/server.entity.onspawn.md +1 -1
- package/docs/server.entity.ontick.md +1 -1
- package/docs/server.entityoptions.createcustomcharactercontroller.md +13 -0
- package/docs/server.entityoptions.md +19 -0
- package/docs/server.hytopia.blocktype.md +2 -2
- package/docs/server.hytopia.blocktype.onentitycollision.md +1 -1
- package/docs/server.hytopia.blocktype.onentitycontactforce.md +1 -1
- package/docs/server.hytopia.defaultcharactercontroller.canjump.md +1 -1
- package/docs/server.hytopia.defaultcharactercontroller.canrun.md +1 -1
- package/docs/server.hytopia.defaultcharactercontroller.canwalk.md +1 -1
- package/docs/server.hytopia.defaultcharactercontroller.md +3 -3
- package/docs/server.hytopia.entity.createcustomcharactercontroller.md +2 -2
- package/docs/server.hytopia.entity.md +9 -9
- package/docs/server.hytopia.entity.onblockcollision.md +1 -1
- package/docs/server.hytopia.entity.onblockcontactforce.md +1 -1
- package/docs/server.hytopia.entity.ondespawn.md +1 -1
- package/docs/server.hytopia.entity.onentitycollision.md +1 -1
- package/docs/server.hytopia.entity.onentitycontactforce.md +1 -1
- package/docs/server.hytopia.entity.onspawn.md +1 -1
- package/docs/server.hytopia.entity.ontick.md +1 -1
- package/docs/server.hytopia.entityoptions.createcustomcharactercontroller.md +13 -0
- package/docs/server.hytopia.entityoptions.md +19 -0
- package/docs/server.hytopia.moveoptions.md +5 -0
- package/docs/server.hytopia.simplecharactercontroller.md +1 -1
- package/docs/server.moveoptions.md +5 -0
- package/docs/server.simplecharactercontroller.md +1 -1
- package/examples/entity-spawn/index.ts +1 -1
- package/examples/payload-game/index.ts +46 -104
- package/package.json +1 -1
- package/server.api.json +142 -60
- package/server.d.ts +51 -33
- package/server.js +25 -25
- package/tsconfig.json +4 -1
- package/examples/character-controller/tsconfig.json +0 -27
- package/examples/entity-spawn/tsconfig.json +0 -27
- package/examples/payload-game/tsconfig.json +0 -27
package/server.api.json
CHANGED
@@ -3227,7 +3227,7 @@
|
|
3227
3227
|
{
|
3228
3228
|
"kind": "Property",
|
3229
3229
|
"canonicalReference": "server!BlockType#onEntityCollision:member",
|
3230
|
-
"docComment": "/**\n * A callback function that is invoked when an entity collides with blocks of this type.\n *\n * @param entity - The entity that collided with the block.\n *\n * @param started - Whether the collision started.\n */\n",
|
3230
|
+
"docComment": "/**\n * A callback function that is invoked when an entity collides with blocks of this type.\n *\n * @param blockType - The block type the collision is for.\n *\n * @param entity - The entity that collided with the block type.\n *\n * @param started - Whether the collision started.\n */\n",
|
3231
3231
|
"excerptTokens": [
|
3232
3232
|
{
|
3233
3233
|
"kind": "Content",
|
@@ -3235,7 +3235,7 @@
|
|
3235
3235
|
},
|
3236
3236
|
{
|
3237
3237
|
"kind": "Content",
|
3238
|
-
"text": "(
|
3238
|
+
"text": "(blockType: "
|
3239
3239
|
},
|
3240
3240
|
{
|
3241
3241
|
"kind": "Reference",
|
@@ -3275,7 +3275,7 @@
|
|
3275
3275
|
{
|
3276
3276
|
"kind": "Property",
|
3277
3277
|
"canonicalReference": "server!BlockType#onEntityContactForce:member",
|
3278
|
-
"docComment": "/**\n * A callback function that is invoked when an entity contacts a block of this type.\n *\n * @param entity - The entity that contacted the block.\n *\n * @param contactForceData - The contact force data.\n */\n",
|
3278
|
+
"docComment": "/**\n * A callback function that is invoked when an entity contacts a block of this type.\n *\n * @param blockType - The block type the contact is for.\n *\n * @param entity - The entity that contacted the block type.\n *\n * @param contactForceData - The contact force data.\n */\n",
|
3279
3279
|
"excerptTokens": [
|
3280
3280
|
{
|
3281
3281
|
"kind": "Content",
|
@@ -3283,7 +3283,7 @@
|
|
3283
3283
|
},
|
3284
3284
|
{
|
3285
3285
|
"kind": "Content",
|
3286
|
-
"text": "(
|
3286
|
+
"text": "(blockType: "
|
3287
3287
|
},
|
3288
3288
|
{
|
3289
3289
|
"kind": "Reference",
|
@@ -7919,7 +7919,7 @@
|
|
7919
7919
|
{
|
7920
7920
|
"kind": "Property",
|
7921
7921
|
"canonicalReference": "server!DefaultCharacterController#canJump:member",
|
7922
|
-
"docComment": "/**\n * A function allowing custom logic to determine if the entity can jump.\n *\n * @param
|
7922
|
+
"docComment": "/**\n * A function allowing custom logic to determine if the entity can jump.\n *\n * @param defaultCharacterController - The character controller instance.\n *\n * @returns Whether the entity of the character controller can jump.\n */\n",
|
7923
7923
|
"excerptTokens": [
|
7924
7924
|
{
|
7925
7925
|
"kind": "Content",
|
@@ -7927,7 +7927,7 @@
|
|
7927
7927
|
},
|
7928
7928
|
{
|
7929
7929
|
"kind": "Content",
|
7930
|
-
"text": "(
|
7930
|
+
"text": "(defaultCharacterController: "
|
7931
7931
|
},
|
7932
7932
|
{
|
7933
7933
|
"kind": "Reference",
|
@@ -7958,7 +7958,7 @@
|
|
7958
7958
|
{
|
7959
7959
|
"kind": "Property",
|
7960
7960
|
"canonicalReference": "server!DefaultCharacterController#canRun:member",
|
7961
|
-
"docComment": "/**\n * A function allowing custom logic to determine if the entity can run.\n *\n * @param
|
7961
|
+
"docComment": "/**\n * A function allowing custom logic to determine if the entity can run.\n *\n * @param defaultCharacterController - The character controller instance.\n *\n * @returns Whether the entity of the character controller can run.\n */\n",
|
7962
7962
|
"excerptTokens": [
|
7963
7963
|
{
|
7964
7964
|
"kind": "Content",
|
@@ -7966,7 +7966,7 @@
|
|
7966
7966
|
},
|
7967
7967
|
{
|
7968
7968
|
"kind": "Content",
|
7969
|
-
"text": "(
|
7969
|
+
"text": "(defaultCharacterController: "
|
7970
7970
|
},
|
7971
7971
|
{
|
7972
7972
|
"kind": "Reference",
|
@@ -7997,7 +7997,7 @@
|
|
7997
7997
|
{
|
7998
7998
|
"kind": "Property",
|
7999
7999
|
"canonicalReference": "server!DefaultCharacterController#canWalk:member",
|
8000
|
-
"docComment": "/**\n * A function allowing custom logic to determine if the entity can walk.\n *\n * @param
|
8000
|
+
"docComment": "/**\n * A function allowing custom logic to determine if the entity can walk.\n *\n * @param defaultCharacterController - The character controller instance.\n *\n * @returns Whether the entity of the character controller can walk.\n */\n",
|
8001
8001
|
"excerptTokens": [
|
8002
8002
|
{
|
8003
8003
|
"kind": "Content",
|
@@ -8005,7 +8005,7 @@
|
|
8005
8005
|
},
|
8006
8006
|
{
|
8007
8007
|
"kind": "Content",
|
8008
|
-
"text": "(
|
8008
|
+
"text": "(defaultCharacterController: "
|
8009
8009
|
},
|
8010
8010
|
{
|
8011
8011
|
"kind": "Reference",
|
@@ -8628,7 +8628,7 @@
|
|
8628
8628
|
{
|
8629
8629
|
"kind": "Property",
|
8630
8630
|
"canonicalReference": "server!Entity#createCustomCharacterController:member",
|
8631
|
-
"docComment": "/**\n * A function that creates a custom character controller for the entity.\n *\n * @param
|
8631
|
+
"docComment": "/**\n * A function that creates a custom character controller for the entity when it spawns.\n *\n * @param entity - The Entity instance the character controller is created for.\n *\n * @returns A character controller that extends {@link BaseCharacterController}.\n */\n",
|
8632
8632
|
"excerptTokens": [
|
8633
8633
|
{
|
8634
8634
|
"kind": "Content",
|
@@ -8636,7 +8636,7 @@
|
|
8636
8636
|
},
|
8637
8637
|
{
|
8638
8638
|
"kind": "Content",
|
8639
|
-
"text": "(
|
8639
|
+
"text": "(entity: "
|
8640
8640
|
},
|
8641
8641
|
{
|
8642
8642
|
"kind": "Reference",
|
@@ -8888,7 +8888,7 @@
|
|
8888
8888
|
{
|
8889
8889
|
"kind": "Property",
|
8890
8890
|
"canonicalReference": "server!Entity#onBlockCollision:member",
|
8891
|
-
"docComment": "/**\n * A function that is called when the entity collides with a block.\n *\n * @param
|
8891
|
+
"docComment": "/**\n * A function that is called when the entity collides with a block.\n *\n * @param entity - The Entity instance the collision is for.\n *\n * @param block - The block that the entity collided with.\n *\n * @param started - Whether the collision started or ended.\n */\n",
|
8892
8892
|
"excerptTokens": [
|
8893
8893
|
{
|
8894
8894
|
"kind": "Content",
|
@@ -8896,7 +8896,7 @@
|
|
8896
8896
|
},
|
8897
8897
|
{
|
8898
8898
|
"kind": "Content",
|
8899
|
-
"text": "(
|
8899
|
+
"text": "(entity: "
|
8900
8900
|
},
|
8901
8901
|
{
|
8902
8902
|
"kind": "Reference",
|
@@ -8936,7 +8936,7 @@
|
|
8936
8936
|
{
|
8937
8937
|
"kind": "Property",
|
8938
8938
|
"canonicalReference": "server!Entity#onBlockContactForce:member",
|
8939
|
-
"docComment": "/**\n * A function that is called when the entity collides with a block.\n *\n * @param
|
8939
|
+
"docComment": "/**\n * A function that is called when the entity collides with a block.\n *\n * @param entity - The Entity instance the collision is for.\n *\n * @param block - The block that the entity collided with.\n *\n * @param contactForceData - The contact force data.\n */\n",
|
8940
8940
|
"excerptTokens": [
|
8941
8941
|
{
|
8942
8942
|
"kind": "Content",
|
@@ -8944,7 +8944,7 @@
|
|
8944
8944
|
},
|
8945
8945
|
{
|
8946
8946
|
"kind": "Content",
|
8947
|
-
"text": "(
|
8947
|
+
"text": "(entity: "
|
8948
8948
|
},
|
8949
8949
|
{
|
8950
8950
|
"kind": "Reference",
|
@@ -8993,7 +8993,7 @@
|
|
8993
8993
|
{
|
8994
8994
|
"kind": "Property",
|
8995
8995
|
"canonicalReference": "server!Entity#onDespawn:member",
|
8996
|
-
"docComment": "/**\n * A function that is called when the entity is despawned.\n *\n * @param
|
8996
|
+
"docComment": "/**\n * A function that is called when the entity is despawned.\n *\n * @param entity - The Entity instance that despawned.\n */\n",
|
8997
8997
|
"excerptTokens": [
|
8998
8998
|
{
|
8999
8999
|
"kind": "Content",
|
@@ -9001,7 +9001,7 @@
|
|
9001
9001
|
},
|
9002
9002
|
{
|
9003
9003
|
"kind": "Content",
|
9004
|
-
"text": "(
|
9004
|
+
"text": "(entity: "
|
9005
9005
|
},
|
9006
9006
|
{
|
9007
9007
|
"kind": "Reference",
|
@@ -9032,7 +9032,7 @@
|
|
9032
9032
|
{
|
9033
9033
|
"kind": "Property",
|
9034
9034
|
"canonicalReference": "server!Entity#onEntityCollision:member",
|
9035
|
-
"docComment": "/**\n * A function that is called when the entity collides with another entity.\n *\n * @param
|
9035
|
+
"docComment": "/**\n * A function that is called when the entity collides with another entity.\n *\n * @param entity - The Entity instance the collision is for.\n *\n * @param otherEntity - The other entity that the entity collided with.\n *\n * @param started - Whether the collision started or ended.\n */\n",
|
9036
9036
|
"excerptTokens": [
|
9037
9037
|
{
|
9038
9038
|
"kind": "Content",
|
@@ -9040,7 +9040,7 @@
|
|
9040
9040
|
},
|
9041
9041
|
{
|
9042
9042
|
"kind": "Content",
|
9043
|
-
"text": "(
|
9043
|
+
"text": "(entity: "
|
9044
9044
|
},
|
9045
9045
|
{
|
9046
9046
|
"kind": "Reference",
|
@@ -9049,7 +9049,7 @@
|
|
9049
9049
|
},
|
9050
9050
|
{
|
9051
9051
|
"kind": "Content",
|
9052
|
-
"text": ",
|
9052
|
+
"text": ", otherEntity: "
|
9053
9053
|
},
|
9054
9054
|
{
|
9055
9055
|
"kind": "Reference",
|
@@ -9080,7 +9080,7 @@
|
|
9080
9080
|
{
|
9081
9081
|
"kind": "Property",
|
9082
9082
|
"canonicalReference": "server!Entity#onEntityContactForce:member",
|
9083
|
-
"docComment": "/**\n * A function that is called when the entity contacts another entity.\n *\n * @param
|
9083
|
+
"docComment": "/**\n * A function that is called when the entity contacts another entity.\n *\n * @param entity - The Entity instance the collision is for.\n *\n * @param otherEntity - The other entity that the entity collided with.\n *\n * @param contactForceData - The contact force data.\n */\n",
|
9084
9084
|
"excerptTokens": [
|
9085
9085
|
{
|
9086
9086
|
"kind": "Content",
|
@@ -9088,7 +9088,7 @@
|
|
9088
9088
|
},
|
9089
9089
|
{
|
9090
9090
|
"kind": "Content",
|
9091
|
-
"text": "(
|
9091
|
+
"text": "(entity: "
|
9092
9092
|
},
|
9093
9093
|
{
|
9094
9094
|
"kind": "Reference",
|
@@ -9097,7 +9097,7 @@
|
|
9097
9097
|
},
|
9098
9098
|
{
|
9099
9099
|
"kind": "Content",
|
9100
|
-
"text": ",
|
9100
|
+
"text": ", otherEntity: "
|
9101
9101
|
},
|
9102
9102
|
{
|
9103
9103
|
"kind": "Reference",
|
@@ -9137,7 +9137,7 @@
|
|
9137
9137
|
{
|
9138
9138
|
"kind": "Property",
|
9139
9139
|
"canonicalReference": "server!Entity#onSpawn:member",
|
9140
|
-
"docComment": "/**\n * A function that is called when the entity is spawned.\n *\n * @param
|
9140
|
+
"docComment": "/**\n * A function that is called when the entity is spawned.\n *\n * @param entity - The Entity instance that spawned.\n */\n",
|
9141
9141
|
"excerptTokens": [
|
9142
9142
|
{
|
9143
9143
|
"kind": "Content",
|
@@ -9145,7 +9145,7 @@
|
|
9145
9145
|
},
|
9146
9146
|
{
|
9147
9147
|
"kind": "Content",
|
9148
|
-
"text": "(
|
9148
|
+
"text": "(entity: "
|
9149
9149
|
},
|
9150
9150
|
{
|
9151
9151
|
"kind": "Reference",
|
@@ -9176,7 +9176,7 @@
|
|
9176
9176
|
{
|
9177
9177
|
"kind": "Property",
|
9178
9178
|
"canonicalReference": "server!Entity#onTick:member",
|
9179
|
-
"docComment": "/**\n * A function that is called every tick.\n *\n * @param
|
9179
|
+
"docComment": "/**\n * A function that is called every tick.\n *\n * @param entity - The Entity instance that ticked.\n *\n * @param tickDeltaMs - The delta time in milliseconds since the last tick.\n */\n",
|
9180
9180
|
"excerptTokens": [
|
9181
9181
|
{
|
9182
9182
|
"kind": "Content",
|
@@ -9184,7 +9184,7 @@
|
|
9184
9184
|
},
|
9185
9185
|
{
|
9186
9186
|
"kind": "Content",
|
9187
|
-
"text": "(
|
9187
|
+
"text": "(entity: "
|
9188
9188
|
},
|
9189
9189
|
{
|
9190
9190
|
"kind": "Reference",
|
@@ -10391,6 +10391,47 @@
|
|
10391
10391
|
"name": "EntityOptions",
|
10392
10392
|
"preserveMemberOrder": false,
|
10393
10393
|
"members": [
|
10394
|
+
{
|
10395
|
+
"kind": "PropertySignature",
|
10396
|
+
"canonicalReference": "server!EntityOptions#createCustomCharacterController:member",
|
10397
|
+
"docComment": "/**\n * A function that creates a custom character controller for the entity when it spawns.\n *\n * @param entity - The Entity instance.\n *\n * @returns A character controller that extends {@link BaseCharacterController}.\n */\n",
|
10398
|
+
"excerptTokens": [
|
10399
|
+
{
|
10400
|
+
"kind": "Content",
|
10401
|
+
"text": "createCustomCharacterController?: "
|
10402
|
+
},
|
10403
|
+
{
|
10404
|
+
"kind": "Content",
|
10405
|
+
"text": "(entity: "
|
10406
|
+
},
|
10407
|
+
{
|
10408
|
+
"kind": "Reference",
|
10409
|
+
"text": "Entity",
|
10410
|
+
"canonicalReference": "server!Entity:class"
|
10411
|
+
},
|
10412
|
+
{
|
10413
|
+
"kind": "Content",
|
10414
|
+
"text": ") => "
|
10415
|
+
},
|
10416
|
+
{
|
10417
|
+
"kind": "Reference",
|
10418
|
+
"text": "BaseCharacterController",
|
10419
|
+
"canonicalReference": "server!BaseCharacterController:class"
|
10420
|
+
},
|
10421
|
+
{
|
10422
|
+
"kind": "Content",
|
10423
|
+
"text": ";"
|
10424
|
+
}
|
10425
|
+
],
|
10426
|
+
"isReadonly": false,
|
10427
|
+
"isOptional": true,
|
10428
|
+
"releaseTag": "Public",
|
10429
|
+
"name": "createCustomCharacterController",
|
10430
|
+
"propertyTypeTokenRange": {
|
10431
|
+
"startIndex": 1,
|
10432
|
+
"endIndex": 5
|
10433
|
+
}
|
10434
|
+
},
|
10394
10435
|
{
|
10395
10436
|
"kind": "PropertySignature",
|
10396
10437
|
"canonicalReference": "server!EntityOptions#modelLoopedAnimations:member",
|
@@ -14617,7 +14658,7 @@
|
|
14617
14658
|
{
|
14618
14659
|
"kind": "Property",
|
14619
14660
|
"canonicalReference": "server!HYTOPIA.BlockType#onEntityCollision:member",
|
14620
|
-
"docComment": "/**\n * A callback function that is invoked when an entity collides with blocks of this type.\n *\n * @param entity - The entity that collided with the block.\n *\n * @param started - Whether the collision started.\n */\n",
|
14661
|
+
"docComment": "/**\n * A callback function that is invoked when an entity collides with blocks of this type.\n *\n * @param blockType - The block type the collision is for.\n *\n * @param entity - The entity that collided with the block type.\n *\n * @param started - Whether the collision started.\n */\n",
|
14621
14662
|
"excerptTokens": [
|
14622
14663
|
{
|
14623
14664
|
"kind": "Content",
|
@@ -14625,7 +14666,7 @@
|
|
14625
14666
|
},
|
14626
14667
|
{
|
14627
14668
|
"kind": "Content",
|
14628
|
-
"text": "(
|
14669
|
+
"text": "(blockType: "
|
14629
14670
|
},
|
14630
14671
|
{
|
14631
14672
|
"kind": "Reference",
|
@@ -14665,7 +14706,7 @@
|
|
14665
14706
|
{
|
14666
14707
|
"kind": "Property",
|
14667
14708
|
"canonicalReference": "server!HYTOPIA.BlockType#onEntityContactForce:member",
|
14668
|
-
"docComment": "/**\n * A callback function that is invoked when an entity contacts a block of this type.\n *\n * @param entity - The entity that contacted the block.\n *\n * @param contactForceData - The contact force data.\n */\n",
|
14709
|
+
"docComment": "/**\n * A callback function that is invoked when an entity contacts a block of this type.\n *\n * @param blockType - The block type the contact is for.\n *\n * @param entity - The entity that contacted the block type.\n *\n * @param contactForceData - The contact force data.\n */\n",
|
14669
14710
|
"excerptTokens": [
|
14670
14711
|
{
|
14671
14712
|
"kind": "Content",
|
@@ -14673,7 +14714,7 @@
|
|
14673
14714
|
},
|
14674
14715
|
{
|
14675
14716
|
"kind": "Content",
|
14676
|
-
"text": "(
|
14717
|
+
"text": "(blockType: "
|
14677
14718
|
},
|
14678
14719
|
{
|
14679
14720
|
"kind": "Reference",
|
@@ -19309,7 +19350,7 @@
|
|
19309
19350
|
{
|
19310
19351
|
"kind": "Property",
|
19311
19352
|
"canonicalReference": "server!HYTOPIA.DefaultCharacterController#canJump:member",
|
19312
|
-
"docComment": "/**\n * A function allowing custom logic to determine if the entity can jump.\n *\n * @param
|
19353
|
+
"docComment": "/**\n * A function allowing custom logic to determine if the entity can jump.\n *\n * @param defaultCharacterController - The character controller instance.\n *\n * @returns Whether the entity of the character controller can jump.\n */\n",
|
19313
19354
|
"excerptTokens": [
|
19314
19355
|
{
|
19315
19356
|
"kind": "Content",
|
@@ -19317,7 +19358,7 @@
|
|
19317
19358
|
},
|
19318
19359
|
{
|
19319
19360
|
"kind": "Content",
|
19320
|
-
"text": "(
|
19361
|
+
"text": "(defaultCharacterController: "
|
19321
19362
|
},
|
19322
19363
|
{
|
19323
19364
|
"kind": "Reference",
|
@@ -19348,7 +19389,7 @@
|
|
19348
19389
|
{
|
19349
19390
|
"kind": "Property",
|
19350
19391
|
"canonicalReference": "server!HYTOPIA.DefaultCharacterController#canRun:member",
|
19351
|
-
"docComment": "/**\n * A function allowing custom logic to determine if the entity can run.\n *\n * @param
|
19392
|
+
"docComment": "/**\n * A function allowing custom logic to determine if the entity can run.\n *\n * @param defaultCharacterController - The character controller instance.\n *\n * @returns Whether the entity of the character controller can run.\n */\n",
|
19352
19393
|
"excerptTokens": [
|
19353
19394
|
{
|
19354
19395
|
"kind": "Content",
|
@@ -19356,7 +19397,7 @@
|
|
19356
19397
|
},
|
19357
19398
|
{
|
19358
19399
|
"kind": "Content",
|
19359
|
-
"text": "(
|
19400
|
+
"text": "(defaultCharacterController: "
|
19360
19401
|
},
|
19361
19402
|
{
|
19362
19403
|
"kind": "Reference",
|
@@ -19387,7 +19428,7 @@
|
|
19387
19428
|
{
|
19388
19429
|
"kind": "Property",
|
19389
19430
|
"canonicalReference": "server!HYTOPIA.DefaultCharacterController#canWalk:member",
|
19390
|
-
"docComment": "/**\n * A function allowing custom logic to determine if the entity can walk.\n *\n * @param
|
19431
|
+
"docComment": "/**\n * A function allowing custom logic to determine if the entity can walk.\n *\n * @param defaultCharacterController - The character controller instance.\n *\n * @returns Whether the entity of the character controller can walk.\n */\n",
|
19391
19432
|
"excerptTokens": [
|
19392
19433
|
{
|
19393
19434
|
"kind": "Content",
|
@@ -19395,7 +19436,7 @@
|
|
19395
19436
|
},
|
19396
19437
|
{
|
19397
19438
|
"kind": "Content",
|
19398
|
-
"text": "(
|
19439
|
+
"text": "(defaultCharacterController: "
|
19399
19440
|
},
|
19400
19441
|
{
|
19401
19442
|
"kind": "Reference",
|
@@ -20018,7 +20059,7 @@
|
|
20018
20059
|
{
|
20019
20060
|
"kind": "Property",
|
20020
20061
|
"canonicalReference": "server!HYTOPIA.Entity#createCustomCharacterController:member",
|
20021
|
-
"docComment": "/**\n * A function that creates a custom character controller for the entity.\n *\n * @param
|
20062
|
+
"docComment": "/**\n * A function that creates a custom character controller for the entity when it spawns.\n *\n * @param entity - The Entity instance the character controller is created for.\n *\n * @returns A character controller that extends {@link BaseCharacterController}.\n */\n",
|
20022
20063
|
"excerptTokens": [
|
20023
20064
|
{
|
20024
20065
|
"kind": "Content",
|
@@ -20026,7 +20067,7 @@
|
|
20026
20067
|
},
|
20027
20068
|
{
|
20028
20069
|
"kind": "Content",
|
20029
|
-
"text": "(
|
20070
|
+
"text": "(entity: "
|
20030
20071
|
},
|
20031
20072
|
{
|
20032
20073
|
"kind": "Reference",
|
@@ -20278,7 +20319,7 @@
|
|
20278
20319
|
{
|
20279
20320
|
"kind": "Property",
|
20280
20321
|
"canonicalReference": "server!HYTOPIA.Entity#onBlockCollision:member",
|
20281
|
-
"docComment": "/**\n * A function that is called when the entity collides with a block.\n *\n * @param
|
20322
|
+
"docComment": "/**\n * A function that is called when the entity collides with a block.\n *\n * @param entity - The Entity instance the collision is for.\n *\n * @param block - The block that the entity collided with.\n *\n * @param started - Whether the collision started or ended.\n */\n",
|
20282
20323
|
"excerptTokens": [
|
20283
20324
|
{
|
20284
20325
|
"kind": "Content",
|
@@ -20286,7 +20327,7 @@
|
|
20286
20327
|
},
|
20287
20328
|
{
|
20288
20329
|
"kind": "Content",
|
20289
|
-
"text": "(
|
20330
|
+
"text": "(entity: "
|
20290
20331
|
},
|
20291
20332
|
{
|
20292
20333
|
"kind": "Reference",
|
@@ -20326,7 +20367,7 @@
|
|
20326
20367
|
{
|
20327
20368
|
"kind": "Property",
|
20328
20369
|
"canonicalReference": "server!HYTOPIA.Entity#onBlockContactForce:member",
|
20329
|
-
"docComment": "/**\n * A function that is called when the entity collides with a block.\n *\n * @param
|
20370
|
+
"docComment": "/**\n * A function that is called when the entity collides with a block.\n *\n * @param entity - The Entity instance the collision is for.\n *\n * @param block - The block that the entity collided with.\n *\n * @param contactForceData - The contact force data.\n */\n",
|
20330
20371
|
"excerptTokens": [
|
20331
20372
|
{
|
20332
20373
|
"kind": "Content",
|
@@ -20334,7 +20375,7 @@
|
|
20334
20375
|
},
|
20335
20376
|
{
|
20336
20377
|
"kind": "Content",
|
20337
|
-
"text": "(
|
20378
|
+
"text": "(entity: "
|
20338
20379
|
},
|
20339
20380
|
{
|
20340
20381
|
"kind": "Reference",
|
@@ -20383,7 +20424,7 @@
|
|
20383
20424
|
{
|
20384
20425
|
"kind": "Property",
|
20385
20426
|
"canonicalReference": "server!HYTOPIA.Entity#onDespawn:member",
|
20386
|
-
"docComment": "/**\n * A function that is called when the entity is despawned.\n *\n * @param
|
20427
|
+
"docComment": "/**\n * A function that is called when the entity is despawned.\n *\n * @param entity - The Entity instance that despawned.\n */\n",
|
20387
20428
|
"excerptTokens": [
|
20388
20429
|
{
|
20389
20430
|
"kind": "Content",
|
@@ -20391,7 +20432,7 @@
|
|
20391
20432
|
},
|
20392
20433
|
{
|
20393
20434
|
"kind": "Content",
|
20394
|
-
"text": "(
|
20435
|
+
"text": "(entity: "
|
20395
20436
|
},
|
20396
20437
|
{
|
20397
20438
|
"kind": "Reference",
|
@@ -20422,7 +20463,7 @@
|
|
20422
20463
|
{
|
20423
20464
|
"kind": "Property",
|
20424
20465
|
"canonicalReference": "server!HYTOPIA.Entity#onEntityCollision:member",
|
20425
|
-
"docComment": "/**\n * A function that is called when the entity collides with another entity.\n *\n * @param
|
20466
|
+
"docComment": "/**\n * A function that is called when the entity collides with another entity.\n *\n * @param entity - The Entity instance the collision is for.\n *\n * @param otherEntity - The other entity that the entity collided with.\n *\n * @param started - Whether the collision started or ended.\n */\n",
|
20426
20467
|
"excerptTokens": [
|
20427
20468
|
{
|
20428
20469
|
"kind": "Content",
|
@@ -20430,7 +20471,7 @@
|
|
20430
20471
|
},
|
20431
20472
|
{
|
20432
20473
|
"kind": "Content",
|
20433
|
-
"text": "(
|
20474
|
+
"text": "(entity: "
|
20434
20475
|
},
|
20435
20476
|
{
|
20436
20477
|
"kind": "Reference",
|
@@ -20439,7 +20480,7 @@
|
|
20439
20480
|
},
|
20440
20481
|
{
|
20441
20482
|
"kind": "Content",
|
20442
|
-
"text": ",
|
20483
|
+
"text": ", otherEntity: "
|
20443
20484
|
},
|
20444
20485
|
{
|
20445
20486
|
"kind": "Reference",
|
@@ -20470,7 +20511,7 @@
|
|
20470
20511
|
{
|
20471
20512
|
"kind": "Property",
|
20472
20513
|
"canonicalReference": "server!HYTOPIA.Entity#onEntityContactForce:member",
|
20473
|
-
"docComment": "/**\n * A function that is called when the entity contacts another entity.\n *\n * @param
|
20514
|
+
"docComment": "/**\n * A function that is called when the entity contacts another entity.\n *\n * @param entity - The Entity instance the collision is for.\n *\n * @param otherEntity - The other entity that the entity collided with.\n *\n * @param contactForceData - The contact force data.\n */\n",
|
20474
20515
|
"excerptTokens": [
|
20475
20516
|
{
|
20476
20517
|
"kind": "Content",
|
@@ -20478,7 +20519,7 @@
|
|
20478
20519
|
},
|
20479
20520
|
{
|
20480
20521
|
"kind": "Content",
|
20481
|
-
"text": "(
|
20522
|
+
"text": "(entity: "
|
20482
20523
|
},
|
20483
20524
|
{
|
20484
20525
|
"kind": "Reference",
|
@@ -20487,7 +20528,7 @@
|
|
20487
20528
|
},
|
20488
20529
|
{
|
20489
20530
|
"kind": "Content",
|
20490
|
-
"text": ",
|
20531
|
+
"text": ", otherEntity: "
|
20491
20532
|
},
|
20492
20533
|
{
|
20493
20534
|
"kind": "Reference",
|
@@ -20527,7 +20568,7 @@
|
|
20527
20568
|
{
|
20528
20569
|
"kind": "Property",
|
20529
20570
|
"canonicalReference": "server!HYTOPIA.Entity#onSpawn:member",
|
20530
|
-
"docComment": "/**\n * A function that is called when the entity is spawned.\n *\n * @param
|
20571
|
+
"docComment": "/**\n * A function that is called when the entity is spawned.\n *\n * @param entity - The Entity instance that spawned.\n */\n",
|
20531
20572
|
"excerptTokens": [
|
20532
20573
|
{
|
20533
20574
|
"kind": "Content",
|
@@ -20535,7 +20576,7 @@
|
|
20535
20576
|
},
|
20536
20577
|
{
|
20537
20578
|
"kind": "Content",
|
20538
|
-
"text": "(
|
20579
|
+
"text": "(entity: "
|
20539
20580
|
},
|
20540
20581
|
{
|
20541
20582
|
"kind": "Reference",
|
@@ -20566,7 +20607,7 @@
|
|
20566
20607
|
{
|
20567
20608
|
"kind": "Property",
|
20568
20609
|
"canonicalReference": "server!HYTOPIA.Entity#onTick:member",
|
20569
|
-
"docComment": "/**\n * A function that is called every tick.\n *\n * @param
|
20610
|
+
"docComment": "/**\n * A function that is called every tick.\n *\n * @param entity - The Entity instance that ticked.\n *\n * @param tickDeltaMs - The delta time in milliseconds since the last tick.\n */\n",
|
20570
20611
|
"excerptTokens": [
|
20571
20612
|
{
|
20572
20613
|
"kind": "Content",
|
@@ -20574,7 +20615,7 @@
|
|
20574
20615
|
},
|
20575
20616
|
{
|
20576
20617
|
"kind": "Content",
|
20577
|
-
"text": "(
|
20618
|
+
"text": "(entity: "
|
20578
20619
|
},
|
20579
20620
|
{
|
20580
20621
|
"kind": "Reference",
|
@@ -21781,6 +21822,47 @@
|
|
21781
21822
|
"name": "EntityOptions",
|
21782
21823
|
"preserveMemberOrder": false,
|
21783
21824
|
"members": [
|
21825
|
+
{
|
21826
|
+
"kind": "PropertySignature",
|
21827
|
+
"canonicalReference": "server!HYTOPIA.EntityOptions#createCustomCharacterController:member",
|
21828
|
+
"docComment": "/**\n * A function that creates a custom character controller for the entity when it spawns.\n *\n * @param entity - The Entity instance.\n *\n * @returns A character controller that extends {@link BaseCharacterController}.\n */\n",
|
21829
|
+
"excerptTokens": [
|
21830
|
+
{
|
21831
|
+
"kind": "Content",
|
21832
|
+
"text": "createCustomCharacterController?: "
|
21833
|
+
},
|
21834
|
+
{
|
21835
|
+
"kind": "Content",
|
21836
|
+
"text": "(entity: "
|
21837
|
+
},
|
21838
|
+
{
|
21839
|
+
"kind": "Reference",
|
21840
|
+
"text": "Entity",
|
21841
|
+
"canonicalReference": "server!Entity:class"
|
21842
|
+
},
|
21843
|
+
{
|
21844
|
+
"kind": "Content",
|
21845
|
+
"text": ") => "
|
21846
|
+
},
|
21847
|
+
{
|
21848
|
+
"kind": "Reference",
|
21849
|
+
"text": "BaseCharacterController",
|
21850
|
+
"canonicalReference": "server!BaseCharacterController:class"
|
21851
|
+
},
|
21852
|
+
{
|
21853
|
+
"kind": "Content",
|
21854
|
+
"text": ";"
|
21855
|
+
}
|
21856
|
+
],
|
21857
|
+
"isReadonly": false,
|
21858
|
+
"isOptional": true,
|
21859
|
+
"releaseTag": "Public",
|
21860
|
+
"name": "createCustomCharacterController",
|
21861
|
+
"propertyTypeTokenRange": {
|
21862
|
+
"startIndex": 1,
|
21863
|
+
"endIndex": 5
|
21864
|
+
}
|
21865
|
+
},
|
21784
21866
|
{
|
21785
21867
|
"kind": "PropertySignature",
|
21786
21868
|
"canonicalReference": "server!HYTOPIA.EntityOptions#modelLoopedAnimations:member",
|
@@ -23051,7 +23133,7 @@
|
|
23051
23133
|
},
|
23052
23134
|
{
|
23053
23135
|
"kind": "Content",
|
23054
|
-
"text": ";\n}"
|
23136
|
+
"text": ";\n moveIgnoreAxes?: {\n x?: boolean;\n y?: boolean;\n z?: boolean;\n };\n}"
|
23055
23137
|
},
|
23056
23138
|
{
|
23057
23139
|
"kind": "Content",
|
@@ -28260,7 +28342,7 @@
|
|
28260
28342
|
{
|
28261
28343
|
"kind": "Class",
|
28262
28344
|
"canonicalReference": "server!HYTOPIA.SimpleCharacterController:class",
|
28263
|
-
"docComment": "/**\n * A simple character controller with basic movement functions.\n *\n * @remarks\n *\n * This class implements simple movement methods that serve as a way to add realistic movement and rotational facing functionality to an entity. This is also a great base to extend for your own more complex character controller that implements things like pathfinding.\n *\n * @example\n * ```typescript\n * // Create a custom character controller for myEntity, prior to spawning it.\n * myEntity.createCustomCharacterController = () => {\n * return new SimpleCharacterController(myEntity);\n * };\n *\n * // Spawn the entity in the world.\n * myEntity.spawn(world, { x: 53, y: 10, z: 23 });\n *\n * // Move the entity at a speed of 4 blocks\n * // per second to the coordinate (10, 1, 10).\n * // console.log when we reach the target.\n * myEntity.characterController.move({ x: 10, y: 1, z: 10 }, 4, {\n * moveCompleteCallback: endPosition => {\n * console.log('Finished moving to', endPosition);\n * },\n * });\n * ```\n *\n * @public\n */\n",
|
28345
|
+
"docComment": "/**\n * A simple character controller with basic movement functions.\n *\n * @remarks\n *\n * This class implements simple movement methods that serve as a way to add realistic movement and rotational facing functionality to an entity. This is also a great base to extend for your own more complex character controller that implements things like pathfinding. Compatible with entities that have kinematic or dynamic rigid body types.\n *\n * @example\n * ```typescript\n * // Create a custom character controller for myEntity, prior to spawning it.\n * myEntity.createCustomCharacterController = () => {\n * return new SimpleCharacterController(myEntity);\n * };\n *\n * // Spawn the entity in the world.\n * myEntity.spawn(world, { x: 53, y: 10, z: 23 });\n *\n * // Move the entity at a speed of 4 blocks\n * // per second to the coordinate (10, 1, 10).\n * // console.log when we reach the target.\n * myEntity.characterController.move({ x: 10, y: 1, z: 10 }, 4, {\n * moveCompleteCallback: endPosition => {\n * console.log('Finished moving to', endPosition);\n * },\n * });\n * ```\n *\n * @public\n */\n",
|
28264
28346
|
"excerptTokens": [
|
28265
28347
|
{
|
28266
28348
|
"kind": "Content",
|
@@ -30608,7 +30690,7 @@
|
|
30608
30690
|
},
|
30609
30691
|
{
|
30610
30692
|
"kind": "Content",
|
30611
|
-
"text": ";\n}"
|
30693
|
+
"text": ";\n moveIgnoreAxes?: {\n x?: boolean;\n y?: boolean;\n z?: boolean;\n };\n}"
|
30612
30694
|
},
|
30613
30695
|
{
|
30614
30696
|
"kind": "Content",
|
@@ -35817,7 +35899,7 @@
|
|
35817
35899
|
{
|
35818
35900
|
"kind": "Class",
|
35819
35901
|
"canonicalReference": "server!SimpleCharacterController:class",
|
35820
|
-
"docComment": "/**\n * A simple character controller with basic movement functions.\n *\n * @remarks\n *\n * This class implements simple movement methods that serve as a way to add realistic movement and rotational facing functionality to an entity. This is also a great base to extend for your own more complex character controller that implements things like pathfinding.\n *\n * @example\n * ```typescript\n * // Create a custom character controller for myEntity, prior to spawning it.\n * myEntity.createCustomCharacterController = () => {\n * return new SimpleCharacterController(myEntity);\n * };\n *\n * // Spawn the entity in the world.\n * myEntity.spawn(world, { x: 53, y: 10, z: 23 });\n *\n * // Move the entity at a speed of 4 blocks\n * // per second to the coordinate (10, 1, 10).\n * // console.log when we reach the target.\n * myEntity.characterController.move({ x: 10, y: 1, z: 10 }, 4, {\n * moveCompleteCallback: endPosition => {\n * console.log('Finished moving to', endPosition);\n * },\n * });\n * ```\n *\n * @public\n */\n",
|
35902
|
+
"docComment": "/**\n * A simple character controller with basic movement functions.\n *\n * @remarks\n *\n * This class implements simple movement methods that serve as a way to add realistic movement and rotational facing functionality to an entity. This is also a great base to extend for your own more complex character controller that implements things like pathfinding. Compatible with entities that have kinematic or dynamic rigid body types.\n *\n * @example\n * ```typescript\n * // Create a custom character controller for myEntity, prior to spawning it.\n * myEntity.createCustomCharacterController = () => {\n * return new SimpleCharacterController(myEntity);\n * };\n *\n * // Spawn the entity in the world.\n * myEntity.spawn(world, { x: 53, y: 10, z: 23 });\n *\n * // Move the entity at a speed of 4 blocks\n * // per second to the coordinate (10, 1, 10).\n * // console.log when we reach the target.\n * myEntity.characterController.move({ x: 10, y: 1, z: 10 }, 4, {\n * moveCompleteCallback: endPosition => {\n * console.log('Finished moving to', endPosition);\n * },\n * });\n * ```\n *\n * @public\n */\n",
|
35821
35903
|
"excerptTokens": [
|
35822
35904
|
{
|
35823
35905
|
"kind": "Content",
|