Leviathan  0.8.0.0
Leviathan game engine
Leviathan::InbuiltWorldFactory Class Reference

Factory for inbuilt world types. More...

#include <GameWorldFactory.h>

Static Public Member Functions

static std::shared_ptr< GameWorldCreateNewWorld (INBUILT_WORLD_TYPE worldtype, const std::shared_ptr< PhysicsMaterialManager > &physicsMaterials, int overrideid=-1)
 

Detailed Description

Factory for inbuilt world types.

Definition at line 40 of file GameWorldFactory.h.

Member Function Documentation

◆ CreateNewWorld()

std::shared_ptr< GameWorld > InbuiltWorldFactory::CreateNewWorld ( INBUILT_WORLD_TYPE  worldtype,
const std::shared_ptr< PhysicsMaterialManager > &  physicsMaterials,
int  overrideid = -1 
)
static

Definition at line 35 of file GameWorldFactory.cpp.

37 {
38  switch(worldtype) {
40  return std::make_shared<StandardWorld>(physicsMaterials, overrideid);
41  }
42 
43  return nullptr;
44 }

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