MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / load

Method load

src/SB/Game/zTaskBox.cpp:20–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void ztaskbox::load(const ztaskbox::asset_type& a)
21{
22 xBaseInit((xBase*)this, &(xBaseAsset)a);
23 this->baseType = eBaseTypeTaskBox;
24 this->asset = &a;
25 this->eventFunc = cb_dispatch;
26 if (this->linkCount != 0)
27 {
28 this->link = (xLinkAsset*)(&a + 1);
29 }
30 this->state = STATE_INVALID;
31 if (a.enable)
32 {
33 this->flag.enabled = true;
34 this->set_state(STATE_BEGIN);
35 this->current = this;
36 }
37 else
38 {
39 this->flag.enabled = false;
40 this->current = NULL;
41 }
42 if (a.persistent)
43 {
44 this->baseFlags |= 2;
45 }
46}
47
48void ztaskbox::read(xSerial& s)
49{

Callers 6

load_build_configFunction · 0.45
generate_objdiff_configFunction · 0.45
calculate_progressFunction · 0.45
upload_progress.pyFile · 0.45
ParseINIMethod · 0.45
init_dynamic_typeFunction · 0.45

Calls 2

set_stateMethod · 0.95
xBaseInitFunction · 0.85

Tested by

no test coverage detected