| 180 | } |
| 181 | |
| 182 | void ztaskbox::complete() |
| 183 | { |
| 184 | if (this->flag.enabled) |
| 185 | { |
| 186 | this->state = STATE_INVALID; |
| 187 | this->flag.enabled = false; |
| 188 | zEntEvent(this, this, eEventTaskBox_OnComplete); |
| 189 | this->current = (ztaskbox*)zSceneFindObject(this->asset->next_task); |
| 190 | |
| 191 | // Bruh |
| 192 | if (this->current != NULL) |
| 193 | { |
| 194 | return; |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | void ztaskbox::set_callback(callback* cb) |
| 200 | { |
nothing calls this directly
no test coverage detected