|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <DragonBonesAdapter.hpp>

Public Member Functions | |
| EsFactory () | |
| ~EsFactory () override | |
| void | advanceTime (float passedTime) |
| Armature * | buildArmature (const std::string &armatureName, const std::string &dragonBonesName) |
| Build an armature by name; null when this data holds no such armature. | |
Static Public Member Functions | |
| static EsFactory & | instance () |
Protected Member Functions | |
| TextureAtlasData * | _buildTextureAtlasData (TextureAtlasData *textureAtlasData, void *textureAtlas) const override |
| Armature * | _buildArmature (const BuildArmaturePackage &dataPackage) const override |
| Slot * | _buildSlot (const BuildArmaturePackage &dataPackage, const SlotData *slotData, Armature *armature) const override |
Protected Attributes | |
| EsEventDispatcher | _eventDispatcher |
Definition at line 168 of file DragonBonesAdapter.hpp.
| EsFactory::EsFactory | ( | ) |
BaseFactory leaves _dragonBones null and never assigns it — every integration is expected to bring its own. Skipping that step does not fail to link and does not fail to draw: it fails the first time an armature retires an animation state, because Animation::advanceTime calls _armature->_dragonBones-> bufferObject(state) unconditionally. On wasm a null dereference lands in readable low memory and passes unnoticed; on a device it is a SIGSEGV. So the bug looked platform-specific and was not.
Definition at line 223 of file DragonBonesAdapter.cpp.
References _eventDispatcher.
Referenced by instance().
|
override |
Definition at line 227 of file DragonBonesAdapter.cpp.
|
overrideprotected |
Definition at line 250 of file DragonBonesAdapter.cpp.
|
overrideprotected |
Definition at line 259 of file DragonBonesAdapter.cpp.
|
overrideprotected |
Definition at line 241 of file DragonBonesAdapter.cpp.
| void EsFactory::advanceTime | ( | float | passedTime | ) |
Recycle what the last frame retired, and drain the event queue.
Not optional. An armature hands a finished animation state back by calling _dragonBones->bufferObject(…), and the buffer is only emptied here — so without this the pool grows for the life of the app, and every queued event with it. The module calls it once per frame, before advancing armatures.
Definition at line 232 of file DragonBonesAdapter.cpp.
Referenced by db_update().
| Armature * EsFactory::buildArmature | ( | const std::string & | armatureName, |
| const std::string & | dragonBonesName ) |
Build an armature by name; null when this data holds no such armature.
Definition at line 267 of file DragonBonesAdapter.cpp.
Referenced by db_createInstance().
|
static |
Definition at line 236 of file DragonBonesAdapter.cpp.
References EsFactory().
Referenced by db_createInstance(), db_loadSkeleton(), db_unloadSkeleton(), and db_update().
|
protected |
The runtime object every armature recycles and buffers events through. BaseFactory declares _dragonBones and leaves it null; nothing in the vendored tree assigns it, so each integration owns one.
Definition at line 192 of file DragonBonesAdapter.hpp.
Referenced by EsFactory().