| 257 | } |
| 258 | |
| 259 | void 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 | |
| 278 | void J2DAnmColorFull::getColor(u16 idx, GXColor *color) const |
| 279 | { |
no test coverage detected