C4 Engine
C4 Engine API Documentation

DataDescription::CreateStructure

Defined in:  TSOpenDDL.h
Creates a custom data structure.
Prototype

virtual Structure *CreateStructure(const String<>& identifier) const;

Parameters
identifier The identifier of a data structure in an OpenDDL file.
Description
The CreateStructure function should be overridden by any subclass of the DataDescription class representing a file format that defines custom data structures. The implementation should use the new operator to create a new object based on the Structure subclass corresponding to the identifier parameter. If the identifier is not recognized, then this function should return nullptr. The default implementation always returns nullptr.
See Also

Structure