diff options
Diffstat (limited to 'src/world.rhm')
-rw-r--r-- | src/world.rhm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/world.rhm b/src/world.rhm index 01a1553..75747bd 100644 --- a/src/world.rhm +++ b/src/world.rhm @@ -6,6 +6,9 @@ import: "../thread/thread.rhm" open export: + all_from("entity.rhm") + all_from("chunk.rhm") + all_from("item.rhm") all_defined @@ -42,7 +45,7 @@ class World(chunks :: MutableList.now_of(Chunk), // TODO should be accessing some DB to get player and it should // return some session token that the client would use when refering // to the player - let player = EntityPlayer(user_id, 0, 0, chunks[0]) + let player = EntityPlayer(user_id, 0, 0) player.equip[Slot.right_hand] := Item.bronze_axe entities[user_id] := player let resp = MessageLoginResponse(user_id) @@ -52,7 +55,8 @@ class World(chunks :: MutableList.now_of(Chunk), method get_chunk(user_id :: Int, thr): // TODO there should be a session token to user entity system let player :: Entity = entities[user_id] - let chunk = player.current_chunk + //let chunk = player.current_chunk + let chunk = chunks[0] let resp = MessageGetChunksResponse(chunk) thread_send(thr, resp) |