Class CSPSceneData

Class Documentation

class CSPSceneData

CSPSceneData which represents all data that exists for a space.

This data structure is created through the deserialization of a CSPSceneDescription Json which is retrieved externally. The json file used to create this structure is also used to create a systems::CSPSceneData object. The reason these are seperated is to break dependencies between our multiplayer and corer modules.

Public Functions

CSPSceneData(const csp::common::List<csp::common::String> &SceneDescriptionJson)

Constructor for CSPSceneData by deserializing a SceneDescription json file.

Warning

The expression of this interface as a list is a wrapper generator workaround, so whilst you may split your string into many elements, it is not advisable. You should prefer inserting your entire string as the first, single, and only element of the list.

Parameters

SceneDescriptionJsoncsp::common::String : The SceneDescription to parse.

Public Members

csp::systems::Space Space

The space the scene data represents.

csp::common::Array<csp::systems::AssetCollection> AssetCollections

The asset collections for this scene.

csp::common::Array<csp::systems::Asset> Assets

The assets for this scene.

csp::common::Array<csp::systems::Sequence> Sequences

The sequences for this scene.

csp::common::Array<csp::systems::Anchor> Anchors

The anchors for this scene.