| 411 | } |
| 412 | |
| 413 | void BaseGameLayer::fillColorChannel(std::span<std::string_view> colorString, int id) |
| 414 | { |
| 415 | for (size_t j = 0; j < colorString.size() - 1; j += 2) |
| 416 | { |
| 417 | switch (GameToolbox::stoi(colorString[j])) |
| 418 | { |
| 419 | case 1: |
| 420 | _colorChannels.insert({id, SpriteColor(ax::Color3B(GameToolbox::stof(colorString[j + 1]), 0, 0), 255, 0)}); |
| 421 | break; |
| 422 | case 2: |
| 423 | _colorChannels.at(id)._color.g = GameToolbox::stof(colorString[j + 1]); |
| 424 | break; |
| 425 | case 3: |
| 426 | _colorChannels.at(id)._color.b = GameToolbox::stof(colorString[j + 1]); |
| 427 | break; |
| 428 | } |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | int BaseGameLayer::sectionForPos(float x) |
| 433 | { |
nothing calls this directly
no test coverage detected