| 319 | } |
| 320 | |
| 321 | bool isValid() |
| 322 | { |
| 323 | if (!id) |
| 324 | return false; |
| 325 | |
| 326 | auto found = df::building::find(id); |
| 327 | return found && found == sp && found->getType() == building_type::Stockpile; |
| 328 | } |
| 329 | |
| 330 | int32_t getId() |
| 331 | { |
no test coverage detected