pub struct LuaEntityOrderUpgradeParams {
pub force: LuaAny,
pub player: LuaAny,
pub target: LuaAny,
pub undo_index: u32,
}Expand description
Sets the entity to be upgraded by construction robots.
Fields§
§force: LuaAnyThe force whose robots are supposed to do the upgrade.
player: LuaAnyThe player whose undo queue this action should be added to.
target: LuaAnyThe prototype of the entity to upgrade to.
undo_index: u32The index of the undo item to add this action to. An index of 0 creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
Trait Implementations§
Source§impl Clone for LuaEntityOrderUpgradeParams
impl Clone for LuaEntityOrderUpgradeParams
Source§fn clone(&self) -> LuaEntityOrderUpgradeParams
fn clone(&self) -> LuaEntityOrderUpgradeParams
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 moreSource§impl Debug for LuaEntityOrderUpgradeParams
impl Debug for LuaEntityOrderUpgradeParams
Source§impl Default for LuaEntityOrderUpgradeParams
impl Default for LuaEntityOrderUpgradeParams
Source§fn default() -> LuaEntityOrderUpgradeParams
fn default() -> LuaEntityOrderUpgradeParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaEntityOrderUpgradeParams
impl RefUnwindSafe for LuaEntityOrderUpgradeParams
impl Send for LuaEntityOrderUpgradeParams
impl Sync for LuaEntityOrderUpgradeParams
impl Unpin for LuaEntityOrderUpgradeParams
impl UnsafeUnpin for LuaEntityOrderUpgradeParams
impl UnwindSafe for LuaEntityOrderUpgradeParams
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