]> git.lizzy.rs Git - hydra-dragonfire.git/blob - doc/comp_map.md
Merge pull request #4 from Minetest-j45/master
[hydra-dragonfire.git] / doc / comp_map.md
1 # Map Component
2 Source code: [comp_map.go](../comp_map.go)
3
4 The Map component stores a reference to a `hydra.map` (See [map.md](map.md)).
5
6 Initially, an empty map is created. You can replace this by a map reference obtained from `hydra.map` however: this way, multiple clients can share a map and explore different areas of it.
7
8 Handles the `blk_data` and `node_metas_changed` packets.
9 May send `got_blks` packets.
10
11 ## Functions
12
13 `self:set(mapref)`: Data will be stored in `mapref` in the future.
14
15 `self:get()`: Returns the current `mapref`.
16