c4629568f91a

Tweaks.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 21 Jul 2011 20:16:58 -0400
parents 39d48991a79b
children 85f44db5ab4f
branches/tags (none)
files src/clojurecraft/data.clj

Changes

--- a/src/clojurecraft/data.clj	Thu Jul 21 20:14:53 2011 -0400
+++ b/src/clojurecraft/data.clj	Thu Jul 21 20:16:58 2011 -0400
@@ -32,7 +32,10 @@
 ; Chunk
 ;
 ; A single chunk in the world.
-(defrecord Chunk [])
+;
+; blocks -> [block ...]
+;   A vector of the blocks in this chunk.
+(defrecord Chunk [blocks])
 
 ; Block
 ;
@@ -81,12 +84,15 @@
 ;
 ; A representation of a single world/server, shared by all bots connected to it.
 ;
-; server   -> {:name hostname :port port}
+; server -> {:name hostname :port port}
+;
 ; entities -> (ref {eid (ref Entity) ...})
-;             A map of all the entities in the world.
-; chunks   -> (ref {[x y z] [(ref Chunk) ...] ...})
-;             A map of all the chunks in the world.
-; time     -> (ref integer)
-;             The current world time.
+;   A map of all the entities in the world.
+;
+; chunks -> (ref {[x y z] [(ref Chunk) ...] ...})
+;   A map of all the chunks in the world.
+;
+; time -> (ref integer)
+;   The current world time.
 (defrecord World [server entities chunks time])