MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / run

Method run

Source/Wasm/WasmRuntime.cpp:1141–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1139 return _available(_owner, s_cast<UnitAction*>(this));
1140 }
1141 virtual void run() override {
1142 UnitAction::run();
1143 if (auto playable = _owner->getPlayable()) {
1144 playable->setRecovery(recovery);
1145 }
1146 _update = std::move(_create(_owner, s_cast<UnitAction*>(this))->update);
1147 if (_update(_owner, s_cast<UnitAction*>(this), 0.0f)) {
1148 WasmUnitAction::stop();
1149 }
1150 }
1151 virtual void update(float dt) override {
1152 if (_update && _update(_owner, s_cast<UnitAction*>(this), dt)) {
1153 WasmUnitAction::stop();

Callers

nothing calls this directly

Calls 5

moveFunction · 0.85
stopFunction · 0.85
getPlayableMethod · 0.80
runFunction · 0.50
setRecoveryMethod · 0.45

Tested by

no test coverage detected