Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
Blam::World Namespace Reference

Namespace containing functions for interacting with the current world state. More...

Functions

BLAM void InitializeWorldState ()
 Initializes a new world state. More...
 
BLAM void InitializeEmptyWorldState ()
 Initializes a new world state with no default objects. More...
 
BLAM void DestroyWorldState ()
 Destroys the current world state. More...
 
BLAM BlamWorldStateGetWorldState ()
 Retrieves the current world state. More...
 
BLAM Blam3DPrimitiveType ConvertStringToPrimitiveType (std::string text)
 Converts a string representation of a primitive type to the equivalent Blam3DPrimitiveType value. More...
 
BLAM std::string ConvertPrimitiveTypeToString (Blam3DPrimitiveType type)
 Converts a Blam3DPrimitiveType to a string representation. More...
 
BLAM std::vector< std::string > GetPrimitiveTypeStringList ()
 Creates a list of primitive types, represented as strings. More...
 

Detailed Description

Namespace containing functions for interacting with the current world state.

Function Documentation

◆ ConvertPrimitiveTypeToString()

std::string Blam::World::ConvertPrimitiveTypeToString ( Blam3DPrimitiveType  type)

Converts a Blam3DPrimitiveType to a string representation.

Parameters
type- The primitive type to convert.
Returns
A string representation of the 3D primitive type.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ConvertStringToPrimitiveType()

Blam3DPrimitiveType Blam::World::ConvertStringToPrimitiveType ( std::string  text)

Converts a string representation of a primitive type to the equivalent Blam3DPrimitiveType value.

Parameters
text- The string to convert.
Returns
The matching Blam3DPrimitiveType from the provided string, or Cuboid if the provided string did not match any primitive type.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DestroyWorldState()

void Blam::World::DestroyWorldState ( )

Destroys the current world state.

+ Here is the caller graph for this function:

◆ GetPrimitiveTypeStringList()

std::vector< std::string > Blam::World::GetPrimitiveTypeStringList ( )

Creates a list of primitive types, represented as strings.

Returns
A list of primitive types, represented as strings.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWorldState()

BlamWorldState * Blam::World::GetWorldState ( )

Retrieves the current world state.

Returns
Pointer to the current world state, or nullptr if the world state is not initialized.
+ Here is the caller graph for this function:

◆ InitializeEmptyWorldState()

void Blam::World::InitializeEmptyWorldState ( )

Initializes a new world state with no default objects.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitializeWorldState()

void Blam::World::InitializeWorldState ( )

Initializes a new world state.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: