pub struct PersistentFloat {
pub key: GString,
pub value: f32,
pub base: Base<Node>,
/* private fields */
}Fields§
§key: GString§value: f32§base: Base<Node>Implementations§
Source§impl PersistentFloat
impl PersistentFloat
pub fn get_key(&self) -> <GString as GodotConvert>::Via
pub fn set_key(&mut self, key: <GString as GodotConvert>::Via)
pub fn get_value(&self) -> <f32 as GodotConvert>::Via
pub fn set_value(&mut self, value: <f32 as GodotConvert>::Via)
Trait Implementations§
Source§impl Bounds for PersistentFloat
impl Bounds for PersistentFloat
Source§impl Debug for PersistentFloat
impl Debug for PersistentFloat
Source§impl GodotClass for PersistentFloat
impl GodotClass for PersistentFloat
Source§fn class_name() -> ClassName
fn class_name() -> ClassName
The name of the class, under which it is registered in Godot. Read more
Source§const INIT_LEVEL: InitLevel = <Self::Base as GodotClass>::INIT_LEVEL
const INIT_LEVEL: InitLevel = <Self::Base as GodotClass>::INIT_LEVEL
Initialization level, during which this class should be initialized with Godot. Read more
Source§impl INode for PersistentFloat
impl INode for PersistentFloat
Source§fn init(base: Base<Node>) -> Self
fn init(base: Base<Node>) -> Self
Godot constructor, accepting an injected
base object. Read morefn enter_tree(&mut self)
fn exit_tree(&mut self)
Source§fn on_notification(&mut self, what: NodeNotification)
fn on_notification(&mut self, what: NodeNotification)
Called when the object receives a Godot notification. Read more
Source§fn get_property(&self, property: StringName) -> Option<Variant>
fn get_property(&self, property: StringName) -> Option<Variant>
Source§fn set_property(&mut self, property: StringName, value: Variant) -> bool
fn set_property(&mut self, property: StringName, value: Variant) -> bool
Source§fn get_property_list(&mut self) -> Vec<PropertyInfo>
fn get_property_list(&mut self) -> Vec<PropertyInfo>
Called whenever Godot
get_property_list() is called, the returned vector here is
appended to the existing list of properties. Read moreSource§fn validate_property(&self, property: &mut PropertyInfo)
fn validate_property(&self, property: &mut PropertyInfo)
Called whenever Godot retrieves value of property. Allows to customize existing properties.
Every property info goes through this method, except properties added with
get_property_list(). Read moreSource§fn property_get_revert(&self, property: StringName) -> Option<Variant>
fn property_get_revert(&self, property: StringName) -> Option<Variant>
Called by Godot to tell if a property has a custom revert or not. Read more
fn process(&mut self, delta: f64)
fn physics_process(&mut self, delta: f64)
fn ready(&mut self)
fn get_configuration_warnings(&self) -> PackedStringArray
fn input(&mut self, event: Gd<InputEvent>)
fn shortcut_input(&mut self, event: Gd<InputEvent>)
fn unhandled_input(&mut self, event: Gd<InputEvent>)
fn unhandled_key_input(&mut self, event: Gd<InputEvent>)
Source§impl WithBaseField for PersistentFloat
impl WithBaseField for PersistentFloat
impl GodotDefault for PersistentFloat
impl ImplementsGodotExports for PersistentFloat
impl ImplementsGodotVirtual for PersistentFloat
impl Inherits<Node> for PersistentFloat
impl Inherits<Object> for PersistentFloat
impl You_forgot_the_attribute__godot_api for PersistentFloat
Auto Trait Implementations§
impl !Freeze for PersistentFloat
impl !RefUnwindSafe for PersistentFloat
impl !Send for PersistentFloat
impl !Sync for PersistentFloat
impl Unpin for PersistentFloat
impl !UnwindSafe for PersistentFloat
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