pub struct LuaCombinatorControlBehavior;Implementations§
Source§impl LuaCombinatorControlBehavior
impl LuaCombinatorControlBehavior
Sourcepub fn input_networks(&self) -> CircuitNetworkSelection
pub fn input_networks(&self) -> CircuitNetworkSelection
Which circuit networks (red/green) to read signals from. Defaults to both wire colors.
nil if this control behavior does not allow selecting the input networks.
Sourcepub fn output_networks(&self) -> CircuitNetworkSelection
pub fn output_networks(&self) -> CircuitNetworkSelection
Which circuit networks (red/green) to send signals to. Defaults to both wire colors.
nil if this control behavior does not allow selecting the output networks.
Sourcepub fn signals_last_tick(&self) -> Vec<Signal>
pub fn signals_last_tick(&self) -> Vec<Signal>
The circuit network signals sent by this combinator last tick.
pub fn get_circuit_network( &self, wire_connector_id: &str, ) -> Option<LuaCircuitNetwork>
Sourcepub fn get_signal_last_tick(&self, signal: SignalID) -> Option<i32>
pub fn get_signal_last_tick(&self, signal: SignalID) -> Option<i32>
Gets the value of a specific signal sent by this combinator behavior last tick or nil if the signal didn’t exist.
Trait Implementations§
Source§impl Clone for LuaCombinatorControlBehavior
impl Clone for LuaCombinatorControlBehavior
Source§fn clone(&self) -> LuaCombinatorControlBehavior
fn clone(&self) -> LuaCombinatorControlBehavior
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 LuaCombinatorControlBehavior
Source§impl Debug for LuaCombinatorControlBehavior
impl Debug for LuaCombinatorControlBehavior
Source§impl Default for LuaCombinatorControlBehavior
impl Default for LuaCombinatorControlBehavior
Source§fn default() -> LuaCombinatorControlBehavior
fn default() -> LuaCombinatorControlBehavior
Returns the “default value” for a type. Read more
impl Eq for LuaCombinatorControlBehavior
Source§impl From<LuaCombinatorControlBehavior> for LuaAny
impl From<LuaCombinatorControlBehavior> for LuaAny
Source§fn from(_: LuaCombinatorControlBehavior) -> Self
fn from(_: LuaCombinatorControlBehavior) -> Self
Converts to this type from the input type.
impl LuaObject for LuaCombinatorControlBehavior
impl StructuralPartialEq for LuaCombinatorControlBehavior
Auto Trait Implementations§
impl Freeze for LuaCombinatorControlBehavior
impl RefUnwindSafe for LuaCombinatorControlBehavior
impl Send for LuaCombinatorControlBehavior
impl Sync for LuaCombinatorControlBehavior
impl Unpin for LuaCombinatorControlBehavior
impl UnsafeUnpin for LuaCombinatorControlBehavior
impl UnwindSafe for LuaCombinatorControlBehavior
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