0x004FD120
| 156 | |
| 157 | // 0x004FD120 |
| 158 | PaintStringStruct* PaintSession::addToStringPlotList(const uint32_t amount, const StringId stringId, const uint16_t z, const int16_t xOffset, const int8_t* yOffsets, const uint16_t colour) |
| 159 | { |
| 160 | auto* psString = allocatePaintStruct<PaintStringStruct>(); |
| 161 | if (psString == nullptr) |
| 162 | { |
| 163 | return nullptr; |
| 164 | } |
| 165 | psString->stringId = stringId; |
| 166 | psString->next = nullptr; |
| 167 | psString->yOffsets = yOffsets; |
| 168 | psString->colour = colour; |
| 169 | |
| 170 | FormatArguments fmtArgs{ psString->argsBuf }; |
| 171 | fmtArgs.push(amount); |
| 172 | |
| 173 | const auto& vpPos = World::gameToScreen(World::Pos3(getSpritePosition(), z), currentRotation); |
| 174 | psString->vpPos.x = vpPos.x + xOffset; |
| 175 | psString->vpPos.y = vpPos.y; |
| 176 | |
| 177 | attachStringStruct(*psString); |
| 178 | return psString; |
| 179 | } |
| 180 | |
| 181 | // 0x004FD130 |
| 182 | PaintStruct* PaintSession::addToPlotListAsParent(ImageId imageId, const World::Pos3& offset, const World::Pos3& boundBoxSize) |
no test coverage detected