pub struct ModDesc {Show 19 fields
pub actions: HashMap<String, String>,
pub binds: HashMap<String, Vec<String>>,
pub author: String,
pub script_files: u32,
pub store_items: usize,
pub crop_info: CropList,
pub crop_weather: Option<CropWeatherType>,
pub depend: Vec<String>,
pub desc_version: u32,
pub icon_file_name: Option<String>,
pub icon_image: Option<String>,
pub map_config_file: Option<String>,
pub map_custom_env: bool,
pub map_custom_crop: bool,
pub map_custom_grow: bool,
pub map_is_south: bool,
pub map_image: Option<String>,
pub multi_player: bool,
pub version: String,
}Expand description
ModDesc.xml specific fields from a mod
Fields§
§actions: HashMap<String, String>Keyboard actions
binds: HashMap<String, Vec<String>>Keyboard bindings
Mod Author
script_files: u32Script file count
store_items: usizeStore Item count
crop_info: CropListCrop details (for maps)
crop_weather: Option<CropWeatherType>Map Weather (for maps)
depend: Vec<String>Mods this mod depends on (shortNames)
desc_version: u32descVersion
icon_file_name: Option<String>icon file name
icon_image: Option<String>icon image, if processed and loaded - base64 webp
map_config_file: Option<String>map config file (for maps)
map_custom_env: boolmap has a custom environment
map_custom_crop: boolmap has a custom fruit list
map_custom_grow: boolmap has a custom growth file
map_is_south: boolmap is in the southern hemisphere
map_image: Option<String>map image, if processed and loaded - base64 webp
multi_player: boolmulti-player capable
version: Stringmod version
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModDesc
impl RefUnwindSafe for ModDesc
impl Send for ModDesc
impl Sync for ModDesc
impl Unpin for ModDesc
impl UnwindSafe for ModDesc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more