|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
A DragonBones armature on an entity. More...
#include "../../core/Types.hpp"#include "../../core/Reflection.hpp"#include "../../math/Math.hpp"#include <string>

Go to the source code of this file.
Classes | |
| struct | esengine::ecs::DragonBonesAnimation |
Namespaces | |
| namespace | esengine |
| namespace | esengine::ecs |
A DragonBones armature on an entity.
Declared here rather than in TypeScript for the same reason SpineAnimation is: this table is the authority the editor's inspector, the Create menu and the serializer all read through EHT, so a component that skipped it would need each of them told about it separately.
It reads almost exactly like SpineAnimation, and the one field that differs is the point. A Spine file IS a skeleton; a DragonBones file is a project holding several armatures, so armature names which one — there is nothing to derive it from, and an entity that does not say gets the first in the file.
Definition in file DragonBonesAnimation.hpp.