Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
VMapFactory.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of Project SkyFire https://www.projectskyfire.org.
3
* See LICENSE.md file for Copyright information
4
*/
5
6
#include "
VMapFactory.h
"
7
#include "
VMapManager2.h
"
8
9
namespace
VMAP
10
{
11
IVMapManager
*
gVMapManager
= NULL;
12
13
//===============================================
14
// just return the instance
15
IVMapManager
*
VMapFactory::createOrGetVMapManager
()
16
{
17
if
(
gVMapManager
== 0)
18
gVMapManager
=
new
VMapManager2
();
// should be taken from config ... Please change if you like :-)
19
return
gVMapManager
;
20
}
21
22
//===============================================
23
// delete all internal data structures
24
void
VMapFactory::clear
()
25
{
26
delete
gVMapManager
;
27
gVMapManager
= NULL;
28
}
29
}
VMapFactory.h
VMapManager2.h
VMAP::IVMapManager
Definition
IVMapManager.h:33
VMAP::VMapFactory::createOrGetVMapManager
static IVMapManager * createOrGetVMapManager()
Definition
VMapFactory.cpp:15
VMAP::VMapFactory::clear
static void clear()
Definition
VMapFactory.cpp:24
VMAP::VMapManager2
Definition
VMapManager2.h:57
VMAP
Definition
IVMapManager.h:19
VMAP::gVMapManager
IVMapManager * gVMapManager
Definition
VMapFactory.cpp:11
src
server
collision
Management
VMapFactory.cpp
Generated on
for Project SkyFire Core by
1.17.0