Nebula
|
#include <level.h>
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
.
Classes | |
struct | EntityGroup |
Public Member Functions | |
Util::Array< Game::Entity > | Instantiate () const |
instantiates the level into game world | |
Private Member Functions | |
PackedLevel () | |
~PackedLevel () | |
Private Attributes | |
Game::World * | world |
Util::Array< EntityGroup > | tables |
Friends | |
class | World |
|
inlineprivate |
|
inlineprivate |
Util::Array< Game::Entity > Game::PackedLevel::Instantiate | ( | ) | const |
instantiates the level into game world
|
friend |
|
private |
|
private |