0x00440557
| 171 | |
| 172 | // 0x00440557 |
| 173 | static void paintSplashEntity(PaintSession& session, Splash* particle) |
| 174 | { |
| 175 | const Gfx::RenderTarget* rt = session.getRenderTarget(); |
| 176 | if (rt->zoomLevel > 2) |
| 177 | { |
| 178 | return; |
| 179 | } |
| 180 | |
| 181 | static constexpr std::array<uint32_t, 28> kSplashImageIds = { |
| 182 | ImageIds::splash_00, |
| 183 | ImageIds::splash_01, |
| 184 | ImageIds::splash_02, |
| 185 | ImageIds::splash_03, |
| 186 | ImageIds::splash_04, |
| 187 | ImageIds::splash_05, |
| 188 | ImageIds::splash_06, |
| 189 | ImageIds::splash_07, |
| 190 | ImageIds::splash_08, |
| 191 | ImageIds::splash_09, |
| 192 | ImageIds::splash_10, |
| 193 | ImageIds::splash_11, |
| 194 | ImageIds::splash_12, |
| 195 | ImageIds::splash_13, |
| 196 | ImageIds::splash_14, |
| 197 | ImageIds::splash_15, |
| 198 | ImageIds::splash_16, |
| 199 | ImageIds::splash_17, |
| 200 | ImageIds::splash_18, |
| 201 | ImageIds::splash_19, |
| 202 | ImageIds::splash_20, |
| 203 | ImageIds::splash_21, |
| 204 | ImageIds::splash_22, |
| 205 | ImageIds::splash_23, |
| 206 | ImageIds::splash_24, |
| 207 | ImageIds::splash_25, |
| 208 | ImageIds::splash_26, |
| 209 | ImageIds::splash_27 |
| 210 | }; |
| 211 | |
| 212 | assert(static_cast<size_t>(particle->frame / 256) < kSplashImageIds.size()); |
| 213 | const auto imageId = ImageId{ kSplashImageIds.at(particle->frame / 256) }; |
| 214 | session.addToPlotListAsParent(imageId, { 0, 0, particle->position.z }, { 1, 1, 0 }); |
| 215 | } |
| 216 | |
| 217 | // 0x00440592 |
| 218 | static void paintFireballEntity(PaintSession& session, Fireball* particle) |
no test coverage detected