hytopia 0.1.67 → 0.1.69

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.d.ts CHANGED
@@ -3034,6 +3034,7 @@ export declare class SceneUI implements protocol.Serializable {
3034
3034
 
3035
3035
 
3036
3036
 
3037
+
3037
3038
  /**
3038
3039
  * @param options - The options for the SceneUI instance.
3039
3040
  */
@@ -3045,6 +3046,7 @@ export declare class SceneUI implements protocol.Serializable {
3045
3046
  get position(): Vector3Like | undefined;
3046
3047
  get state(): Readonly<object>;
3047
3048
  get templateId(): string;
3049
+ get viewDistance(): number | undefined;
3048
3050
  get world(): World | undefined;
3049
3051
  /**
3050
3052
  * Loads the SceneUI into the world.
@@ -3076,6 +3078,12 @@ export declare class SceneUI implements protocol.Serializable {
3076
3078
  * @param state - The state to set.
3077
3079
  */
3078
3080
  setState(state: object): void;
3081
+ /**
3082
+ * Sets the view distance of the SceneUI.
3083
+ *
3084
+ * @param viewDistance - The view distance in the world.
3085
+ */
3086
+ setViewDistance(viewDistance: number): void;
3079
3087
  /**
3080
3088
  * Unloads the SceneUI from the world.
3081
3089
  */
@@ -3137,6 +3145,8 @@ export declare interface SceneUIOptions {
3137
3145
  state?: object;
3138
3146
  /** The template ID to use for this SceneUI */
3139
3147
  templateId: string;
3148
+ /** The maximum view distance the SceneUI will be visible to the player */
3149
+ viewDistance?: number;
3140
3150
  }
3141
3151
 
3142
3152
  /**
@@ -3580,12 +3590,27 @@ export declare class World implements protocol.Serializable {
3580
3590
 
3581
3591
 
3582
3592
 
3593
+
3594
+
3595
+
3596
+
3597
+
3583
3598
  /**
3584
3599
  * @param options - The options for the world.
3585
3600
  */
3586
3601
  constructor(options: WorldOptions);
3587
3602
  /** The unique ID of the world. */
3588
3603
  get id(): number;
3604
+ /** The color of the ambient light. */
3605
+ get ambientLightColor(): RgbColor;
3606
+ /** The intensity of the ambient light. */
3607
+ get ambientLightIntensity(): number;
3608
+ /** The color of the directional light. */
3609
+ get directionalLightColor(): RgbColor;
3610
+ /** The intensity of the directional light. */
3611
+ get directionalLightIntensity(): number;
3612
+ /** The position the directional light originates from. */
3613
+ get directionalLightPosition(): Vector3Like;
3589
3614
  /** The name of the world. */
3590
3615
  get name(): string;
3591
3616
  /** The URI of the skybox cubemap for the world. */
@@ -3614,6 +3639,31 @@ export declare class World implements protocol.Serializable {
3614
3639
  * @param map - The map to load.
3615
3640
  */
3616
3641
  loadMap(map: WorldMap): void;
3642
+ /**
3643
+ * Sets the color of the ambient light.
3644
+ * @param color - The color of the light.
3645
+ */
3646
+ setAmbientLightColor(color: RgbColor): void;
3647
+ /**
3648
+ * Sets the intensity of the ambient light.
3649
+ * @param intensity - The intensity.
3650
+ */
3651
+ setAmbientLightIntensity(intensity: number): void;
3652
+ /**
3653
+ * Sets the color of the directional light.
3654
+ * @param color - The color of the light.
3655
+ */
3656
+ setDirectionalLightColor(color: RgbColor): void;
3657
+ /**
3658
+ * Sets the intensity of the directional light.
3659
+ * @param intensity - The intensity.
3660
+ */
3661
+ setDirectionalLightIntensity(intensity: number): void;
3662
+ /**
3663
+ * Sets the position the directional light originates from.
3664
+ * @param position - The position in the world.
3665
+ */
3666
+ setDirectionalLightPosition(position: Vector3Like): void;
3617
3667
  /**
3618
3668
  * Starts the world loop, which begins ticking physics, entities, etc.
3619
3669
  */
@@ -3711,6 +3761,16 @@ export declare interface WorldMap {
3711
3761
  export declare interface WorldOptions {
3712
3762
  /** The unique ID of the world. */
3713
3763
  id: number;
3764
+ /** The color of the ambient light. */
3765
+ ambientLightColor?: RgbColor;
3766
+ /** The intensity of the ambient light. 0 to 1+ */
3767
+ ambientLightIntensity?: number;
3768
+ /** The color of the directional light. */
3769
+ directionalLightColor?: RgbColor;
3770
+ /** The intensity of the directional light. 0 to 1+ */
3771
+ directionalLightIntensity?: number;
3772
+ /** The position the directional light originates from. */
3773
+ directionalLightPosition?: Vector3Like;
3714
3774
  /** The name of the world. */
3715
3775
  name: string;
3716
3776
  /** The URI of the skybox cubemap for the world. */