hytopia 0.1.95 → 0.1.96

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/server.api.json CHANGED
@@ -20561,6 +20561,66 @@
20561
20561
  "isProtected": false,
20562
20562
  "isAbstract": false
20563
20563
  },
20564
+ {
20565
+ "kind": "Property",
20566
+ "canonicalReference": "server!PlayerEntityController#idleLoopedAnimations:member",
20567
+ "docComment": "/**\n * The looped animation(s) that will play when the entity is idle.\n */\n",
20568
+ "excerptTokens": [
20569
+ {
20570
+ "kind": "Content",
20571
+ "text": "idleLoopedAnimations: "
20572
+ },
20573
+ {
20574
+ "kind": "Content",
20575
+ "text": "string[]"
20576
+ },
20577
+ {
20578
+ "kind": "Content",
20579
+ "text": ";"
20580
+ }
20581
+ ],
20582
+ "isReadonly": false,
20583
+ "isOptional": false,
20584
+ "releaseTag": "Public",
20585
+ "name": "idleLoopedAnimations",
20586
+ "propertyTypeTokenRange": {
20587
+ "startIndex": 1,
20588
+ "endIndex": 2
20589
+ },
20590
+ "isStatic": false,
20591
+ "isProtected": false,
20592
+ "isAbstract": false
20593
+ },
20594
+ {
20595
+ "kind": "Property",
20596
+ "canonicalReference": "server!PlayerEntityController#interactOneshotAnimations:member",
20597
+ "docComment": "/**\n * The oneshot animation(s) that will play when the entity interacts (left click)\n */\n",
20598
+ "excerptTokens": [
20599
+ {
20600
+ "kind": "Content",
20601
+ "text": "interactOneshotAnimations: "
20602
+ },
20603
+ {
20604
+ "kind": "Content",
20605
+ "text": "string[]"
20606
+ },
20607
+ {
20608
+ "kind": "Content",
20609
+ "text": ";"
20610
+ }
20611
+ ],
20612
+ "isReadonly": false,
20613
+ "isOptional": false,
20614
+ "releaseTag": "Public",
20615
+ "name": "interactOneshotAnimations",
20616
+ "propertyTypeTokenRange": {
20617
+ "startIndex": 1,
20618
+ "endIndex": 2
20619
+ },
20620
+ "isStatic": false,
20621
+ "isProtected": false,
20622
+ "isAbstract": false
20623
+ },
20564
20624
  {
20565
20625
  "kind": "Property",
20566
20626
  "canonicalReference": "server!PlayerEntityController#isGrounded:member",
@@ -20621,6 +20681,36 @@
20621
20681
  "isProtected": false,
20622
20682
  "isAbstract": false
20623
20683
  },
20684
+ {
20685
+ "kind": "Property",
20686
+ "canonicalReference": "server!PlayerEntityController#jumpOneshotAnimations:member",
20687
+ "docComment": "/**\n * The oneshot animation(s) that will play when the entity is jumping.\n */\n",
20688
+ "excerptTokens": [
20689
+ {
20690
+ "kind": "Content",
20691
+ "text": "jumpOneshotAnimations: "
20692
+ },
20693
+ {
20694
+ "kind": "Content",
20695
+ "text": "string[]"
20696
+ },
20697
+ {
20698
+ "kind": "Content",
20699
+ "text": ";"
20700
+ }
20701
+ ],
20702
+ "isReadonly": false,
20703
+ "isOptional": false,
20704
+ "releaseTag": "Public",
20705
+ "name": "jumpOneshotAnimations",
20706
+ "propertyTypeTokenRange": {
20707
+ "startIndex": 1,
20708
+ "endIndex": 2
20709
+ },
20710
+ "isStatic": false,
20711
+ "isProtected": false,
20712
+ "isAbstract": false
20713
+ },
20624
20714
  {
20625
20715
  "kind": "Property",
20626
20716
  "canonicalReference": "server!PlayerEntityController#jumpVelocity:member",
@@ -20686,6 +20776,36 @@
20686
20776
  "isProtected": false,
20687
20777
  "isAbstract": false
20688
20778
  },
20779
+ {
20780
+ "kind": "Property",
20781
+ "canonicalReference": "server!PlayerEntityController#runLoopedAnimations:member",
20782
+ "docComment": "/**\n * The looped animation(s) that will play when the entity is running.\n */\n",
20783
+ "excerptTokens": [
20784
+ {
20785
+ "kind": "Content",
20786
+ "text": "runLoopedAnimations: "
20787
+ },
20788
+ {
20789
+ "kind": "Content",
20790
+ "text": "string[]"
20791
+ },
20792
+ {
20793
+ "kind": "Content",
20794
+ "text": ";"
20795
+ }
20796
+ ],
20797
+ "isReadonly": false,
20798
+ "isOptional": false,
20799
+ "releaseTag": "Public",
20800
+ "name": "runLoopedAnimations",
20801
+ "propertyTypeTokenRange": {
20802
+ "startIndex": 1,
20803
+ "endIndex": 2
20804
+ },
20805
+ "isStatic": false,
20806
+ "isProtected": false,
20807
+ "isAbstract": false
20808
+ },
20689
20809
  {
20690
20810
  "kind": "Property",
20691
20811
  "canonicalReference": "server!PlayerEntityController#runVelocity:member",
@@ -20894,6 +21014,36 @@
20894
21014
  "isAbstract": false,
20895
21015
  "name": "tickWithPlayerInput"
20896
21016
  },
21017
+ {
21018
+ "kind": "Property",
21019
+ "canonicalReference": "server!PlayerEntityController#walkLoopedAnimations:member",
21020
+ "docComment": "/**\n * The looped animation(s) that will play when the entity is walking.\n */\n",
21021
+ "excerptTokens": [
21022
+ {
21023
+ "kind": "Content",
21024
+ "text": "walkLoopedAnimations: "
21025
+ },
21026
+ {
21027
+ "kind": "Content",
21028
+ "text": "string[]"
21029
+ },
21030
+ {
21031
+ "kind": "Content",
21032
+ "text": ";"
21033
+ }
21034
+ ],
21035
+ "isReadonly": false,
21036
+ "isOptional": false,
21037
+ "releaseTag": "Public",
21038
+ "name": "walkLoopedAnimations",
21039
+ "propertyTypeTokenRange": {
21040
+ "startIndex": 1,
21041
+ "endIndex": 2
21042
+ },
21043
+ "isStatic": false,
21044
+ "isProtected": false,
21045
+ "isAbstract": false
21046
+ },
20897
21047
  {
20898
21048
  "kind": "Property",
20899
21049
  "canonicalReference": "server!PlayerEntityController#walkVelocity:member",
@@ -21027,6 +21177,87 @@
21027
21177
  "endIndex": 2
21028
21178
  }
21029
21179
  },
21180
+ {
21181
+ "kind": "PropertySignature",
21182
+ "canonicalReference": "server!PlayerEntityControllerOptions#idleLoopedAnimations:member",
21183
+ "docComment": "/**\n * Overrides the animation(s) that will play when the entity is idle.\n */\n",
21184
+ "excerptTokens": [
21185
+ {
21186
+ "kind": "Content",
21187
+ "text": "idleLoopedAnimations?: "
21188
+ },
21189
+ {
21190
+ "kind": "Content",
21191
+ "text": "string[]"
21192
+ },
21193
+ {
21194
+ "kind": "Content",
21195
+ "text": ";"
21196
+ }
21197
+ ],
21198
+ "isReadonly": false,
21199
+ "isOptional": true,
21200
+ "releaseTag": "Public",
21201
+ "name": "idleLoopedAnimations",
21202
+ "propertyTypeTokenRange": {
21203
+ "startIndex": 1,
21204
+ "endIndex": 2
21205
+ }
21206
+ },
21207
+ {
21208
+ "kind": "PropertySignature",
21209
+ "canonicalReference": "server!PlayerEntityControllerOptions#interactOneshotAnimations:member",
21210
+ "docComment": "/**\n * Overrides the animation(s) that will play when the entity interacts (left click)\n */\n",
21211
+ "excerptTokens": [
21212
+ {
21213
+ "kind": "Content",
21214
+ "text": "interactOneshotAnimations?: "
21215
+ },
21216
+ {
21217
+ "kind": "Content",
21218
+ "text": "string[]"
21219
+ },
21220
+ {
21221
+ "kind": "Content",
21222
+ "text": ";"
21223
+ }
21224
+ ],
21225
+ "isReadonly": false,
21226
+ "isOptional": true,
21227
+ "releaseTag": "Public",
21228
+ "name": "interactOneshotAnimations",
21229
+ "propertyTypeTokenRange": {
21230
+ "startIndex": 1,
21231
+ "endIndex": 2
21232
+ }
21233
+ },
21234
+ {
21235
+ "kind": "PropertySignature",
21236
+ "canonicalReference": "server!PlayerEntityControllerOptions#jumpOneshotAnimations:member",
21237
+ "docComment": "/**\n * Overrides the animation(s) that will play when the entity is jumping.\n */\n",
21238
+ "excerptTokens": [
21239
+ {
21240
+ "kind": "Content",
21241
+ "text": "jumpOneshotAnimations?: "
21242
+ },
21243
+ {
21244
+ "kind": "Content",
21245
+ "text": "string[]"
21246
+ },
21247
+ {
21248
+ "kind": "Content",
21249
+ "text": ";"
21250
+ }
21251
+ ],
21252
+ "isReadonly": false,
21253
+ "isOptional": true,
21254
+ "releaseTag": "Public",
21255
+ "name": "jumpOneshotAnimations",
21256
+ "propertyTypeTokenRange": {
21257
+ "startIndex": 1,
21258
+ "endIndex": 2
21259
+ }
21260
+ },
21030
21261
  {
21031
21262
  "kind": "PropertySignature",
21032
21263
  "canonicalReference": "server!PlayerEntityControllerOptions#jumpVelocity:member",
@@ -21054,6 +21285,33 @@
21054
21285
  "endIndex": 2
21055
21286
  }
21056
21287
  },
21288
+ {
21289
+ "kind": "PropertySignature",
21290
+ "canonicalReference": "server!PlayerEntityControllerOptions#runLoopedAnimations:member",
21291
+ "docComment": "/**\n * Overrides the animation(s) that will play when the entity is running.\n */\n",
21292
+ "excerptTokens": [
21293
+ {
21294
+ "kind": "Content",
21295
+ "text": "runLoopedAnimations?: "
21296
+ },
21297
+ {
21298
+ "kind": "Content",
21299
+ "text": "string[]"
21300
+ },
21301
+ {
21302
+ "kind": "Content",
21303
+ "text": ";"
21304
+ }
21305
+ ],
21306
+ "isReadonly": false,
21307
+ "isOptional": true,
21308
+ "releaseTag": "Public",
21309
+ "name": "runLoopedAnimations",
21310
+ "propertyTypeTokenRange": {
21311
+ "startIndex": 1,
21312
+ "endIndex": 2
21313
+ }
21314
+ },
21057
21315
  {
21058
21316
  "kind": "PropertySignature",
21059
21317
  "canonicalReference": "server!PlayerEntityControllerOptions#runVelocity:member",
@@ -21108,6 +21366,33 @@
21108
21366
  "endIndex": 2
21109
21367
  }
21110
21368
  },
21369
+ {
21370
+ "kind": "PropertySignature",
21371
+ "canonicalReference": "server!PlayerEntityControllerOptions#walkLoopedAnimations:member",
21372
+ "docComment": "/**\n * Overrides the animation(s) that will play when the entity is walking.\n */\n",
21373
+ "excerptTokens": [
21374
+ {
21375
+ "kind": "Content",
21376
+ "text": "walkLoopedAnimations?: "
21377
+ },
21378
+ {
21379
+ "kind": "Content",
21380
+ "text": "string[]"
21381
+ },
21382
+ {
21383
+ "kind": "Content",
21384
+ "text": ";"
21385
+ }
21386
+ ],
21387
+ "isReadonly": false,
21388
+ "isOptional": true,
21389
+ "releaseTag": "Public",
21390
+ "name": "walkLoopedAnimations",
21391
+ "propertyTypeTokenRange": {
21392
+ "startIndex": 1,
21393
+ "endIndex": 2
21394
+ }
21395
+ },
21111
21396
  {
21112
21397
  "kind": "PropertySignature",
21113
21398
  "canonicalReference": "server!PlayerEntityControllerOptions#walkVelocity:member",
package/server.d.ts CHANGED
@@ -2575,12 +2575,22 @@ export declare class PlayerEntityController extends BaseEntityController {
2575
2575
  * @returns Whether the entity of the entity controller can jump.
2576
2576
  */
2577
2577
  canJump: (playerEntityController: PlayerEntityController) => boolean;
2578
+ /** The looped animation(s) that will play when the entity is idle. */
2579
+ idleLoopedAnimations: string[];
2580
+ /** The oneshot animation(s) that will play when the entity interacts (left click) */
2581
+ interactOneshotAnimations: string[];
2582
+ /** The oneshot animation(s) that will play when the entity is jumping. */
2583
+ jumpOneshotAnimations: string[];
2578
2584
  /** The upward velocity applied to the entity when it jumps. */
2579
2585
  jumpVelocity: number;
2586
+ /** The looped animation(s) that will play when the entity is running. */
2587
+ runLoopedAnimations: string[];
2580
2588
  /** The normalized horizontal velocity applied to the entity when it runs. */
2581
2589
  runVelocity: number;
2582
2590
  /** Whether the entity sticks to platforms. */
2583
2591
  sticksToPlatforms: boolean;
2592
+ /** The looped animation(s) that will play when the entity is walking. */
2593
+ walkLoopedAnimations: string[];
2584
2594
  /** The normalized horizontal velocity applied to the entity when it walks. */
2585
2595
  walkVelocity: number;
2586
2596
 
@@ -2628,12 +2638,22 @@ export declare interface PlayerEntityControllerOptions {
2628
2638
  canWalk?: () => boolean;
2629
2639
  /** A function allowing custom logic to determine if the entity can run. */
2630
2640
  canRun?: () => boolean;
2641
+ /** Overrides the animation(s) that will play when the entity is idle. */
2642
+ idleLoopedAnimations?: string[];
2643
+ /** Overrides the animation(s) that will play when the entity interacts (left click) */
2644
+ interactOneshotAnimations?: string[];
2645
+ /** Overrides the animation(s) that will play when the entity is jumping. */
2646
+ jumpOneshotAnimations?: string[];
2631
2647
  /** The upward velocity applied to the entity when it jumps. */
2632
2648
  jumpVelocity?: number;
2633
2649
  /** The normalized horizontal velocity applied to the entity when it runs. */
2634
2650
  runVelocity?: number;
2651
+ /** Overrides the animation(s) that will play when the entity is running. */
2652
+ runLoopedAnimations?: string[];
2635
2653
  /** Whether the entity sticks to platforms, defaults to true. */
2636
2654
  sticksToPlatforms?: boolean;
2655
+ /** Overrides the animation(s) that will play when the entity is walking. */
2656
+ walkLoopedAnimations?: string[];
2637
2657
  /** The normalized horizontal velocity applied to the entity when it walks. */
2638
2658
  walkVelocity?: number;
2639
2659
  }