vmt_parser/material/
subrect.rs1use super::deserialize_path;
2use crate::{deserialize_bare_vec2, Vec2};
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
6pub struct SubRectMaterial {
7 #[serde(rename = "$material", deserialize_with = "deserialize_path")]
9 pub material: String,
10 #[serde(rename = "$pos", deserialize_with = "deserialize_bare_vec2")]
11 pub pos: Vec2,
12 #[serde(rename = "$size", deserialize_with = "deserialize_bare_vec2")]
13 pub size: Vec2,
14}