diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 18:08:13 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 18:08:13 +0200 |
| commit | 7c02d3b8f1e6ec4ee82bdf1220da431b1cd1231e (patch) | |
| tree | eea6effd759fdc9cd81f33b732979854eb226e39 /src/world.cpp | |
| parent | fa07c1fd19e7fbd3b2757583708c4691c79025ed (diff) | |
serializer work
Diffstat (limited to 'src/world.cpp')
| -rw-r--r-- | src/world.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp index 07a83afe..cefb2485 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -3,7 +3,11 @@ namespace floormat { -world::world() +world::world() : world{initial_capacity} +{ +} + +world::world(std::size_t capacity) : _chunks{capacity, hasher} { _chunks.max_load_factor(max_load_factor); } |
