-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9abce52
commit 74d4ca1
Showing
4 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use serde::{Deserialize, Serialize}; | ||
use std::collections::HashMap; | ||
|
||
#[derive(Serialize, Deserialize)] | ||
pub struct Maps { | ||
#[serde(rename = "type")] | ||
pub maps_type: String, | ||
pub version: String, | ||
pub data: HashMap<String, Map>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize)] | ||
pub struct Map { | ||
#[serde(rename = "MapName")] | ||
pub map_name: String, | ||
#[serde(rename = "MapId")] | ||
pub map_id: String, | ||
pub image: Image, | ||
} | ||
|
||
#[derive(Serialize, Deserialize)] | ||
pub struct Image { | ||
pub full: String, | ||
pub sprite: String, | ||
pub group: String, | ||
pub x: i64, | ||
pub y: i64, | ||
pub w: i64, | ||
pub h: i64, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters