hytopia 0.1.69 → 0.1.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/docs/server.chatmanager.md +46 -2
  2. package/docs/server.chatmanager.onbroadcastmessage.md +13 -0
  3. package/docs/server.chatmanager.sendbroadcastmessage.md +1 -1
  4. package/docs/server.chatmanager.sendplayermessage.md +1 -1
  5. package/docs/server.light._constructor_.md +49 -0
  6. package/docs/server.light.angle.md +13 -0
  7. package/docs/server.light.attachedtoentity.md +13 -0
  8. package/docs/server.light.color.md +13 -0
  9. package/docs/server.light.despawn.md +17 -0
  10. package/docs/server.light.distance.md +13 -0
  11. package/docs/server.light.id.md +13 -0
  12. package/docs/server.light.intensity.md +13 -0
  13. package/docs/server.light.isspawned.md +13 -0
  14. package/docs/server.light.md +573 -0
  15. package/docs/server.light.offset.md +13 -0
  16. package/docs/server.light.penumbra.md +13 -0
  17. package/docs/server.light.position.md +13 -0
  18. package/docs/server.light.setangle.md +53 -0
  19. package/docs/server.light.setattachedtoentity.md +53 -0
  20. package/docs/server.light.setcolor.md +53 -0
  21. package/docs/server.light.setdistance.md +53 -0
  22. package/docs/server.light.setintensity.md +53 -0
  23. package/docs/server.light.setoffset.md +53 -0
  24. package/docs/server.light.setpenumbra.md +53 -0
  25. package/docs/server.light.setposition.md +53 -0
  26. package/docs/server.light.settrackedentity.md +53 -0
  27. package/docs/server.light.settrackedposition.md +53 -0
  28. package/docs/server.light.spawn.md +53 -0
  29. package/docs/server.light.trackedentity.md +13 -0
  30. package/docs/server.light.trackedposition.md +13 -0
  31. package/docs/server.light.type.md +13 -0
  32. package/docs/server.light.world.md +13 -0
  33. package/docs/server.lighteventpayload.despawn.light.md +11 -0
  34. package/docs/server.lighteventpayload.despawn.md +53 -0
  35. package/docs/server.lighteventpayload.md +136 -0
  36. package/docs/server.lighteventpayload.setangle.angle.md +11 -0
  37. package/docs/server.lighteventpayload.setangle.light.md +11 -0
  38. package/docs/server.lighteventpayload.setangle.md +70 -0
  39. package/docs/server.lighteventpayload.setattachedtoentity.entity.md +11 -0
  40. package/docs/server.lighteventpayload.setattachedtoentity.light.md +11 -0
  41. package/docs/server.lighteventpayload.setattachedtoentity.md +70 -0
  42. package/docs/server.lighteventpayload.setcolor.color.md +11 -0
  43. package/docs/server.lighteventpayload.setcolor.light.md +11 -0
  44. package/docs/server.lighteventpayload.setcolor.md +70 -0
  45. package/docs/server.lighteventpayload.setdistance.distance.md +11 -0
  46. package/docs/server.lighteventpayload.setdistance.light.md +11 -0
  47. package/docs/server.lighteventpayload.setdistance.md +70 -0
  48. package/docs/server.lighteventpayload.setintensity.intensity.md +11 -0
  49. package/docs/server.lighteventpayload.setintensity.light.md +11 -0
  50. package/docs/server.lighteventpayload.setintensity.md +70 -0
  51. package/docs/server.lighteventpayload.setoffset.light.md +11 -0
  52. package/docs/server.lighteventpayload.setoffset.md +70 -0
  53. package/docs/server.lighteventpayload.setoffset.offset.md +11 -0
  54. package/docs/server.lighteventpayload.setpenumbra.light.md +11 -0
  55. package/docs/server.lighteventpayload.setpenumbra.md +70 -0
  56. package/docs/server.lighteventpayload.setpenumbra.penumbra.md +11 -0
  57. package/docs/server.lighteventpayload.setposition.light.md +11 -0
  58. package/docs/server.lighteventpayload.setposition.md +70 -0
  59. package/docs/server.lighteventpayload.setposition.position.md +11 -0
  60. package/docs/server.lighteventpayload.settrackedentity.entity.md +11 -0
  61. package/docs/server.lighteventpayload.settrackedentity.light.md +11 -0
  62. package/docs/server.lighteventpayload.settrackedentity.md +70 -0
  63. package/docs/server.lighteventpayload.settrackedposition.light.md +11 -0
  64. package/docs/server.lighteventpayload.settrackedposition.md +70 -0
  65. package/docs/server.lighteventpayload.settrackedposition.position.md +11 -0
  66. package/docs/server.lighteventpayload.spawn.light.md +11 -0
  67. package/docs/server.lighteventpayload.spawn.md +53 -0
  68. package/docs/server.lighteventtype.md +215 -0
  69. package/docs/server.lightmanager.getallentityattachedlights.md +55 -0
  70. package/docs/server.lightmanager.getalllights.md +19 -0
  71. package/docs/server.lightmanager.md +113 -0
  72. package/docs/server.lightmanager.world.md +13 -0
  73. package/docs/server.lightoptions.angle.md +13 -0
  74. package/docs/server.lightoptions.attachedtoentity.md +13 -0
  75. package/docs/server.lightoptions.color.md +13 -0
  76. package/docs/server.lightoptions.distance.md +13 -0
  77. package/docs/server.lightoptions.intensity.md +13 -0
  78. package/docs/server.lightoptions.md +247 -0
  79. package/docs/server.lightoptions.offset.md +13 -0
  80. package/docs/server.lightoptions.penumbra.md +13 -0
  81. package/docs/server.lightoptions.position.md +13 -0
  82. package/docs/server.lightoptions.trackedentity.md +13 -0
  83. package/docs/server.lightoptions.trackedposition.md +13 -0
  84. package/docs/server.lightoptions.type.md +13 -0
  85. package/docs/server.lighttype.md +61 -0
  86. package/docs/server.md +66 -0
  87. package/docs/server.sceneui.attachedtoentity.md +2 -0
  88. package/docs/server.sceneui.id.md +2 -0
  89. package/docs/server.sceneui.isloaded.md +2 -0
  90. package/docs/server.sceneui.md +18 -0
  91. package/docs/server.sceneui.offset.md +2 -0
  92. package/docs/server.sceneui.position.md +2 -0
  93. package/docs/server.sceneui.state.md +2 -0
  94. package/docs/server.sceneui.templateid.md +2 -0
  95. package/docs/server.sceneui.viewdistance.md +2 -0
  96. package/docs/server.sceneui.world.md +2 -0
  97. package/docs/server.world.lightmanager.md +13 -0
  98. package/docs/server.world.md +26 -5
  99. package/docs/server.world.setambientlightcolor.md +1 -1
  100. package/docs/server.world.setambientlightintensity.md +1 -1
  101. package/docs/server.world.setdirectionallightcolor.md +1 -1
  102. package/docs/server.world.setdirectionallightintensity.md +1 -1
  103. package/docs/server.world.setdirectionallightposition.md +1 -1
  104. package/docs/server.worldoptions.ambientlightcolor.md +1 -1
  105. package/docs/server.worldoptions.ambientlightintensity.md +1 -1
  106. package/docs/server.worldoptions.directionallightcolor.md +1 -1
  107. package/docs/server.worldoptions.directionallightintensity.md +1 -1
  108. package/docs/server.worldoptions.directionallightposition.md +1 -1
  109. package/docs/server.worldoptions.md +5 -5
  110. package/examples/lighting/README.md +3 -0
  111. package/examples/lighting/assets/map.json +13153 -0
  112. package/examples/lighting/index.ts +120 -0
  113. package/examples/lighting/package.json +16 -0
  114. package/package.json +1 -1
  115. package/server.api.json +2991 -193
  116. package/server.d.ts +311 -13
  117. package/server.js +87 -87
package/server.d.ts CHANGED
@@ -614,6 +614,15 @@ export declare enum ChatEventType {
614
614
  * @public
615
615
  */
616
616
  export declare class ChatManager {
617
+ /**
618
+ * A function that is called when a broadcast (public) message is sent
619
+ * by a player or the server.
620
+ *
621
+ * @param player - The player that sent the message, or undefined if the message is a system message from the server.
622
+ * @param message - The message to send.
623
+ * @param color - The color of the message as a hex color code, excluding #.
624
+ */
625
+ onBroadcastMessage?: (player: Player | undefined, message: string, color?: string) => void;
617
626
 
618
627
 
619
628
 
@@ -629,7 +638,7 @@ export declare class ChatManager {
629
638
  */
630
639
  unregisterCommand(command: string): void;
631
640
  /**
632
- * Send a broadcast message to all players in the world.
641
+ * Send a system broadcast message to all players in the world.
633
642
  * @param message - The message to send.
634
643
  * @param color - The color of the message as a hex color code, excluding #.
635
644
  *
@@ -640,7 +649,7 @@ export declare class ChatManager {
640
649
  */
641
650
  sendBroadcastMessage(message: string, color?: string): void;
642
651
  /**
643
- * Send a message to a specific player, only visible to them.
652
+ * Send a system message to a specific player, only visible to them.
644
653
  * @param player - The player to send the message to.
645
654
  * @param message - The message to send.
646
655
  * @param color - The color of the message as a hex color code, excluding #.
@@ -653,6 +662,7 @@ export declare class ChatManager {
653
662
  sendPlayerMessage(player: Player, message: string, color?: string): void;
654
663
 
655
664
 
665
+
656
666
  }
657
667
 
658
668
  /**
@@ -1763,6 +1773,283 @@ export declare enum GameServerEventType {
1763
1773
  STOP = "GAMESERVER.STOP"
1764
1774
  }
1765
1775
 
1776
+ /**
1777
+ * Represents a light in a world. Lights can be point lights
1778
+ * or spotlights.
1779
+ *
1780
+ * @remarks
1781
+ * Lights are created directly as instances. They support a
1782
+ * variety of configuration options through the {@link LightOptions}
1783
+ * constructor argument.
1784
+ *
1785
+ * @example
1786
+ * ```typescript
1787
+ * const light = new Light({
1788
+ * attachedToEntity: playerEntity,
1789
+ * color: { r: 255, g: 0, b: 0 },
1790
+ * intensity: 5,
1791
+ * offset: { x: 0, y: 1, z: 0 },
1792
+ * });
1793
+ *
1794
+ * light.spawn(world);
1795
+ * ```
1796
+ *
1797
+ * @public
1798
+ */
1799
+ export declare class Light implements protocol.Serializable {
1800
+
1801
+
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+
1812
+
1813
+ /**
1814
+ * @param options - The options for the Light instance.
1815
+ */
1816
+ constructor(options: LightOptions);
1817
+ /** The unique identifier for the Light. */
1818
+ get id(): number | undefined;
1819
+ /** If type is spotlight, the angle of the spotlight. */
1820
+ get angle(): number | undefined;
1821
+ /** The entity to which the Light is attached if explicitly set. */
1822
+ get attachedToEntity(): Entity | undefined;
1823
+ /** The color of the light. */
1824
+ get color(): RgbColor;
1825
+ /** The maximum distance the light will illuminate. 0 does not limit distance. Defaults to 0. */
1826
+ get distance(): number | undefined;
1827
+ /** The intensity of the light in candela (cd). Defaults to 1 */
1828
+ get intensity(): number;
1829
+ /** Whether the Light is spawned into the world. */
1830
+ get isSpawned(): boolean;
1831
+ /** The offset of the light from the attached entity or position. */
1832
+ get offset(): Vector3Like | undefined;
1833
+ /** If type is spotlight, the penumbra of the spotlight. */
1834
+ get penumbra(): number | undefined;
1835
+ /** The position of the light in the world if explicitly set. */
1836
+ get position(): Vector3Like | undefined;
1837
+ /** If type is spotlight, the entity the spotlight will constantly point at. */
1838
+ get trackedEntity(): Entity | undefined;
1839
+ /** If type is spotlight, the position the spotlight will constantly point at. */
1840
+ get trackedPosition(): Vector3Like | undefined;
1841
+ /** The type of light. Defaults to point light. */
1842
+ get type(): LightType;
1843
+ /** The world the Light is spawned into. */
1844
+ get world(): World | undefined;
1845
+ /**
1846
+ * Sets the angle of the spotlight if the light type is spotlight.
1847
+ *
1848
+ * @param angle - The angle of the spotlight.
1849
+ */
1850
+ setAngle(angle: number): void;
1851
+ /**
1852
+ * Sets the entity to which the Light is attached.
1853
+ *
1854
+ * @param entity - The entity to attach the Light to.
1855
+ */
1856
+ setAttachedToEntity(entity: Entity): void;
1857
+ /**
1858
+ * Sets the color of the light.
1859
+ *
1860
+ * @param color - The color of the light.
1861
+ */
1862
+ setColor(color: RgbColor): void;
1863
+ /**
1864
+ * Sets the maximum distance the light will illuminate.
1865
+ *
1866
+ * @param distance - The maximum distance the light will illuminate.
1867
+ */
1868
+ setDistance(distance: number): void;
1869
+ /**
1870
+ * Sets the intensity of the light.
1871
+ *
1872
+ * @param intensity - The intensity of the light.
1873
+ */
1874
+ setIntensity(intensity: number): void;
1875
+ /**
1876
+ * Sets the offset of the light from the attached entity or position.
1877
+ *
1878
+ * @param offset - The offset of the light.
1879
+ */
1880
+ setOffset(offset: Vector3Like): void;
1881
+ /**
1882
+ * Sets the penumbra of the spotlight if the light type is spotlight.
1883
+ *
1884
+ * @param penumbra - The penumbra of the spotlight.
1885
+ */
1886
+ setPenumbra(penumbra: number): void;
1887
+ /**
1888
+ * Sets the position of the light.
1889
+ *
1890
+ * @param position - The position of the light.
1891
+ */
1892
+ setPosition(position: Vector3Like): void;
1893
+ /**
1894
+ * Sets the entity the spotlight will constantly point at if the light type is spotlight.
1895
+ *
1896
+ * @param entity - The entity the spotlight will constantly point at.
1897
+ */
1898
+ setTrackedEntity(entity: Entity): void;
1899
+ /**
1900
+ * Sets the position the spotlight will constantly point at if the light type is spotlight.
1901
+ *
1902
+ * @param position - The position the spotlight will constantly point at.
1903
+ */
1904
+ setTrackedPosition(position: Vector3Like): void;
1905
+ /**
1906
+ * Despawns the Light from the world.
1907
+ */
1908
+ despawn(): void;
1909
+ /**
1910
+ * Spawns the Light into the world.
1911
+ *
1912
+ * @param world - The world to spawn the Light into.
1913
+ */
1914
+ spawn(world: World): void;
1915
+
1916
+ }
1917
+
1918
+ /** Payloads for events a Light instance can emit. @public */
1919
+ export declare namespace LightEventPayload {
1920
+ export interface Despawn {
1921
+ light: Light;
1922
+ }
1923
+ export interface SetAngle {
1924
+ light: Light;
1925
+ angle: number;
1926
+ }
1927
+ export interface SetAttachedToEntity {
1928
+ light: Light;
1929
+ entity: Entity;
1930
+ }
1931
+ export interface SetColor {
1932
+ light: Light;
1933
+ color: RgbColor;
1934
+ }
1935
+ export interface SetDistance {
1936
+ light: Light;
1937
+ distance: number;
1938
+ }
1939
+ export interface SetIntensity {
1940
+ light: Light;
1941
+ intensity: number;
1942
+ }
1943
+ export interface SetOffset {
1944
+ light: Light;
1945
+ offset: Vector3Like;
1946
+ }
1947
+ export interface SetPenumbra {
1948
+ light: Light;
1949
+ penumbra: number;
1950
+ }
1951
+ export interface SetPosition {
1952
+ light: Light;
1953
+ position: Vector3Like;
1954
+ }
1955
+ export interface SetTrackedEntity {
1956
+ light: Light;
1957
+ entity: Entity;
1958
+ }
1959
+ export interface SetTrackedPosition {
1960
+ light: Light;
1961
+ position: Vector3Like;
1962
+ }
1963
+ export interface Spawn {
1964
+ light: Light;
1965
+ }
1966
+ }
1967
+
1968
+ /** Event types a Light instance can emit. @public */
1969
+ export declare enum LightEventType {
1970
+ DESPAWN = "LIGHT.DESPAWN",
1971
+ SET_ANGLE = "LIGHT.SET_ANGLE",
1972
+ SET_ATTACHED_TO_ENTITY = "LIGHT.SET_ATTACHED_TO_ENTITY",
1973
+ SET_COLOR = "LIGHT.SET_COLOR",
1974
+ SET_DISTANCE = "LIGHT.SET_DISTANCE",
1975
+ SET_INTENSITY = "LIGHT.SET_INTENSITY",
1976
+ SET_OFFSET = "LIGHT.SET_OFFSET",
1977
+ SET_PENUMBRA = "LIGHT.SET_PENUMBRA",
1978
+ SET_POSITION = "LIGHT.SET_POSITION",
1979
+ SET_TRACKED_ENTITY = "LIGHT.SET_TRACKED_ENTITY",
1980
+ SET_TRACKED_POSITION = "LIGHT.SET_TRACKED_POSITION",
1981
+ SET_TYPE = "LIGHT.SET_TYPE",
1982
+ SPAWN = "LIGHT.SPAWN"
1983
+ }
1984
+
1985
+ /**
1986
+ * Manages Light instances in a world.
1987
+ *
1988
+ * @remarks
1989
+ * The LightManager is created internally as a singleton
1990
+ * for each {@link World} instance in a game server.
1991
+ * It allows retrieval of all loaded Light instances,
1992
+ * entity attached Light instances, and more.
1993
+ *
1994
+ * @public
1995
+ */
1996
+ export declare class LightManager {
1997
+
1998
+
1999
+
2000
+
2001
+ /** The world the LightManager is for. */
2002
+ get world(): World;
2003
+
2004
+ /**
2005
+ * Retrieves all spawned Light instances for the world.
2006
+ *
2007
+ * @returns An array of Light instances.
2008
+ */
2009
+ getAllLights(): Light[];
2010
+ /**
2011
+ * Retrieves all spawned Light instances attached to a specific entity.
2012
+ *
2013
+ * @param entity - The entity to get attached Light instances for.
2014
+ * @returns An array of Light instances.
2015
+ */
2016
+ getAllEntityAttachedLights(entity: Entity): Light[];
2017
+
2018
+
2019
+ }
2020
+
2021
+ /** Options for creating a Light instance. @public */
2022
+ export declare interface LightOptions {
2023
+ /** If type is spotlight, the angle of the spotlight. */
2024
+ angle?: number;
2025
+ /** If set, the light will be attached to this entity. */
2026
+ attachedToEntity?: Entity;
2027
+ /** The color of the light. Defaults to white. */
2028
+ color?: RgbColor;
2029
+ /** The maximum distance the light will illuminate. 0 does not limit distance. Defaults to 0. */
2030
+ distance?: number;
2031
+ /** The intensity of the light in candela (cd). Defaults to 1 */
2032
+ intensity?: number;
2033
+ /** The offset of the light from the attached entity or position. */
2034
+ offset?: Vector3Like;
2035
+ /** If type is spotlight, the penumbra of the spotlight. Defaults to 0 */
2036
+ penumbra?: number;
2037
+ /** If set, the light will be attached at this position. */
2038
+ position?: Vector3Like;
2039
+ /** If type is spotlight, the entity the spotlight will constantly point at. */
2040
+ trackedEntity?: Entity;
2041
+ /** If type is spotlight, the position the spotlight will constantly point at. */
2042
+ trackedPosition?: Vector3Like;
2043
+ /** The type of light. Defaults to point light. */
2044
+ type?: LightType;
2045
+ }
2046
+
2047
+ /** The types a Light can be. @public */
2048
+ export declare enum LightType {
2049
+ POINTLIGHT = 0,
2050
+ SPOTLIGHT = 1
2051
+ }
2052
+
1766
2053
  /** A bounding box for a model. @public */
1767
2054
  declare type ModelBoundingBox = {
1768
2055
  min: {
@@ -3039,14 +3326,23 @@ export declare class SceneUI implements protocol.Serializable {
3039
3326
  * @param options - The options for the SceneUI instance.
3040
3327
  */
3041
3328
  constructor(options: SceneUIOptions);
3329
+ /** The unique identifier for the SceneUI. */
3042
3330
  get id(): number | undefined;
3331
+ /** The entity to which the SceneUI is attached if explicitly set. */
3043
3332
  get attachedToEntity(): Entity | undefined;
3333
+ /** Whether the SceneUI is loaded into the world. */
3044
3334
  get isLoaded(): boolean;
3335
+ /** The offset of the SceneUI from the attached entity or position. */
3045
3336
  get offset(): Vector3Like | undefined;
3337
+ /** The position of the SceneUI in the world if explicitly set. */
3046
3338
  get position(): Vector3Like | undefined;
3339
+ /** The state of the SceneUI. */
3047
3340
  get state(): Readonly<object>;
3341
+ /** The template ID of the SceneUI. */
3048
3342
  get templateId(): string;
3343
+ /** The maximum view distance the SceneUI will be visible to the player. */
3049
3344
  get viewDistance(): number | undefined;
3345
+ /** The world the SceneUI is loaded into. */
3050
3346
  get world(): World | undefined;
3051
3347
  /**
3052
3348
  * Loads the SceneUI into the world.
@@ -3130,7 +3426,6 @@ export declare class SceneUIManager {
3130
3426
  */
3131
3427
  unloadEntityAttachedSceneUIs(entity: Entity): void;
3132
3428
 
3133
-
3134
3429
  }
3135
3430
 
3136
3431
  /** Options for creating a SceneUI instance. @public */
@@ -3595,6 +3890,7 @@ export declare class World implements protocol.Serializable {
3595
3890
 
3596
3891
 
3597
3892
 
3893
+
3598
3894
  /**
3599
3895
  * @param options - The options for the world.
3600
3896
  */
@@ -3627,6 +3923,8 @@ export declare class World implements protocol.Serializable {
3627
3923
  get entityManager(): EntityManager;
3628
3924
  /** The event router for the world. */
3629
3925
  get eventRouter(): EventRouter;
3926
+ /** The light manager for the world. */
3927
+ get lightManager(): LightManager;
3630
3928
  /** The world loop for the world. */
3631
3929
  get loop(): WorldLoop;
3632
3930
 
@@ -3640,27 +3938,27 @@ export declare class World implements protocol.Serializable {
3640
3938
  */
3641
3939
  loadMap(map: WorldMap): void;
3642
3940
  /**
3643
- * Sets the color of the ambient light.
3941
+ * Sets the color of the world's ambient light.
3644
3942
  * @param color - The color of the light.
3645
3943
  */
3646
3944
  setAmbientLightColor(color: RgbColor): void;
3647
3945
  /**
3648
- * Sets the intensity of the ambient light.
3946
+ * Sets the intensity of the world's ambient light.
3649
3947
  * @param intensity - The intensity.
3650
3948
  */
3651
3949
  setAmbientLightIntensity(intensity: number): void;
3652
3950
  /**
3653
- * Sets the color of the directional light.
3951
+ * Sets the color of the world's directional light.
3654
3952
  * @param color - The color of the light.
3655
3953
  */
3656
3954
  setDirectionalLightColor(color: RgbColor): void;
3657
3955
  /**
3658
- * Sets the intensity of the directional light.
3956
+ * Sets the intensity of the world's directional light.
3659
3957
  * @param intensity - The intensity.
3660
3958
  */
3661
3959
  setDirectionalLightIntensity(intensity: number): void;
3662
3960
  /**
3663
- * Sets the position the directional light originates from.
3961
+ * Sets the position the world's directional light originates from.
3664
3962
  * @param position - The position in the world.
3665
3963
  */
3666
3964
  setDirectionalLightPosition(position: Vector3Like): void;
@@ -3761,15 +4059,15 @@ export declare interface WorldMap {
3761
4059
  export declare interface WorldOptions {
3762
4060
  /** The unique ID of the world. */
3763
4061
  id: number;
3764
- /** The color of the ambient light. */
4062
+ /** The color of the ambient light for the world. */
3765
4063
  ambientLightColor?: RgbColor;
3766
- /** The intensity of the ambient light. 0 to 1+ */
4064
+ /** The intensity of the ambient light for the world. 0 to 1+ */
3767
4065
  ambientLightIntensity?: number;
3768
- /** The color of the directional light. */
4066
+ /** The color of the directional light for the world. */
3769
4067
  directionalLightColor?: RgbColor;
3770
- /** The intensity of the directional light. 0 to 1+ */
4068
+ /** The intensity of the directional light for the world. 0 to 1+ */
3771
4069
  directionalLightIntensity?: number;
3772
- /** The position the directional light originates from. */
4070
+ /** The position the directional light originates from for the world. */
3773
4071
  directionalLightPosition?: Vector3Like;
3774
4072
  /** The name of the world. */
3775
4073
  name: string;