aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src/lib.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-08 23:45:15 -0500
committermat <github@matdoes.dev>2022-05-08 23:45:15 -0500
commit345cecf7afa84df2d5ecf075ecfb499e3fd10a55 (patch)
tree4657aebf820aab0e934cc501fcbb822d5ef2c84f /azalea-world/src/lib.rs
parent122693a654b0c851bbb9e134c539961419175bef (diff)
downloadazalea-drasl-345cecf7afa84df2d5ecf075ecfb499e3fd10a55.tar.xz
add more stuff
Diffstat (limited to 'azalea-world/src/lib.rs')
-rw-r--r--azalea-world/src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/azalea-world/src/lib.rs b/azalea-world/src/lib.rs
index 4b8c21e9..4da2fb0f 100644
--- a/azalea-world/src/lib.rs
+++ b/azalea-world/src/lib.rs
@@ -67,6 +67,15 @@ impl IndexMut<&ChunkPos> for World {
&mut self.storage[pos]
}
}
+// impl Index<&BlockPos> for World {
+// type Output = Option<Arc<Mutex<Chunk>>>;
+
+// fn index(&self, pos: &BlockPos) -> &Self::Output {
+// let chunk = &self[ChunkPos::from(pos)];
+// // chunk.
+
+// }
+// }
pub struct ChunkStorage {
view_center: ChunkPos,