Strata - v1.4.10
GitHub
Examples
Preparing search index...
strata
WeatherSystemCore
Class WeatherSystemCore
Core weather system class for environmental simulation.
Index
Constructors
constructor
Methods
get
Precipitation
Type
get
State
get
Transition
Progress
get
Wind
Vector
is
Transitioning
set
Immediate
should
Show
Lightning
subscribe
transition
To
update
Constructors
constructor
new
WeatherSystemCore
(
initialState
?:
Partial
<
WeatherStateConfig
>
,
)
:
WeatherSystemCore
Parameters
initialState
:
Partial
<
WeatherStateConfig
>
= {}
Returns
WeatherSystemCore
Methods
get
Precipitation
Type
getPrecipitationType
()
:
"none"
|
"rain"
|
"snow"
Returns
"none"
|
"rain"
|
"snow"
get
State
getState
()
:
WeatherStateConfig
Returns
WeatherStateConfig
get
Transition
Progress
getTransitionProgress
()
:
number
Returns
number
get
Wind
Vector
getWindVector
()
:
Vector3
Returns
Vector3
is
Transitioning
isTransitioning
()
:
boolean
Returns
boolean
set
Immediate
setImmediate
(
state
:
Partial
<
WeatherStateConfig
>
)
:
void
Parameters
state
:
Partial
<
WeatherStateConfig
>
Returns
void
should
Show
Lightning
shouldShowLightning
()
:
boolean
Returns
boolean
subscribe
subscribe
(
listener
:
(
state
:
WeatherStateConfig
)
=>
void
)
:
()
=>
void
Parameters
listener
:
(
state
:
WeatherStateConfig
)
=>
void
Returns
()
=>
void
transition
To
transitionTo
(
targetState
:
Partial
<
WeatherStateConfig
>
,
duration
?:
number
)
:
void
Parameters
targetState
:
Partial
<
WeatherStateConfig
>
duration
:
number
= 5
Returns
void
update
update
(
deltaTime
:
number
)
:
void
Parameters
deltaTime
:
number
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
Precipitation
Type
get
State
get
Transition
Progress
get
Wind
Vector
is
Transitioning
set
Immediate
should
Show
Lightning
subscribe
transition
To
update
GitHub
Examples
Strata - v1.4.10
Loading...
Core weather system class for environmental simulation.