[BattleCollector] Add serialization/deserialization