Leviathan  0.8.0.0
Leviathan game engine
Leviathan::PerWorldData Class Reference

A base type for data classes that need to be associated with a GameWorld. More...

#include <PerWorldData.h>

Public Member Functions

DLLEXPORT PerWorldData (GameWorld &world)
 
virtual ~PerWorldData ()=default
 
virtual DLLEXPORT void OnClear ()
 Called when the world is cleared. More...
 

Protected Attributes

GameWorldInWorld
 

Detailed Description

A base type for data classes that need to be associated with a GameWorld.

Definition at line 11 of file PerWorldData.h.

Constructor & Destructor Documentation

◆ PerWorldData()

DLLEXPORT PerWorldData::PerWorldData ( GameWorld world)

Definition at line 7 of file PerWorldData.cpp.

7 : InWorld(world) {}

◆ ~PerWorldData()

virtual Leviathan::PerWorldData::~PerWorldData ( )
virtualdefault

Member Function Documentation

◆ OnClear()

DLLEXPORT void PerWorldData::OnClear ( )
virtual

Called when the world is cleared.

Definition at line 9 of file PerWorldData.cpp.

9 {}

Member Data Documentation

◆ InWorld

GameWorld& Leviathan::PerWorldData::InWorld
protected

Definition at line 20 of file PerWorldData.h.


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