pub struct LuaCargoHatch;Expand description
A cargo hatch.
Implementations§
Source§impl LuaCargoHatch
impl LuaCargoHatch
pub fn busy(&self) -> bool
pub fn is_input_compatible(&self) -> bool
pub fn is_output_compatible(&self) -> bool
Sourcepub fn object_name(&self) -> &str
pub fn object_name(&self) -> &str
The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
pub fn owner(&self) -> LuaEntity
pub fn reserved(&self) -> bool
Sourcepub fn valid(&self) -> bool
pub fn valid(&self) -> bool
Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
Sourcepub fn create_cargo_pod(&self, cargo_pod_prototype: Option<LuaAny>) -> LuaEntity
pub fn create_cargo_pod(&self, cargo_pod_prototype: Option<LuaAny>) -> LuaEntity
Creates a cargo pod for output at the owning entity hatch location.
Trait Implementations§
Source§impl Clone for LuaCargoHatch
impl Clone for LuaCargoHatch
Source§fn clone(&self) -> LuaCargoHatch
fn clone(&self) -> LuaCargoHatch
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 LuaCargoHatch
Source§impl Debug for LuaCargoHatch
impl Debug for LuaCargoHatch
Source§impl Default for LuaCargoHatch
impl Default for LuaCargoHatch
Source§fn default() -> LuaCargoHatch
fn default() -> LuaCargoHatch
Returns the “default value” for a type. Read more
impl Eq for LuaCargoHatch
Source§impl From<LuaCargoHatch> for LuaAny
impl From<LuaCargoHatch> for LuaAny
Source§fn from(_: LuaCargoHatch) -> Self
fn from(_: LuaCargoHatch) -> Self
Converts to this type from the input type.
impl LuaObject for LuaCargoHatch
Source§impl PartialEq for LuaCargoHatch
impl PartialEq for LuaCargoHatch
impl StructuralPartialEq for LuaCargoHatch
Auto Trait Implementations§
impl Freeze for LuaCargoHatch
impl RefUnwindSafe for LuaCargoHatch
impl Send for LuaCargoHatch
impl Sync for LuaCargoHatch
impl Unpin for LuaCargoHatch
impl UnsafeUnpin for LuaCargoHatch
impl UnwindSafe for LuaCargoHatch
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