Struct ModDesc

Source
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

§author: String

Mod Author

§script_files: u32

Script file count

§store_items: usize

Store Item count

§crop_info: CropList

Crop details (for maps)

§crop_weather: Option<CropWeatherType>

Map Weather (for maps)

§depend: Vec<String>

Mods this mod depends on (shortNames)

§desc_version: u32

descVersion

§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: bool

map has a custom environment

§map_custom_crop: bool

map has a custom fruit list

§map_custom_grow: bool

map has a custom growth file

§map_is_south: bool

map is in the southern hemisphere

§map_image: Option<String>

map image, if processed and loaded - base64 webp

§multi_player: bool

multi-player capable

§version: String

mod version

Trait Implementations§

Source§

impl Serialize for ModDesc

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.