Module terrain

Source

Modules§

event_emitters 🔒

Structs§

Data
NpcData
Sys
This system will handle loading generated chunks and unloading unneeded chunks. 1. Inserts newly generated chunks into the TerrainGrid 2. Sends new chunks to nearby clients 3. Handles the chunk’s supplement (e.g. npcs) 4. Removes chunks outside the range of players

Enums§

SpawnEntityData
Convinient structure to use when you need to create new npc from EntityInfo

Constants§

SAFE_ZONE_RADIUS

Functions§

chunk_in_vd
convert_to_loaded_vd
prepare_for_vd_check 🔒
Returns: ((player_chunk_pos, player_vd_squared), entity, is_client)
prepare_player_presences

Type Aliases§

RtSimData 🔒
TerrainPersistenceData