blob: 0901b9e4a7c264a832bc6235ed90d7e3301dd4d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: universe.hh
// Description: Dimension handling
#ifndef SERVER_WORLD_UNIVERSE_HH
#define SERVER_WORLD_UNIVERSE_HH
#pragma once
#include "shared/types.hh"
class Chunk;
class Dimension;
struct Session;
namespace universe
{
void init(void);
void init_late(void);
void shutdown(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
|