From 3bf42c6ff3805a0d42bbc661794a95ff31bedc26 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 15 Mar 2025 16:22:09 +0500 Subject: Add whatever I was working on for the last month --- game/server/universe.hh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 game/server/universe.hh (limited to 'game/server/universe.hh') diff --git a/game/server/universe.hh b/game/server/universe.hh new file mode 100644 index 0000000..00c8b8d --- /dev/null +++ b/game/server/universe.hh @@ -0,0 +1,25 @@ +#ifndef SERVER_UNIVERSE_HH +#define SERVER_UNIVERSE_HH 1 +#pragma once + +#include "shared/types.hh" + +class Chunk; +class Dimension; +class Session; + +namespace universe +{ +void init(void); +void init_late(void); +void deinit(void); +} // namespace universe + +namespace universe +{ +Chunk *load_chunk(Dimension *dimension, const chunk_pos &cpos); +void save_chunk(Dimension *dimension, const chunk_pos &cpos); +void save_all_chunks(Dimension *dimension); +} // namespace universe + +#endif /* SERVER_UNIVERSE_HH */ -- cgit