FScenePlayStorage

namespace marengine
class FScenePlayStorage
#include “Core/ecs/ScenePlayStorage.h”

storage for play mode. Because we want to only test game in play mode and then return to its state afterwards we need to store somewhere the most important data. This is the place.

Public Static Functions

void pushEntityToStorage(const Entity &entity)

Pushes entity to storage and saves it most important data.

Parameters
  • entity: entity, that user wants to be saved

void loadEntityFromStorage(const Entity &entity)

Loads back most important data for passed entity.

Parameters
  • entity: entity, that user wants to be loaded