Cuberite
A lightweight, fast and extensible game server for Minecraft
OpaqueWorld.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 // fwd:
6 class cChunkInterface;
8 class cWorld;
9 class cWorldInterface;
10 
12 namespace World
13 {
14  // Defined in World.cpp
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
25 }
cBroadcastInterface * GetBroadcastInterface(cWorld *a_World)
Definition: World.cpp:74
cWorldInterface * GetWorldInterface(cWorld *a_World)
Definition: World.cpp:76
cForEachChunkProvider * GetFECProvider(cWorld *a_World)
Definition: World.cpp:75
Utilities to allow casting a cWorld to one of its interfaces without including World.h.
Definition: OpaqueWorld.h:12
Definition: World.h:65
cChunkInterface GetChunkInterface(cWorld &a_World)
Definition: World.cpp:78