MCPcopy Create free account
hub / github.com/doldecomp/mkdd / searchUpdateMaterialID

Method searchUpdateMaterialID

libs/JSystem/J2DGraph/J2DAnimation.cpp:259–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void J2DAnmColor::searchUpdateMaterialID(J2DScreen *screen)
260{
261 if (screen != nullptr && screen->mNameTab != nullptr)
262 {
263 for (u16 i = 0; i < getUpdateMaterialNum(); i++)
264 {
265 int index = screen->mNameTab->getIndex(mNameTab.getName(i));
266 if (index != -1)
267 {
268 mUpdateMaterialID[i] = index;
269 }
270 else
271 {
272 mUpdateMaterialID[i] = 0xFFFF;
273 }
274 }
275 }
276}
277
278void J2DAnmColorFull::getColor(u16 idx, GXColor *color) const
279{

Callers 4

SelectableItemMethod · 0.45
SelectableItemDispMethod · 0.45
NameEntryDrumMethod · 0.45
setAnimationMethod · 0.45

Calls 6

getUpdateMaterialNumMethod · 0.95
getIndexMethod · 0.45
getNameMethod · 0.45
getResReferenceMethod · 0.45
getResourceMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected