pub struct Technology {
pub name: &'static str,
pub icon: &'static str,
pub icon_size: Option<i64>,
pub prerequisites: &'static [&'static str],
pub effects: &'static [UnlockRecipeEffect],
pub unit: TechnologyUnit,
pub order: Option<&'static str>,
}Expand description
Minimal TechnologyPrototype for data.extend.
A technology.
type = "technology" is injected by the Lua generator.
Fields§
§name: &'static strInternal prototype name (e.g. "my-mod-widget").
icon: &'static strPackaged tech icon path.
icon_size: Option<i64>Icon pixel size. Technology icons are often 256.
prerequisites: &'static [&'static str]Prerequisite technology ids.
effects: &'static [UnlockRecipeEffect]Effects applied on research (typically unlock-recipe).
unit: TechnologyUnitLab cost.
order: Option<&'static str>Sort order string.
Trait Implementations§
Source§impl Clone for Technology
impl Clone for Technology
Source§fn clone(&self) -> Technology
fn clone(&self) -> Technology
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Technology
Source§impl Debug for Technology
impl Debug for Technology
Source§impl Default for Technology
impl Default for Technology
Source§fn default() -> Technology
fn default() -> Technology
Returns the “default value” for a type. Read more
Source§impl PartialEq for Technology
impl PartialEq for Technology
impl StructuralPartialEq for Technology
Auto Trait Implementations§
impl Freeze for Technology
impl RefUnwindSafe for Technology
impl Send for Technology
impl Sync for Technology
impl Unpin for Technology
impl UnsafeUnpin for Technology
impl UnwindSafe for Technology
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