diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-09-21 00:50:33 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-09-21 00:50:33 +0200 |
commit | b94000e63e9d8753249754f91027d315bdbe5ebe (patch) | |
tree | 20fa972b1346c1aafbcd5ce5511179e9e1b1a696 /mcmap | |
parent | f051ce2392bc0bfae52945e8f53fe38f2d095637 (diff) | |
download | gomcmap-b94000e63e9d8753249754f91027d315bdbe5ebe.tar.gz gomcmap-b94000e63e9d8753249754f91027d315bdbe5ebe.tar.bz2 gomcmap-b94000e63e9d8753249754f91027d315bdbe5ebe.zip |
Added/improved some documentation.
Diffstat (limited to 'mcmap')
-rw-r--r-- | mcmap/chunk.go | 2 | ||||
-rw-r--r-- | mcmap/examples/addchunk/main.go | 1 | ||||
-rw-r--r-- | mcmap/examples/delchunk/main.go | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/mcmap/chunk.go b/mcmap/chunk.go index dfac5a7..1f7f5e1 100644 --- a/mcmap/chunk.go +++ b/mcmap/chunk.go @@ -127,7 +127,7 @@ func (c *Chunk) Biome(x, z int) Biome { return c.biomes[z*ChunkSizeXZ+x] } // SetBiome sets the biome at x,z. func (c *Chunk) SetBiome(x, z int, bio Biome) { c.biomes[z*ChunkSizeXZ+x] = bio } -// MarkUnused marks the chunk as unused. If all chunks of a superchunk are marked as unused, the superchunk will be unloaded and saved (if needed). +// MarkUnused marks the chunk as unused. If all chunks of a superchunk are marked as unused, the underlying superchunk will be unloaded and saved (if needed). // // You must not use the chunk any longer, after you called this function. // diff --git a/mcmap/examples/addchunk/main.go b/mcmap/examples/addchunk/main.go index c1920fd..5807d6e 100644 --- a/mcmap/examples/addchunk/main.go +++ b/mcmap/examples/addchunk/main.go @@ -1,3 +1,4 @@ +// addchunk adds a chunk at 200, 200 that consists of sandstone. package main import ( diff --git a/mcmap/examples/delchunk/main.go b/mcmap/examples/delchunk/main.go index c8996a5..e19aa9a 100644 --- a/mcmap/examples/delchunk/main.go +++ b/mcmap/examples/delchunk/main.go @@ -1,3 +1,4 @@ +// delchunk deletes the chunk at 200, 200 package main import ( |