pub struct ModSettingValue {
pub value: crate::LuaAny,
}
pub static UNIT_MOD_SETTING: ModSettingValue = ModSettingValue {
value: crate::LuaAny,
};
pub struct SettingTable {
pub startup: crate::LuaAny,
pub global: crate::LuaAny,
pub player_default: crate::LuaAny,
}
pub const settings: SettingTable = SettingTable {
startup: crate::LuaAny,
global: crate::LuaAny,
player_default: crate::LuaAny,
};
pub struct LuaDataInterface;
impl LuaDataInterface {
#[allow(unused_variables)]
pub fn extend<T, I: IntoIterator<Item = T>>(&self, items: I) {}
}
pub static data: LuaDataInterface = LuaDataInterface;
pub struct BoolSetting {
pub name: &'static str,
pub setting_type: &'static str,
pub default_value: bool,
}
pub struct IntSetting {
pub name: &'static str,
pub setting_type: &'static str,
pub default_value: i64,
pub minimum_value: Option<i64>,
pub maximum_value: Option<i64>,
}
pub struct DoubleSetting {
pub name: &'static str,
pub setting_type: &'static str,
pub default_value: f64,
pub minimum_value: Option<f64>,
pub maximum_value: Option<f64>,
}
pub struct StringSetting {
pub name: &'static str,
pub setting_type: &'static str,
pub default_value: &'static str,
pub hidden: bool,
}