From c74c2a3133ad4d1f03b83021e53fb9e8a67b3914 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 6 Feb 2023 11:46:31 +0000 Subject: tick timing in main server loop, refactor, start on saving/loading chunks --- common/coords.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/coords.lua') diff --git a/common/coords.lua b/common/coords.lua index f0ca877..111429a 100644 --- a/common/coords.lua +++ b/common/coords.lua @@ -136,6 +136,10 @@ function ChunkPos.extents(self) local brq,brr = (self.u+1)*CHUNK_SIZE -1, (self.v+1)*CHUNK_SIZE -1 return Hex:make(tlq,tlr), Hex:make(brq,brr) end +function ChunkPos.filename(self) + -- filename of chunk with that cp + return "world/c_"..self.u.."_"..self.v..".dat" +end -- cgit v1.2.3