serialize Raw every frame and print it
This commit is contained in:
parent
23f24e1f77
commit
32c4aa99cf
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue