vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::PrefabOverride Struct Reference

One field of one component of one entity, differing from the prefab. More...

#include <prefab_instance.h>

Public Attributes

uint32_t uid = 0
 Entity inside the prefab; 0 is the root.
std::string component
 Component key, e.g. "Light".
std::string field
 Field key within that component, e.g. "intensity".
std::string value
 The field's value as JSON text.

Detailed Description

One field of one component of one entity, differing from the prefab.

Addressed by (uid, component, field); see PrefabEntity. The value is JSON text, which keeps the JSON library out of ecs/component/, round-trips floats exactly, and lets an override with no current home be written back unchanged.


The documentation for this struct was generated from the following file: