# HG changeset patch # User Steve Losh # Date 1311293818 14400 # Node ID c4629568f91a93247638166a5c159d3ab77206cc # Parent 39d48991a79bfd0478975b7b10f87800fa73c75a Tweaks. diff -r 39d48991a79b -r c4629568f91a src/clojurecraft/data.clj --- 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])