summaryrefslogtreecommitdiffstats
path: root/src/game/server/world/worldgen.hh
blob: ef0cc49f65da6ac79650bc8ce9777ccc1535289b (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
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: worldgen.hh
// Description: Threaded requests for dimensions to generate chunks

#ifndef SERVER_WORLD_WORLDGEN_HH
#define SERVER_WORLD_WORLDGEN_HH
#pragma once

#include "shared/types.hh"

class Dimension;

struct Session;

namespace worldgen
{
void init(void);
} // namespace worldgen

namespace worldgen
{
bool is_generating(Dimension* dimension, const chunk_pos& cpos);
void request_chunk(Session* session, const chunk_pos& cpos);
} // namespace worldgen

#endif