pub struct Tunnel { /* private fields */ }Implementations§
Source§impl Tunnel
impl Tunnel
pub fn width(&self, _owner: &Spatial) -> usize
pub fn len(&self, _owner: &Spatial) -> usize
pub fn first(&self, _owner: &Spatial) -> isize
pub fn last(&self, _owner: &Spatial) -> isize
pub fn item(&self, _owner: &Spatial, col: isize, row: isize, boost: bool) -> i64
pub fn find_start_spot( &self, _owner: &Spatial, col: isize, row: isize, ) -> Option<(isize, isize)>
pub fn skill(&self, _owner: &Spatial) -> GodotString
Trait Implementations§
Source§impl NativeClass for Tunnel
impl NativeClass for Tunnel
Source§fn class_name() -> &'static str
fn class_name() -> &'static str
The name of the class. Read more
Source§fn init(owner: TRef<'_, Self::Base>) -> Self
fn init(owner: TRef<'_, Self::Base>) -> Self
Function that creates a value of
Self, used for the script-instance. The default
implementation simply panics. Read moreSource§fn register_properties(builder: &ClassBuilder<Self>)
fn register_properties(builder: &ClassBuilder<Self>)
Register any exported properties to Godot.
Source§fn new_instance() -> Instance<Self, Unique>where
Self::Base: Instanciable,
fn new_instance() -> Instance<Self, Unique>where
Self::Base: Instanciable,
Convenience method to create an
Instance<Self, Unique>. This is a new Self::Base
with the script attached. Read moreSource§impl NativeClassMethods for Tunnel
impl NativeClassMethods for Tunnel
Source§fn register(builder: &ClassBuilder<Self>)
fn register(builder: &ClassBuilder<Self>)
Function that registers all exposed methods to Godot.
Auto Trait Implementations§
impl Freeze for Tunnel
impl RefUnwindSafe for Tunnel
impl !Send for Tunnel
impl !Sync for Tunnel
impl Unpin for Tunnel
impl UnwindSafe for Tunnel
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