save tile texture id into map

This commit is contained in:
2024-05-27 13:05:38 -04:00
parent 710eb80bf0
commit dcf6fc5972
8 changed files with 76 additions and 61 deletions

View File

@@ -24,7 +24,7 @@ impl TileManager {
}
}
#[derive(Serialize, Deserialize, Debug, TypePath, Asset)]
#[derive(Serialize, Deserialize, Debug, TypePath, Asset, Clone)]
pub struct TileAsset {
#[serde(skip)]
pub id: usize,