| 500 | } |
| 501 | |
| 502 | bool GameState::deserialize(SerializationArchive *archive) |
| 503 | { |
| 504 | try |
| 505 | { |
| 506 | serializeIn(this, archive->getRoot("", "gamestate"), *this); |
| 507 | } |
| 508 | catch (SerializationException &e) |
| 509 | { |
| 510 | LogError("Serialization failed: \"%s\"", e.what()); |
| 511 | return false; |
| 512 | } |
| 513 | return true; |
| 514 | } |
| 515 | |
| 516 | static bool serialize(const BattleMapTileset &tileSet, SerializationArchive *archive) |
| 517 | { |
nothing calls this directly
no test coverage detected