Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
OpaqueWorld.h
Go to the documentation of this file.
1
2
#pragma once
3
4
// fwd:
5
class
cBroadcastInterface
;
6
class
cChunkInterface
;
7
class
cForEachChunkProvider
;
8
class
cWorld
;
9
class
cWorldInterface
;
10
12
namespace
World
13
{
14
// Defined in World.cpp
15
cBroadcastInterface
*
GetBroadcastInterface
(
cWorld
* a_World);
16
cForEachChunkProvider
*
GetFECProvider
(
cWorld
* a_World);
17
cWorldInterface
*
GetWorldInterface
(
cWorld
* a_World);
18
19
inline
cBroadcastInterface
&
GetBroadcastInterface
(
cWorld
& a_World) {
return
*
GetBroadcastInterface
(&a_World); }
20
inline
cForEachChunkProvider
&
GetFECProvider
(
cWorld
& a_World) {
return
*
GetFECProvider
(&a_World); }
21
inline
cWorldInterface
&
GetWorldInterface
(
cWorld
& a_World) {
return
*
GetWorldInterface
(&a_World); }
22
23
// cChunkInterface is more like a pimpl for cChunkMap than an interface so it needs to be returned by value
24
cChunkInterface
GetChunkInterface
(
cWorld
& a_World);
25
}
World::GetBroadcastInterface
cBroadcastInterface * GetBroadcastInterface(cWorld *a_World)
Definition:
World.cpp:74
cChunkInterface
Definition:
ChunkInterface.h:12
cBroadcastInterface
Definition:
BroadcastInterface.h:16
World::GetWorldInterface
cWorldInterface * GetWorldInterface(cWorld *a_World)
Definition:
World.cpp:76
cWorldInterface
Definition:
WorldInterface.h:21
World::GetFECProvider
cForEachChunkProvider * GetFECProvider(cWorld *a_World)
Definition:
World.cpp:75
World
Utilities to allow casting a cWorld to one of its interfaces without including World.h.
Definition:
OpaqueWorld.h:12
cForEachChunkProvider
Definition:
ForEachChunkProvider.h:24
cWorld
Definition:
World.h:65
World::GetChunkInterface
cChunkInterface GetChunkInterface(cWorld &a_World)
Definition:
World.cpp:78
Generated on Mon Feb 24 2020 09:04:16 for Cuberite by
1.8.11