Nebula
Loading...
Searching...
No Matches
Game::PackedLevel Class Reference

#include <level.h>

Detailed Description

Represents a level that can be instantiated into a world.

A packed level contains all information of a level in memory-packed entity groups that correspont to a table in the game world. When instantiating, the entity groups are effectively just mem-copied into the game world, and then initialized.

PackedLevels are loaded directly via a game world and should not be created using new.

See also
Game::World::PreloadLevel
Game::World::UnloadLevel

Classes

struct  EntityGroup

Public Member Functions

Util::Array< Game::EntityInstantiate () const
 instantiates the level into game world

Private Member Functions

 PackedLevel ()
 ~PackedLevel ()

Private Attributes

Game::Worldworld
Util::Array< EntityGrouptables

Friends

class World

Constructor & Destructor Documentation

◆ PackedLevel()

Game::PackedLevel::PackedLevel ( )
inlineprivate

◆ ~PackedLevel()

Game::PackedLevel::~PackedLevel ( )
inlineprivate

Member Function Documentation

◆ Instantiate()

Util::Array< Game::Entity > Game::PackedLevel::Instantiate ( ) const

instantiates the level into game world

◆ World

friend class World
friend

Member Data Documentation

◆ tables

Util::Array<EntityGroup> Game::PackedLevel::tables
private

◆ world

Game::World* Game::PackedLevel::world
private

The documentation for this class was generated from the following files:
  • /github/workspace/code/application/basegamefeature/level.h
  • /github/workspace/code/application/basegamefeature/level.cc