* Returns the result spritelayout after preprocessing. * @return result ground sprite and spritelayout */
| 165 | * @return result ground sprite and spritelayout |
| 166 | */ |
| 167 | DrawTileSpriteSpan GetLayout() const |
| 168 | { |
| 169 | assert(this->raw_layout != nullptr); |
| 170 | if (this->result_seq.empty()) { |
| 171 | /* Simple layout without preprocessing. */ |
| 172 | return {this->raw_layout->ground, this->raw_layout->seq}; |
| 173 | } else { |
| 174 | /* Dynamic layout with preprocessing. */ |
| 175 | return {this->result_seq[0].image, {++this->result_seq.begin(), this->result_seq.end()}}; |
| 176 | } |
| 177 | } |
| 178 | }; |
| 179 | |
| 180 | /** |
no test coverage detected