Workers for chunk generation !
This commit is contained in:
@@ -67,8 +67,9 @@ types are the engine's own source, so `check-mods` typechecks against exactly th
|
||||
through: `engine.common.physics.move_body` is how every entity moves, on the server and on clients.
|
||||
- `#private` members can't be hooked. They're kept for things with rules that must hold, like a container's slots.
|
||||
- Hooks reach one JavaScript realm. Chunk workers run their own copy of the engine, so a client hook doesn't change
|
||||
meshing. Worldgen scripts run on the server, next to the server script, so hooking `engine.common.OverworldTerrain`
|
||||
from either changes the terrain.
|
||||
meshing. The server generates chunks in worldgen workers, and each loads the worldgen scripts into its own copy, so
|
||||
hooks on the terrain (`engine.common.OverworldTerrain`) go in the worldgen script. A server script's hooks there only
|
||||
reach the few chunks the game generates itself, so the world would come out different in places.
|
||||
|
||||
## Performance
|
||||
|
||||
|
||||
Reference in New Issue
Block a user