Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
renderer/world/WorldRenderer
WorldRenderer
Class WorldRenderer
Hierarchy
Host
<
IWorldRendererEvents
>
WorldRenderer
Index
Constructors
constructor
Properties
default
Adaptor
default
Background
default
Background
Type
doodad
Like
Adaptor
dug
Adaptor
event
fence
Adaptor
field
Of
View
floor
Adaptor
lava
Adaptor
layers
mountain
Adaptor
mountain
Ground
Adaptor
notifier
particle
System
renderer
Platform
till
Adaptor
track
Adaptor
wall
Adaptor
water
Adaptor
Accessors
island
tile
Atlas
Methods
add
Or
Update
Overlay
add
Tile
To
Viewport
batch
Movable
calculate
Ambient
Color
compute
Sprites
In
Viewport
delete
get
Ambient
Color
Cave
get
Ambient
Color
Dawn
get
Ambient
Color
Day
get
Ambient
Color
Night
get
Ambient
Intensity
get
Bounds
get
Fog
Color
get
Pixel
Size
get
Tile
Scale
get
Viewport
get
Zoom
initialize
Sprite
Batch
load
remove
Overlay
render
render
World
render
World
Layer
screen
To
Tile
screen
To
Vector
set
Zoom
should
Render
sync
Viewport
update
All
Tiles
Constructors
constructor
new
World
Renderer
(
context
:
IRendererContext
)
:
WorldRenderer
Parameters
context:
IRendererContext
Returns
WorldRenderer
Properties
default
Adaptor
default
Adaptor
:
ITileAdaptor
default
Background
default
Background
:
TerrainTileInfo
default
Background
Type
default
Background
Type
:
TerrainType
doodad
Like
Adaptor
doodad
Like
Adaptor
:
ITileAdaptor
dug
Adaptor
dug
Adaptor
:
ITileAdaptor
Readonly
event
event
:
IEventEmitter
<
WorldRenderer
,
IWorldRendererEvents
>
fence
Adaptor
fence
Adaptor
:
default
Readonly
field
Of
View
field
Of
View
:
FieldOfView
floor
Adaptor
floor
Adaptor
:
ITileAdaptor
lava
Adaptor
lava
Adaptor
:
ITileAdaptor
layers
layers
:
Record
<
number
,
WorldLayerRenderer
>
mountain
Adaptor
mountain
Adaptor
:
ITileAdaptor
mountain
Ground
Adaptor
mountain
Ground
Adaptor
:
ITileAdaptor
Readonly
notifier
notifier
:
Notifier
Readonly
particle
System
particle
System
:
ParticleSystem
Readonly
renderer
Platform
renderer
Platform
:
IWorldRendererPlatform
till
Adaptor
till
Adaptor
:
ITileAdaptor
track
Adaptor
track
Adaptor
:
ITileAdaptor
wall
Adaptor
wall
Adaptor
:
default
water
Adaptor
water
Adaptor
:
ITileAdaptor
Accessors
island
get
island
(
)
:
default
Returns
default
tile
Atlas
get
tileAtlas
(
)
:
default
Returns
default
Methods
add
Or
Update
Overlay
add
Or
Update
Overlay
(
tile
:
default
, overlay
:
IOverlayInfo
)
:
void
Parameters
tile:
default
overlay:
IOverlayInfo
Returns
void
add
Tile
To
Viewport
add
Tile
To
Viewport
(
timeStamp
:
number
, visibleTiles
:
Set
<
default
>
, tile
:
default
, itemBatch
:
undefined
|
ISpriteBatch
)
:
void
Parameters
timeStamp:
number
visibleTiles:
Set
<
default
>
tile:
default
itemBatch:
undefined
|
ISpriteBatch
Returns
void
batch
Movable
batch
Movable
(
timeStamp
:
number
)
:
boolean
Batches entities
Returns
True when there's more rendering to be done
Parameters
timeStamp:
number
Returns
boolean
calculate
Ambient
Color
calculate
Ambient
Color
(
)
:
[
number
,
number
,
number
]
Returns
[
number
,
number
,
number
]
compute
Sprites
In
Viewport
compute
Sprites
In
Viewport
(
)
:
void
Returns
void
delete
delete
(
)
:
void
Returns
void
get
Ambient
Color
Cave
get
Ambient
Color
Cave
(
)
:
[
number
,
number
,
number
]
Returns
[
number
,
number
,
number
]
get
Ambient
Color
Dawn
get
Ambient
Color
Dawn
(
)
:
[
number
,
number
,
number
]
Returns
[
number
,
number
,
number
]
get
Ambient
Color
Day
get
Ambient
Color
Day
(
)
:
[
number
,
number
,
number
]
Returns
[
number
,
number
,
number
]
get
Ambient
Color
Night
get
Ambient
Color
Night
(
)
:
[
number
,
number
,
number
]
Returns
[
number
,
number
,
number
]
get
Ambient
Intensity
get
Ambient
Intensity
(
)
:
number
Returns
number
get
Bounds
get
Bounds
(
timeStamp
:
number
)
:
IBounds
Parameters
timeStamp:
number
Returns
IBounds
get
Fog
Color
get
Fog
Color
(
)
:
[
number
,
number
,
number
]
Returns
[
number
,
number
,
number
]
get
Pixel
Size
get
Pixel
Size
(
)
:
number
Returns
number
get
Tile
Scale
get
Tile
Scale
(
)
:
number
Returns
number
get
Viewport
get
Viewport
(
)
:
IVector2
Returns
IVector2
get
Zoom
get
Zoom
(
)
:
number
Returns
number
initialize
Sprite
Batch
initialize
Sprite
Batch
(
layer
:
SpriteBatchLayer
)
:
void
Parameters
layer:
SpriteBatchLayer
Returns
void
load
load
(
island
:
default
)
:
void
Parameters
island:
default
Returns
void
remove
Overlay
remove
Overlay
(
tile
:
default
, overlay
:
IOverlayInfo
)
:
void
Parameters
tile:
default
overlay:
IOverlayInfo
Returns
void
render
render
(
)
:
void
Returns
void
render
World
render
World
(
timeStamp
:
number
, x
:
number
, y
:
number
, z
:
number
)
:
void
Parameters
timeStamp:
number
x:
number
y:
number
z:
number
Returns
void
render
World
Layer
render
World
Layer
(
worldLayer
:
WorldLayerRenderer
, x
:
number
, y
:
number
, tileScale
:
number
, viewWidth
:
number
, viewHeight
:
number
, renderFlags
:
RenderFlag
, enableDepth
:
boolean
)
:
void
Parameters
worldLayer:
WorldLayerRenderer
x:
number
y:
number
tileScale:
number
viewWidth:
number
viewHeight:
number
renderFlags:
RenderFlag
enableDepth:
boolean
Returns
void
screen
To
Tile
screen
To
Tile
(
screenX
:
number
, screenY
:
number
)
:
undefined
|
default
Parameters
screenX:
number
screenY:
number
Returns
undefined
|
default
screen
To
Vector
screen
To
Vector
(
screenX
:
number
, screenY
:
number
, timeStamp
?:
number
)
:
default
Parameters
screenX:
number
screenY:
number
timeStamp:
number
= game.absoluteTime
Returns
default
set
Zoom
set
Zoom
(
zoom
:
number
)
:
void
Parameters
zoom:
number
Returns
void
should
Render
should
Render
(
)
:
RenderFlag
Returns
RenderFlag
sync
Viewport
sync
Viewport
(
)
:
void
Returns
void
update
All
Tiles
update
All
Tiles
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
World
Renderer
constructor
default
Adaptor
default
Background
default
Background
Type
doodad
Like
Adaptor
dug
Adaptor
event
fence
Adaptor
field
Of
View
floor
Adaptor
lava
Adaptor
layers
mountain
Adaptor
mountain
Ground
Adaptor
notifier
particle
System
renderer
Platform
till
Adaptor
track
Adaptor
wall
Adaptor
water
Adaptor
island
tile
Atlas
add
Or
Update
Overlay
add
Tile
To
Viewport
batch
Movable
calculate
Ambient
Color
compute
Sprites
In
Viewport
delete
get
Ambient
Color
Cave
get
Ambient
Color
Dawn
get
Ambient
Color
Day
get
Ambient
Color
Night
get
Ambient
Intensity
get
Bounds
get
Fog
Color
get
Pixel
Size
get
Tile
Scale
get
Viewport
get
Zoom
initialize
Sprite
Batch
load
remove
Overlay
render
render
World
render
World
Layer
screen
To
Tile
screen
To
Vector
set
Zoom
should
Render
sync
Viewport
update
All
Tiles
Generated using
TypeDoc
Batches entities
Returns
True when there's more rendering to be done