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

Method load

src/SB/Game/zTextBox.cpp:216–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214} // namespace
215
216void ztextbox::load(const asset_type& a)
217{
218 xBaseInit(this, (xBaseAsset*)&a);
219
220 baseType = eBaseTypeTextBox;
221 asset = (asset_type*)&a;
222 eventFunc = cb_dispatch;
223
224 if (linkCount)
225 {
226 link = (xLinkAsset*)(&a + 1);
227 }
228
229 tb.context = this;
230 prev = NULL;
231 next = NULL;
232
233 memset(&flag, 0, sizeof(flag));
234
235 bgtex = NULL;
236
237 if (a.backdrop.texture)
238 {
239 RwTexture* tex = (RwTexture*)xSTFindAsset(a.backdrop.texture, NULL);
240 bgtex = RwTextureGetRaster(tex);
241 }
242
243 reset();
244}
245
246void ztextbox::update(xScene&, F32)
247{

Callers

nothing calls this directly

Calls 4

xBaseInitFunction · 0.85
memsetFunction · 0.85
xSTFindAssetFunction · 0.50
resetFunction · 0.50

Tested by

no test coverage detected