mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 21:48:41 -06:00
Add new verifier to handle identifiers and update codegen to be able to use them (closes #2522)
This commit is contained in:
@@ -179,16 +179,13 @@ namespace {
|
||||
// The identifier of this scene graph node. This name must be unique among all
|
||||
// scene graph nodes that are loaded in a specific scene. If a duplicate is
|
||||
// detected the loading of the node will fail, as will all childing that depend on
|
||||
// the node. The identifier must not contain any whitespaces or '.'
|
||||
std::string identifier;
|
||||
// the node.
|
||||
std::string identifier [[codegen::identifier()]];
|
||||
|
||||
// This names the parent of the currently specified scene graph node. The parent
|
||||
// must already exist in the scene graph. If not specified, the node will be
|
||||
// attached to the root of the scene graph
|
||||
std::optional<std::string> parent
|
||||
[[codegen::annotation(
|
||||
"If specified, this must be a name for another scene graph node"
|
||||
)]];
|
||||
std::optional<std::string> parent [[codegen::identifier()]];
|
||||
|
||||
// The renderable that is to be created for this scene graph node. A renderable is
|
||||
// a component of a scene graph node that will lead to some visual result on the
|
||||
|
||||
Reference in New Issue
Block a user