Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion crates/asset_serialize/src/gcnk.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::io::Cursor;
use std::{fmt::Display, io::Cursor};

use async_compression::tokio::bufread::ZlibDecoder;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -102,6 +102,15 @@ impl TerrainObjectIdentifier {
}
}

impl Display for TerrainObjectIdentifier {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
TerrainObjectIdentifier::Id(id) => id.fmt(f),
TerrainObjectIdentifier::Name(name) => name.fmt(f),
}
}
}

#[derive(Serialize, Deserialize)]
pub struct RuntimeObject {
pub guid: i32,
Expand Down
Loading