summaryrefslogtreecommitdiff
path: root/common/coords.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-02-06 11:46:31 +0000
committerubq323 <ubq323@ubq323.website>2023-02-06 11:46:50 +0000
commitc74c2a3133ad4d1f03b83021e53fb9e8a67b3914 (patch)
tree22d415e85381c9a09c471afa4a0a6f1824f67b87 /common/coords.lua
parentc2184634b6d3c3268c08c8d430506cfb60245fdf (diff)
tick timing in main server loop, refactor, start on saving/loading chunks
Diffstat (limited to 'common/coords.lua')
-rw-r--r--common/coords.lua4
1 files changed, 4 insertions, 0 deletions
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