Make map display empty squares
This commit is contained in:
parent
f5166319e1
commit
7521d7b4ab
4 changed files with 153 additions and 11 deletions
18
chunks.py
18
chunks.py
|
|
@ -1,3 +1,5 @@
|
|||
import threading
|
||||
|
||||
class ChunkDiff():
|
||||
"""
|
||||
Represents differences between two chunks (changes to be made to a chunk).
|
||||
|
|
@ -24,4 +26,18 @@ class ChunkPool():
|
|||
Load chunks it doesn't know.
|
||||
"""
|
||||
|
||||
pass
|
||||
def __init__(self):
|
||||
self._lock = threading.RLock()
|
||||
|
||||
def __enter__(self):
|
||||
self._lock.acquire()
|
||||
return self
|
||||
|
||||
def __exit__(self, type, value, tb):
|
||||
self._lock.release()
|
||||
|
||||
def load_list(self, coords):
|
||||
pass
|
||||
|
||||
def get(self, x, y):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue