Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
GalaxyGenerator Class Reference

#include <GalaxyGenerator.h>

Inheritance diagram for GalaxyGenerator:
Inheritance graph
[legend]
Collaboration diagram for GalaxyGenerator:
Collaboration graph
[legend]

Classes

struct  SectorConfig
 
struct  StarSystemConfig
 

Public Types

typedef int Version
 

Public Member Functions

virtual ~GalaxyGenerator ()
 
const std::string & GetName () const
 
Version GetVersion () const
 
bool IsDefault () const
 
void ToJson (Json &jsonObj, RefCountedPtr< Galaxy > galaxy)
 
void FromJson (const Json &jsonObj, RefCountedPtr< Galaxy > galaxy)
 
template<typename T , typename Cache >
RefCountedPtr< T > Generate (RefCountedPtr< Galaxy > galaxy, const SystemPath &path, Cache *cache)
 
GalaxyGeneratorAddSectorStage (SectorGeneratorStage *sectorGenerator)
 
GalaxyGeneratorAddStarSystemStage (StarSystemGeneratorStage *starSystemGenerator)
 
template<>
RefCountedPtr< SectorGenerate (RefCountedPtr< Galaxy > galaxy, const SystemPath &path, SectorCache *cache)
 
template<>
RefCountedPtr< StarSystemGenerate (RefCountedPtr< Galaxy > galaxy, const SystemPath &path, StarSystemCache *cache)
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Static Public Member Functions

static void Init (const std::string &name=std::string("legacy"), Version version=LAST_VERSION)
 
static void Uninit ()
 
static RefCountedPtr< GalaxyCreate (const std::string &name, Version version=LAST_VERSION)
 
static RefCountedPtr< GalaxyCreate ()
 
static RefCountedPtr< GalaxyCreateFromJson (const Json &jsonObj)
 
static std::string GetDefaultGeneratorName ()
 
static Version GetDefaultGeneratorVersion ()
 
static Version GetLastVersion (const std::string &name)
 

Static Public Attributes

static const Version LAST_VERSION = -1
 

Member Typedef Documentation

◆ Version

Constructor & Destructor Documentation

◆ ~GalaxyGenerator()

GalaxyGenerator::~GalaxyGenerator ( )
virtual

Member Function Documentation

◆ AddSectorStage()

GalaxyGenerator * GalaxyGenerator::AddSectorStage ( SectorGeneratorStage sectorGenerator)

◆ AddStarSystemStage()

GalaxyGenerator * GalaxyGenerator::AddStarSystemStage ( StarSystemGeneratorStage starSystemGenerator)

◆ Create() [1/2]

static RefCountedPtr< Galaxy > GalaxyGenerator::Create ( )
inlinestatic
Here is the call graph for this function:

◆ Create() [2/2]

RefCountedPtr< Galaxy > GalaxyGenerator::Create ( const std::string &  name,
Version  version = LAST_VERSION 
)
static
Here is the call graph for this function:

◆ CreateFromJson()

RefCountedPtr< Galaxy > GalaxyGenerator::CreateFromJson ( const Json jsonObj)
static
Here is the call graph for this function:

◆ FromJson()

void GalaxyGenerator::FromJson ( const Json jsonObj,
RefCountedPtr< Galaxy galaxy 
)

◆ Generate() [1/3]

template<typename T , typename Cache >
RefCountedPtr< T > GalaxyGenerator::Generate ( RefCountedPtr< Galaxy galaxy,
const SystemPath path,
Cache *  cache 
)

◆ Generate() [2/3]

template<>
RefCountedPtr< Sector > GalaxyGenerator::Generate ( RefCountedPtr< Galaxy galaxy,
const SystemPath path,
SectorCache cache 
)
inline

◆ Generate() [3/3]

template<>
RefCountedPtr< StarSystem > GalaxyGenerator::Generate ( RefCountedPtr< Galaxy galaxy,
const SystemPath path,
StarSystemCache cache 
)
inline

◆ GetDefaultGeneratorName()

static std::string GalaxyGenerator::GetDefaultGeneratorName ( )
inlinestatic

◆ GetDefaultGeneratorVersion()

static Version GalaxyGenerator::GetDefaultGeneratorVersion ( )
inlinestatic

◆ GetLastVersion()

GalaxyGenerator::Version GalaxyGenerator::GetLastVersion ( const std::string &  name)
static

◆ GetName()

const std::string & GalaxyGenerator::GetName ( ) const
inline

◆ GetVersion()

Version GalaxyGenerator::GetVersion ( ) const
inline

◆ Init()

void GalaxyGenerator::Init ( const std::string &  name = std::string("legacy"),
Version  version = LAST_VERSION 
)
static
Here is the call graph for this function:

◆ IsDefault()

bool GalaxyGenerator::IsDefault ( ) const
inline

◆ ToJson()

void GalaxyGenerator::ToJson ( Json jsonObj,
RefCountedPtr< Galaxy galaxy 
)

◆ Uninit()

void GalaxyGenerator::Uninit ( )
static
Here is the call graph for this function:

Member Data Documentation

◆ LAST_VERSION

const Version GalaxyGenerator::LAST_VERSION = -1
static

The documentation for this class was generated from the following files: