serialize Raw every frame and print it

This commit is contained in:
Vivian Lim 2020-01-01 20:54:46 -08:00
parent 23f24e1f77
commit 32c4aa99cf
1 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,14 @@ impl SyncedPokemonRedBlue {
self.battle_context = battle_context;
let message: Message = (&self.raw).into();
match serde_json::to_string(&message) {
Ok(serialized) => {
println!("serialized data: {}", serialized)
}
Err(_) => ()
}
}
// pub fn get_message<'a>(&self) -> Message {