Initial commit
This commit is contained in:
33
modules/world/road_map.cpp
Normal file
33
modules/world/road_map.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "road_map.h"
|
||||
|
||||
#define ROAD_MAP_TESTS
|
||||
|
||||
#define MIN_X -10000
|
||||
#define MAX_X 10000
|
||||
#define MIN_Z -10000
|
||||
#define MAX_Z 10000
|
||||
#define MIN_Y -1000
|
||||
#define MAX_Y 1000
|
||||
|
||||
static RoadMap *g_road_map_data = NULL;
|
||||
RoadMap *RoadMap::get_singleton()
|
||||
{
|
||||
return g_road_map_data;
|
||||
}
|
||||
void RoadMap::create_singleton()
|
||||
{
|
||||
g_road_map_data = memnew(RoadMap);
|
||||
}
|
||||
void RoadMap::destroy_singleton()
|
||||
{
|
||||
memdelete(g_road_map_data);
|
||||
g_road_map_data = NULL;
|
||||
}
|
||||
RoadMap::RoadMap()
|
||||
{
|
||||
}
|
||||
|
||||
RoadMap::~RoadMap()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user