use std::os::raw::c_char;
use std::ptr;
use std::mem;
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct Skeleton {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for Skeleton {
fn class_name() -> &'static str {
"Skeleton"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for Skeleton {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for Skeleton {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for Skeleton {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl Skeleton {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = SkeletonMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
Skeleton {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn add_bone(&mut self, name: GodotString) -> () {
Skeleton_add_bone(self.this, name)
}
#[inline]
pub unsafe fn find_bone(&self, name: GodotString) -> i64 {
Skeleton_find_bone(self.this, name)
}
#[inline]
pub unsafe fn get_bone_name(&self, bone_idx: i64) -> GodotString {
Skeleton_get_bone_name(self.this, bone_idx)
}
#[inline]
pub unsafe fn get_bone_parent(&self, bone_idx: i64) -> i64 {
Skeleton_get_bone_parent(self.this, bone_idx)
}
#[inline]
pub unsafe fn set_bone_parent(&mut self, bone_idx: i64, parent_idx: i64) -> () {
Skeleton_set_bone_parent(self.this, bone_idx, parent_idx)
}
#[inline]
pub unsafe fn get_bone_count(&self) -> i64 {
Skeleton_get_bone_count(self.this)
}
#[inline]
pub unsafe fn unparent_bone_and_rest(&mut self, bone_idx: i64) -> () {
Skeleton_unparent_bone_and_rest(self.this, bone_idx)
}
#[inline]
pub unsafe fn get_bone_rest(&self, bone_idx: i64) -> Transform {
Skeleton_get_bone_rest(self.this, bone_idx)
}
#[inline]
pub unsafe fn set_bone_rest(&mut self, bone_idx: i64, rest: Transform) -> () {
Skeleton_set_bone_rest(self.this, bone_idx, rest)
}
#[inline]
pub unsafe fn set_bone_disable_rest(&mut self, bone_idx: i64, disable: bool) -> () {
Skeleton_set_bone_disable_rest(self.this, bone_idx, disable)
}
#[inline]
pub unsafe fn is_bone_rest_disabled(&self, bone_idx: i64) -> bool {
Skeleton_is_bone_rest_disabled(self.this, bone_idx)
}
#[inline]
pub unsafe fn bind_child_node_to_bone(&mut self, bone_idx: i64, node: Option<Object>) -> () {
Skeleton_bind_child_node_to_bone(self.this, bone_idx, node)
}
#[inline]
pub unsafe fn unbind_child_node_from_bone(&mut self, bone_idx: i64, node: Option<Object>) -> () {
Skeleton_unbind_child_node_from_bone(self.this, bone_idx, node)
}
#[inline]
pub unsafe fn get_bound_child_nodes_to_bone(&self, bone_idx: i64) -> VariantArray {
Skeleton_get_bound_child_nodes_to_bone(self.this, bone_idx)
}
#[inline]
pub unsafe fn clear_bones(&mut self) -> () {
Skeleton_clear_bones(self.this)
}
#[inline]
pub unsafe fn get_bone_pose(&self, bone_idx: i64) -> Transform {
Skeleton_get_bone_pose(self.this, bone_idx)
}
#[inline]
pub unsafe fn set_bone_pose(&mut self, bone_idx: i64, pose: Transform) -> () {
Skeleton_set_bone_pose(self.this, bone_idx, pose)
}
#[inline]
pub unsafe fn set_bone_global_pose(&mut self, bone_idx: i64, pose: Transform) -> () {
Skeleton_set_bone_global_pose(self.this, bone_idx, pose)
}
#[inline]
pub unsafe fn get_bone_global_pose(&self, bone_idx: i64) -> Transform {
Skeleton_get_bone_global_pose(self.this, bone_idx)
}
#[inline]
pub unsafe fn get_bone_custom_pose(&self, bone_idx: i64) -> Transform {
Skeleton_get_bone_custom_pose(self.this, bone_idx)
}
#[inline]
pub unsafe fn set_bone_custom_pose(&mut self, bone_idx: i64, custom_pose: Transform) -> () {
Skeleton_set_bone_custom_pose(self.this, bone_idx, custom_pose)
}
#[inline]
pub unsafe fn get_bone_transform(&self, bone_idx: i64) -> Transform {
Skeleton_get_bone_transform(self.this, bone_idx)
}
#[inline]
pub unsafe fn physical_bones_stop_simulation(&mut self) -> () {
Skeleton_physical_bones_stop_simulation(self.this)
}
#[inline]
pub unsafe fn physical_bones_start_simulation(&mut self, bones: VariantArray) -> () {
Skeleton_physical_bones_start_simulation(self.this, bones)
}
#[inline]
pub unsafe fn physical_bones_add_collision_exception(&mut self, exception: Rid) -> () {
Skeleton_physical_bones_add_collision_exception(self.this, exception)
}
#[inline]
pub unsafe fn physical_bones_remove_collision_exception(&mut self, exception: Rid) -> () {
Skeleton_physical_bones_remove_collision_exception(self.this, exception)
}
#[inline]
pub unsafe fn set_transform(&mut self, local: Transform) -> () {
Spatial_set_transform(self.this, local)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform {
Spatial_get_transform(self.this)
}
#[inline]
pub unsafe fn set_translation(&mut self, translation: Vector3) -> () {
Spatial_set_translation(self.this, translation)
}
#[inline]
pub unsafe fn get_translation(&self) -> Vector3 {
Spatial_get_translation(self.this)
}
#[inline]
pub unsafe fn set_rotation(&mut self, euler: Vector3) -> () {
Spatial_set_rotation(self.this, euler)
}
#[inline]
pub unsafe fn get_rotation(&self) -> Vector3 {
Spatial_get_rotation(self.this)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, euler_degrees: Vector3) -> () {
Spatial_set_rotation_degrees(self.this, euler_degrees)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> Vector3 {
Spatial_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector3) -> () {
Spatial_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector3 {
Spatial_get_scale(self.this)
}
#[inline]
pub unsafe fn set_global_transform(&mut self, global: Transform) -> () {
Spatial_set_global_transform(self.this, global)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform {
Spatial_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_parent_spatial(&self) -> Option<Spatial> {
Spatial_get_parent_spatial(self.this)
}
#[inline]
pub unsafe fn set_ignore_transform_notification(&mut self, enabled: bool) -> () {
Spatial_set_ignore_transform_notification(self.this, enabled)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
Spatial_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
Spatial_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_disable_scale(&mut self, disable: bool) -> () {
Spatial_set_disable_scale(self.this, disable)
}
#[inline]
pub unsafe fn is_scale_disabled(&self) -> bool {
Spatial_is_scale_disabled(self.this)
}
#[inline]
pub unsafe fn get_world(&self) -> Option<World> {
Spatial_get_world(self.this)
}
#[inline]
pub unsafe fn _update_gizmo(&mut self) -> () {
Spatial__update_gizmo(self.this)
}
#[inline]
pub unsafe fn update_gizmo(&mut self) -> () {
Spatial_update_gizmo(self.this)
}
#[inline]
pub unsafe fn set_gizmo(&mut self, gizmo: Option<SpatialGizmo>) -> () {
Spatial_set_gizmo(self.this, gizmo)
}
#[inline]
pub unsafe fn get_gizmo(&self) -> Option<SpatialGizmo> {
Spatial_get_gizmo(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
Spatial_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
Spatial_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
Spatial_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
Spatial_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
Spatial_hide(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
Spatial_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
Spatial_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
Spatial_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
Spatial_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn rotate(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_rotate(self.this, axis, angle)
}
#[inline]
pub unsafe fn global_rotate(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_global_rotate(self.this, axis, angle)
}
#[inline]
pub unsafe fn global_scale(&mut self, scale: Vector3) -> () {
Spatial_global_scale(self.this, scale)
}
#[inline]
pub unsafe fn global_translate(&mut self, offset: Vector3) -> () {
Spatial_global_translate(self.this, offset)
}
#[inline]
pub unsafe fn rotate_object_local(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_rotate_object_local(self.this, axis, angle)
}
#[inline]
pub unsafe fn scale_object_local(&mut self, scale: Vector3) -> () {
Spatial_scale_object_local(self.this, scale)
}
#[inline]
pub unsafe fn translate_object_local(&mut self, offset: Vector3) -> () {
Spatial_translate_object_local(self.this, offset)
}
#[inline]
pub unsafe fn rotate_x(&mut self, angle: f64) -> () {
Spatial_rotate_x(self.this, angle)
}
#[inline]
pub unsafe fn rotate_y(&mut self, angle: f64) -> () {
Spatial_rotate_y(self.this, angle)
}
#[inline]
pub unsafe fn rotate_z(&mut self, angle: f64) -> () {
Spatial_rotate_z(self.this, angle)
}
#[inline]
pub unsafe fn translate(&mut self, offset: Vector3) -> () {
Spatial_translate(self.this, offset)
}
#[inline]
pub unsafe fn orthonormalize(&mut self) -> () {
Spatial_orthonormalize(self.this)
}
#[inline]
pub unsafe fn set_identity(&mut self) -> () {
Spatial_set_identity(self.this)
}
#[inline]
pub unsafe fn look_at(&mut self, target: Vector3, up: Vector3) -> () {
Spatial_look_at(self.this, target, up)
}
#[inline]
pub unsafe fn look_at_from_position(&mut self, position: Vector3, target: Vector3, up: Vector3) -> () {
Spatial_look_at_from_position(self.this, position, target, up)
}
#[inline]
pub unsafe fn to_local(&self, global_point: Vector3) -> Vector3 {
Spatial_to_local(self.this, global_point)
}
#[inline]
pub unsafe fn to_global(&self, local_point: Vector3) -> Vector3 {
Spatial_to_global(self.this, local_point)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_spatial(&self) -> Spatial {
Spatial { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationPlayer {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationPlayerAnimationProcessMode {
Physics = 0,
Idle = 1,
}
unsafe impl GodotObject for AnimationPlayer {
fn class_name() -> &'static str {
"AnimationPlayer"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationPlayer {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for AnimationPlayer {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for AnimationPlayer {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl AnimationPlayer {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationPlayerMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
AnimationPlayer {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn _node_removed(&mut self, arg0: Option<Object>) -> () {
AnimationPlayer__node_removed(self.this, arg0)
}
#[inline]
pub unsafe fn _animation_changed(&mut self) -> () {
AnimationPlayer__animation_changed(self.this)
}
#[inline]
pub unsafe fn add_animation(&mut self, name: GodotString, animation: Option<Animation>) -> GodotResult {
AnimationPlayer_add_animation(self.this, name, animation)
}
#[inline]
pub unsafe fn remove_animation(&mut self, name: GodotString) -> () {
AnimationPlayer_remove_animation(self.this, name)
}
#[inline]
pub unsafe fn rename_animation(&mut self, name: GodotString, newname: GodotString) -> () {
AnimationPlayer_rename_animation(self.this, name, newname)
}
#[inline]
pub unsafe fn has_animation(&self, name: GodotString) -> bool {
AnimationPlayer_has_animation(self.this, name)
}
#[inline]
pub unsafe fn get_animation(&self, name: GodotString) -> Option<Animation> {
AnimationPlayer_get_animation(self.this, name)
}
#[inline]
pub unsafe fn get_animation_list(&self) -> StringArray {
AnimationPlayer_get_animation_list(self.this)
}
#[inline]
pub unsafe fn animation_set_next(&mut self, anim_from: GodotString, anim_to: GodotString) -> () {
AnimationPlayer_animation_set_next(self.this, anim_from, anim_to)
}
#[inline]
pub unsafe fn animation_get_next(&self, anim_from: GodotString) -> GodotString {
AnimationPlayer_animation_get_next(self.this, anim_from)
}
#[inline]
pub unsafe fn set_blend_time(&mut self, anim_from: GodotString, anim_to: GodotString, sec: f64) -> () {
AnimationPlayer_set_blend_time(self.this, anim_from, anim_to, sec)
}
#[inline]
pub unsafe fn get_blend_time(&self, anim_from: GodotString, anim_to: GodotString) -> f64 {
AnimationPlayer_get_blend_time(self.this, anim_from, anim_to)
}
#[inline]
pub unsafe fn set_default_blend_time(&mut self, sec: f64) -> () {
AnimationPlayer_set_default_blend_time(self.this, sec)
}
#[inline]
pub unsafe fn get_default_blend_time(&self) -> f64 {
AnimationPlayer_get_default_blend_time(self.this)
}
#[inline]
pub unsafe fn play(&mut self, name: GodotString, custom_blend: f64, custom_speed: f64, from_end: bool) -> () {
AnimationPlayer_play(self.this, name, custom_blend, custom_speed, from_end)
}
#[inline]
pub unsafe fn play_backwards(&mut self, name: GodotString, custom_blend: f64) -> () {
AnimationPlayer_play_backwards(self.this, name, custom_blend)
}
#[inline]
pub unsafe fn stop(&mut self, reset: bool) -> () {
AnimationPlayer_stop(self.this, reset)
}
#[inline]
pub unsafe fn is_playing(&self) -> bool {
AnimationPlayer_is_playing(self.this)
}
#[inline]
pub unsafe fn set_current_animation(&mut self, anim: GodotString) -> () {
AnimationPlayer_set_current_animation(self.this, anim)
}
#[inline]
pub unsafe fn get_current_animation(&self) -> GodotString {
AnimationPlayer_get_current_animation(self.this)
}
#[inline]
pub unsafe fn set_assigned_animation(&mut self, anim: GodotString) -> () {
AnimationPlayer_set_assigned_animation(self.this, anim)
}
#[inline]
pub unsafe fn get_assigned_animation(&self) -> GodotString {
AnimationPlayer_get_assigned_animation(self.this)
}
#[inline]
pub unsafe fn queue(&mut self, name: GodotString) -> () {
AnimationPlayer_queue(self.this, name)
}
#[inline]
pub unsafe fn clear_queue(&mut self) -> () {
AnimationPlayer_clear_queue(self.this)
}
#[inline]
pub unsafe fn set_active(&mut self, active: bool) -> () {
AnimationPlayer_set_active(self.this, active)
}
#[inline]
pub unsafe fn is_active(&self) -> bool {
AnimationPlayer_is_active(self.this)
}
#[inline]
pub unsafe fn set_speed_scale(&mut self, speed: f64) -> () {
AnimationPlayer_set_speed_scale(self.this, speed)
}
#[inline]
pub unsafe fn get_speed_scale(&self) -> f64 {
AnimationPlayer_get_speed_scale(self.this)
}
#[inline]
pub unsafe fn get_playing_speed(&self) -> f64 {
AnimationPlayer_get_playing_speed(self.this)
}
#[inline]
pub unsafe fn set_autoplay(&mut self, name: GodotString) -> () {
AnimationPlayer_set_autoplay(self.this, name)
}
#[inline]
pub unsafe fn get_autoplay(&self) -> GodotString {
AnimationPlayer_get_autoplay(self.this)
}
#[inline]
pub unsafe fn set_root(&mut self, path: NodePath) -> () {
AnimationPlayer_set_root(self.this, path)
}
#[inline]
pub unsafe fn get_root(&self) -> NodePath {
AnimationPlayer_get_root(self.this)
}
#[inline]
pub unsafe fn find_animation(&self, animation: Option<Animation>) -> GodotString {
AnimationPlayer_find_animation(self.this, animation)
}
#[inline]
pub unsafe fn clear_caches(&mut self) -> () {
AnimationPlayer_clear_caches(self.this)
}
#[inline]
pub unsafe fn set_animation_process_mode(&mut self, mode: i64) -> () {
AnimationPlayer_set_animation_process_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_animation_process_mode(&self) -> AnimationPlayerAnimationProcessMode {
AnimationPlayer_get_animation_process_mode(self.this)
}
#[inline]
pub unsafe fn get_current_animation_position(&self) -> f64 {
AnimationPlayer_get_current_animation_position(self.this)
}
#[inline]
pub unsafe fn get_current_animation_length(&self) -> f64 {
AnimationPlayer_get_current_animation_length(self.this)
}
#[inline]
pub unsafe fn seek(&mut self, seconds: f64, update: bool) -> () {
AnimationPlayer_seek(self.this, seconds, update)
}
#[inline]
pub unsafe fn advance(&mut self, delta: f64) -> () {
AnimationPlayer_advance(self.this, delta)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct Tween {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum TweenTransitionType {
TransLinear = 0,
TransSine = 1,
TransQuint = 2,
TransQuart = 3,
TransQuad = 4,
TransExpo = 5,
TransElastic = 6,
TransCubic = 7,
TransCirc = 8,
TransBounce = 9,
TransBack = 10,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum TweenTweenProcessMode {
Physics = 0,
Idle = 1,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum TweenEaseType {
EaseIn = 0,
EaseOut = 1,
EaseInOut = 2,
EaseOutIn = 3,
}
unsafe impl GodotObject for Tween {
fn class_name() -> &'static str {
"Tween"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for Tween {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for Tween {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for Tween {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl Tween {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = TweenMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
Tween {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn is_active(&self) -> bool {
Tween_is_active(self.this)
}
#[inline]
pub unsafe fn set_active(&mut self, active: bool) -> () {
Tween_set_active(self.this, active)
}
#[inline]
pub unsafe fn is_repeat(&self) -> bool {
Tween_is_repeat(self.this)
}
#[inline]
pub unsafe fn set_repeat(&mut self, repeat: bool) -> () {
Tween_set_repeat(self.this, repeat)
}
#[inline]
pub unsafe fn set_speed_scale(&mut self, speed: f64) -> () {
Tween_set_speed_scale(self.this, speed)
}
#[inline]
pub unsafe fn get_speed_scale(&self) -> f64 {
Tween_get_speed_scale(self.this)
}
#[inline]
pub unsafe fn set_tween_process_mode(&mut self, mode: i64) -> () {
Tween_set_tween_process_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_tween_process_mode(&self) -> TweenTweenProcessMode {
Tween_get_tween_process_mode(self.this)
}
#[inline]
pub unsafe fn start(&mut self) -> bool {
Tween_start(self.this)
}
#[inline]
pub unsafe fn reset(&mut self, object: Option<Object>, key: GodotString) -> bool {
Tween_reset(self.this, object, key)
}
#[inline]
pub unsafe fn reset_all(&mut self) -> bool {
Tween_reset_all(self.this)
}
#[inline]
pub unsafe fn stop(&mut self, object: Option<Object>, key: GodotString) -> bool {
Tween_stop(self.this, object, key)
}
#[inline]
pub unsafe fn stop_all(&mut self) -> bool {
Tween_stop_all(self.this)
}
#[inline]
pub unsafe fn resume(&mut self, object: Option<Object>, key: GodotString) -> bool {
Tween_resume(self.this, object, key)
}
#[inline]
pub unsafe fn resume_all(&mut self) -> bool {
Tween_resume_all(self.this)
}
#[inline]
pub unsafe fn remove(&mut self, object: Option<Object>, key: GodotString) -> bool {
Tween_remove(self.this, object, key)
}
#[inline]
pub unsafe fn _remove(&mut self, object: Option<Object>, key: GodotString, first_only: bool) -> () {
Tween__remove(self.this, object, key, first_only)
}
#[inline]
pub unsafe fn remove_all(&mut self) -> bool {
Tween_remove_all(self.this)
}
#[inline]
pub unsafe fn seek(&mut self, time: f64) -> bool {
Tween_seek(self.this, time)
}
#[inline]
pub unsafe fn tell(&self) -> f64 {
Tween_tell(self.this)
}
#[inline]
pub unsafe fn get_runtime(&self) -> f64 {
Tween_get_runtime(self.this)
}
#[inline]
pub unsafe fn interpolate_property(&mut self, object: Option<Object>, property: NodePath, initial_val: Variant, final_val: Variant, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
Tween_interpolate_property(self.this, object, property, initial_val, final_val, duration, trans_type, ease_type, delay)
}
#[inline]
pub unsafe fn interpolate_method(&mut self, object: Option<Object>, method: GodotString, initial_val: Variant, final_val: Variant, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
Tween_interpolate_method(self.this, object, method, initial_val, final_val, duration, trans_type, ease_type, delay)
}
#[inline]
pub unsafe fn interpolate_callback(&mut self, object: Option<Object>, duration: f64, callback: GodotString, arg1: Variant, arg2: Variant, arg3: Variant, arg4: Variant, arg5: Variant) -> bool {
Tween_interpolate_callback(self.this, object, duration, callback, arg1, arg2, arg3, arg4, arg5)
}
#[inline]
pub unsafe fn interpolate_deferred_callback(&mut self, object: Option<Object>, duration: f64, callback: GodotString, arg1: Variant, arg2: Variant, arg3: Variant, arg4: Variant, arg5: Variant) -> bool {
Tween_interpolate_deferred_callback(self.this, object, duration, callback, arg1, arg2, arg3, arg4, arg5)
}
#[inline]
pub unsafe fn follow_property(&mut self, object: Option<Object>, property: NodePath, initial_val: Variant, target: Option<Object>, target_property: NodePath, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
Tween_follow_property(self.this, object, property, initial_val, target, target_property, duration, trans_type, ease_type, delay)
}
#[inline]
pub unsafe fn follow_method(&mut self, object: Option<Object>, method: GodotString, initial_val: Variant, target: Option<Object>, target_method: GodotString, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
Tween_follow_method(self.this, object, method, initial_val, target, target_method, duration, trans_type, ease_type, delay)
}
#[inline]
pub unsafe fn targeting_property(&mut self, object: Option<Object>, property: NodePath, initial: Option<Object>, initial_val: NodePath, final_val: Variant, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
Tween_targeting_property(self.this, object, property, initial, initial_val, final_val, duration, trans_type, ease_type, delay)
}
#[inline]
pub unsafe fn targeting_method(&mut self, object: Option<Object>, method: GodotString, initial: Option<Object>, initial_method: GodotString, final_val: Variant, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
Tween_targeting_method(self.this, object, method, initial, initial_method, final_val, duration, trans_type, ease_type, delay)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct BoneAttachment {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for BoneAttachment {
fn class_name() -> &'static str {
"BoneAttachment"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for BoneAttachment {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for BoneAttachment {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for BoneAttachment {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl BoneAttachment {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = BoneAttachmentMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
BoneAttachment {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn set_bone_name(&mut self, bone_name: GodotString) -> () {
BoneAttachment_set_bone_name(self.this, bone_name)
}
#[inline]
pub unsafe fn get_bone_name(&self) -> GodotString {
BoneAttachment_get_bone_name(self.this)
}
#[inline]
pub unsafe fn set_transform(&mut self, local: Transform) -> () {
Spatial_set_transform(self.this, local)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform {
Spatial_get_transform(self.this)
}
#[inline]
pub unsafe fn set_translation(&mut self, translation: Vector3) -> () {
Spatial_set_translation(self.this, translation)
}
#[inline]
pub unsafe fn get_translation(&self) -> Vector3 {
Spatial_get_translation(self.this)
}
#[inline]
pub unsafe fn set_rotation(&mut self, euler: Vector3) -> () {
Spatial_set_rotation(self.this, euler)
}
#[inline]
pub unsafe fn get_rotation(&self) -> Vector3 {
Spatial_get_rotation(self.this)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, euler_degrees: Vector3) -> () {
Spatial_set_rotation_degrees(self.this, euler_degrees)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> Vector3 {
Spatial_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector3) -> () {
Spatial_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector3 {
Spatial_get_scale(self.this)
}
#[inline]
pub unsafe fn set_global_transform(&mut self, global: Transform) -> () {
Spatial_set_global_transform(self.this, global)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform {
Spatial_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_parent_spatial(&self) -> Option<Spatial> {
Spatial_get_parent_spatial(self.this)
}
#[inline]
pub unsafe fn set_ignore_transform_notification(&mut self, enabled: bool) -> () {
Spatial_set_ignore_transform_notification(self.this, enabled)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
Spatial_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
Spatial_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_disable_scale(&mut self, disable: bool) -> () {
Spatial_set_disable_scale(self.this, disable)
}
#[inline]
pub unsafe fn is_scale_disabled(&self) -> bool {
Spatial_is_scale_disabled(self.this)
}
#[inline]
pub unsafe fn get_world(&self) -> Option<World> {
Spatial_get_world(self.this)
}
#[inline]
pub unsafe fn _update_gizmo(&mut self) -> () {
Spatial__update_gizmo(self.this)
}
#[inline]
pub unsafe fn update_gizmo(&mut self) -> () {
Spatial_update_gizmo(self.this)
}
#[inline]
pub unsafe fn set_gizmo(&mut self, gizmo: Option<SpatialGizmo>) -> () {
Spatial_set_gizmo(self.this, gizmo)
}
#[inline]
pub unsafe fn get_gizmo(&self) -> Option<SpatialGizmo> {
Spatial_get_gizmo(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
Spatial_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
Spatial_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
Spatial_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
Spatial_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
Spatial_hide(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
Spatial_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
Spatial_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
Spatial_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
Spatial_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn rotate(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_rotate(self.this, axis, angle)
}
#[inline]
pub unsafe fn global_rotate(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_global_rotate(self.this, axis, angle)
}
#[inline]
pub unsafe fn global_scale(&mut self, scale: Vector3) -> () {
Spatial_global_scale(self.this, scale)
}
#[inline]
pub unsafe fn global_translate(&mut self, offset: Vector3) -> () {
Spatial_global_translate(self.this, offset)
}
#[inline]
pub unsafe fn rotate_object_local(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_rotate_object_local(self.this, axis, angle)
}
#[inline]
pub unsafe fn scale_object_local(&mut self, scale: Vector3) -> () {
Spatial_scale_object_local(self.this, scale)
}
#[inline]
pub unsafe fn translate_object_local(&mut self, offset: Vector3) -> () {
Spatial_translate_object_local(self.this, offset)
}
#[inline]
pub unsafe fn rotate_x(&mut self, angle: f64) -> () {
Spatial_rotate_x(self.this, angle)
}
#[inline]
pub unsafe fn rotate_y(&mut self, angle: f64) -> () {
Spatial_rotate_y(self.this, angle)
}
#[inline]
pub unsafe fn rotate_z(&mut self, angle: f64) -> () {
Spatial_rotate_z(self.this, angle)
}
#[inline]
pub unsafe fn translate(&mut self, offset: Vector3) -> () {
Spatial_translate(self.this, offset)
}
#[inline]
pub unsafe fn orthonormalize(&mut self) -> () {
Spatial_orthonormalize(self.this)
}
#[inline]
pub unsafe fn set_identity(&mut self) -> () {
Spatial_set_identity(self.this)
}
#[inline]
pub unsafe fn look_at(&mut self, target: Vector3, up: Vector3) -> () {
Spatial_look_at(self.this, target, up)
}
#[inline]
pub unsafe fn look_at_from_position(&mut self, position: Vector3, target: Vector3, up: Vector3) -> () {
Spatial_look_at_from_position(self.this, position, target, up)
}
#[inline]
pub unsafe fn to_local(&self, global_point: Vector3) -> Vector3 {
Spatial_to_local(self.this, global_point)
}
#[inline]
pub unsafe fn to_global(&self, local_point: Vector3) -> Vector3 {
Spatial_to_global(self.this, local_point)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_spatial(&self) -> Spatial {
Spatial { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationTreePlayer {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationTreePlayerAnimationProcessMode {
Physics = 0,
Idle = 1,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationTreePlayerNodeType {
NodeOutput = 0,
NodeAnimation = 1,
NodeOneshot = 2,
NodeMix = 3,
NodeBlend2 = 4,
NodeBlend3 = 5,
NodeBlend4 = 6,
NodeTimescale = 7,
NodeTimeseek = 8,
NodeTransition = 9,
}
unsafe impl GodotObject for AnimationTreePlayer {
fn class_name() -> &'static str {
"AnimationTreePlayer"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationTreePlayer {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for AnimationTreePlayer {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for AnimationTreePlayer {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl AnimationTreePlayer {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationTreePlayerMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
AnimationTreePlayer {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn add_node(&mut self, _type: i64, id: GodotString) -> () {
AnimationTreePlayer_add_node(self.this, _type, id)
}
#[inline]
pub unsafe fn node_exists(&self, node: GodotString) -> bool {
AnimationTreePlayer_node_exists(self.this, node)
}
#[inline]
pub unsafe fn node_rename(&mut self, node: GodotString, new_name: GodotString) -> GodotResult {
AnimationTreePlayer_node_rename(self.this, node, new_name)
}
#[inline]
pub unsafe fn node_get_type(&self, id: GodotString) -> AnimationTreePlayerNodeType {
AnimationTreePlayer_node_get_type(self.this, id)
}
#[inline]
pub unsafe fn node_get_input_count(&self, id: GodotString) -> i64 {
AnimationTreePlayer_node_get_input_count(self.this, id)
}
#[inline]
pub unsafe fn node_get_input_source(&self, id: GodotString, idx: i64) -> GodotString {
AnimationTreePlayer_node_get_input_source(self.this, id, idx)
}
#[inline]
pub unsafe fn animation_node_set_animation(&mut self, id: GodotString, animation: Option<Animation>) -> () {
AnimationTreePlayer_animation_node_set_animation(self.this, id, animation)
}
#[inline]
pub unsafe fn animation_node_get_animation(&self, id: GodotString) -> Option<Animation> {
AnimationTreePlayer_animation_node_get_animation(self.this, id)
}
#[inline]
pub unsafe fn animation_node_set_master_animation(&mut self, id: GodotString, source: GodotString) -> () {
AnimationTreePlayer_animation_node_set_master_animation(self.this, id, source)
}
#[inline]
pub unsafe fn animation_node_get_master_animation(&self, id: GodotString) -> GodotString {
AnimationTreePlayer_animation_node_get_master_animation(self.this, id)
}
#[inline]
pub unsafe fn animation_node_get_position(&self, id: GodotString) -> f64 {
AnimationTreePlayer_animation_node_get_position(self.this, id)
}
#[inline]
pub unsafe fn animation_node_set_filter_path(&mut self, id: GodotString, path: NodePath, enable: bool) -> () {
AnimationTreePlayer_animation_node_set_filter_path(self.this, id, path, enable)
}
#[inline]
pub unsafe fn oneshot_node_set_fadein_time(&mut self, id: GodotString, time_sec: f64) -> () {
AnimationTreePlayer_oneshot_node_set_fadein_time(self.this, id, time_sec)
}
#[inline]
pub unsafe fn oneshot_node_get_fadein_time(&self, id: GodotString) -> f64 {
AnimationTreePlayer_oneshot_node_get_fadein_time(self.this, id)
}
#[inline]
pub unsafe fn oneshot_node_set_fadeout_time(&mut self, id: GodotString, time_sec: f64) -> () {
AnimationTreePlayer_oneshot_node_set_fadeout_time(self.this, id, time_sec)
}
#[inline]
pub unsafe fn oneshot_node_get_fadeout_time(&self, id: GodotString) -> f64 {
AnimationTreePlayer_oneshot_node_get_fadeout_time(self.this, id)
}
#[inline]
pub unsafe fn oneshot_node_set_autorestart(&mut self, id: GodotString, enable: bool) -> () {
AnimationTreePlayer_oneshot_node_set_autorestart(self.this, id, enable)
}
#[inline]
pub unsafe fn oneshot_node_set_autorestart_delay(&mut self, id: GodotString, delay_sec: f64) -> () {
AnimationTreePlayer_oneshot_node_set_autorestart_delay(self.this, id, delay_sec)
}
#[inline]
pub unsafe fn oneshot_node_set_autorestart_random_delay(&mut self, id: GodotString, rand_sec: f64) -> () {
AnimationTreePlayer_oneshot_node_set_autorestart_random_delay(self.this, id, rand_sec)
}
#[inline]
pub unsafe fn oneshot_node_has_autorestart(&self, id: GodotString) -> bool {
AnimationTreePlayer_oneshot_node_has_autorestart(self.this, id)
}
#[inline]
pub unsafe fn oneshot_node_get_autorestart_delay(&self, id: GodotString) -> f64 {
AnimationTreePlayer_oneshot_node_get_autorestart_delay(self.this, id)
}
#[inline]
pub unsafe fn oneshot_node_get_autorestart_random_delay(&self, id: GodotString) -> f64 {
AnimationTreePlayer_oneshot_node_get_autorestart_random_delay(self.this, id)
}
#[inline]
pub unsafe fn oneshot_node_start(&mut self, id: GodotString) -> () {
AnimationTreePlayer_oneshot_node_start(self.this, id)
}
#[inline]
pub unsafe fn oneshot_node_stop(&mut self, id: GodotString) -> () {
AnimationTreePlayer_oneshot_node_stop(self.this, id)
}
#[inline]
pub unsafe fn oneshot_node_is_active(&self, id: GodotString) -> bool {
AnimationTreePlayer_oneshot_node_is_active(self.this, id)
}
#[inline]
pub unsafe fn oneshot_node_set_filter_path(&mut self, id: GodotString, path: NodePath, enable: bool) -> () {
AnimationTreePlayer_oneshot_node_set_filter_path(self.this, id, path, enable)
}
#[inline]
pub unsafe fn mix_node_set_amount(&mut self, id: GodotString, ratio: f64) -> () {
AnimationTreePlayer_mix_node_set_amount(self.this, id, ratio)
}
#[inline]
pub unsafe fn mix_node_get_amount(&self, id: GodotString) -> f64 {
AnimationTreePlayer_mix_node_get_amount(self.this, id)
}
#[inline]
pub unsafe fn blend2_node_set_amount(&mut self, id: GodotString, blend: f64) -> () {
AnimationTreePlayer_blend2_node_set_amount(self.this, id, blend)
}
#[inline]
pub unsafe fn blend2_node_get_amount(&self, id: GodotString) -> f64 {
AnimationTreePlayer_blend2_node_get_amount(self.this, id)
}
#[inline]
pub unsafe fn blend2_node_set_filter_path(&mut self, id: GodotString, path: NodePath, enable: bool) -> () {
AnimationTreePlayer_blend2_node_set_filter_path(self.this, id, path, enable)
}
#[inline]
pub unsafe fn blend3_node_set_amount(&mut self, id: GodotString, blend: f64) -> () {
AnimationTreePlayer_blend3_node_set_amount(self.this, id, blend)
}
#[inline]
pub unsafe fn blend3_node_get_amount(&self, id: GodotString) -> f64 {
AnimationTreePlayer_blend3_node_get_amount(self.this, id)
}
#[inline]
pub unsafe fn blend4_node_set_amount(&mut self, id: GodotString, blend: Vector2) -> () {
AnimationTreePlayer_blend4_node_set_amount(self.this, id, blend)
}
#[inline]
pub unsafe fn blend4_node_get_amount(&self, id: GodotString) -> Vector2 {
AnimationTreePlayer_blend4_node_get_amount(self.this, id)
}
#[inline]
pub unsafe fn timescale_node_set_scale(&mut self, id: GodotString, scale: f64) -> () {
AnimationTreePlayer_timescale_node_set_scale(self.this, id, scale)
}
#[inline]
pub unsafe fn timescale_node_get_scale(&self, id: GodotString) -> f64 {
AnimationTreePlayer_timescale_node_get_scale(self.this, id)
}
#[inline]
pub unsafe fn timeseek_node_seek(&mut self, id: GodotString, seconds: f64) -> () {
AnimationTreePlayer_timeseek_node_seek(self.this, id, seconds)
}
#[inline]
pub unsafe fn transition_node_set_input_count(&mut self, id: GodotString, count: i64) -> () {
AnimationTreePlayer_transition_node_set_input_count(self.this, id, count)
}
#[inline]
pub unsafe fn transition_node_get_input_count(&self, id: GodotString) -> i64 {
AnimationTreePlayer_transition_node_get_input_count(self.this, id)
}
#[inline]
pub unsafe fn transition_node_delete_input(&mut self, id: GodotString, input_idx: i64) -> () {
AnimationTreePlayer_transition_node_delete_input(self.this, id, input_idx)
}
#[inline]
pub unsafe fn transition_node_set_input_auto_advance(&mut self, id: GodotString, input_idx: i64, enable: bool) -> () {
AnimationTreePlayer_transition_node_set_input_auto_advance(self.this, id, input_idx, enable)
}
#[inline]
pub unsafe fn transition_node_has_input_auto_advance(&self, id: GodotString, input_idx: i64) -> bool {
AnimationTreePlayer_transition_node_has_input_auto_advance(self.this, id, input_idx)
}
#[inline]
pub unsafe fn transition_node_set_xfade_time(&mut self, id: GodotString, time_sec: f64) -> () {
AnimationTreePlayer_transition_node_set_xfade_time(self.this, id, time_sec)
}
#[inline]
pub unsafe fn transition_node_get_xfade_time(&self, id: GodotString) -> f64 {
AnimationTreePlayer_transition_node_get_xfade_time(self.this, id)
}
#[inline]
pub unsafe fn transition_node_set_current(&mut self, id: GodotString, input_idx: i64) -> () {
AnimationTreePlayer_transition_node_set_current(self.this, id, input_idx)
}
#[inline]
pub unsafe fn transition_node_get_current(&self, id: GodotString) -> i64 {
AnimationTreePlayer_transition_node_get_current(self.this, id)
}
#[inline]
pub unsafe fn node_set_position(&mut self, id: GodotString, screen_position: Vector2) -> () {
AnimationTreePlayer_node_set_position(self.this, id, screen_position)
}
#[inline]
pub unsafe fn node_get_position(&self, id: GodotString) -> Vector2 {
AnimationTreePlayer_node_get_position(self.this, id)
}
#[inline]
pub unsafe fn remove_node(&mut self, id: GodotString) -> () {
AnimationTreePlayer_remove_node(self.this, id)
}
#[inline]
pub unsafe fn connect_nodes(&mut self, id: GodotString, dst_id: GodotString, dst_input_idx: i64) -> GodotResult {
AnimationTreePlayer_connect_nodes(self.this, id, dst_id, dst_input_idx)
}
#[inline]
pub unsafe fn are_nodes_connected(&self, id: GodotString, dst_id: GodotString, dst_input_idx: i64) -> bool {
AnimationTreePlayer_are_nodes_connected(self.this, id, dst_id, dst_input_idx)
}
#[inline]
pub unsafe fn disconnect_nodes(&mut self, id: GodotString, dst_input_idx: i64) -> () {
AnimationTreePlayer_disconnect_nodes(self.this, id, dst_input_idx)
}
#[inline]
pub unsafe fn set_active(&mut self, enabled: bool) -> () {
AnimationTreePlayer_set_active(self.this, enabled)
}
#[inline]
pub unsafe fn is_active(&self) -> bool {
AnimationTreePlayer_is_active(self.this)
}
#[inline]
pub unsafe fn set_base_path(&mut self, path: NodePath) -> () {
AnimationTreePlayer_set_base_path(self.this, path)
}
#[inline]
pub unsafe fn get_base_path(&self) -> NodePath {
AnimationTreePlayer_get_base_path(self.this)
}
#[inline]
pub unsafe fn set_master_player(&mut self, nodepath: NodePath) -> () {
AnimationTreePlayer_set_master_player(self.this, nodepath)
}
#[inline]
pub unsafe fn get_master_player(&self) -> NodePath {
AnimationTreePlayer_get_master_player(self.this)
}
#[inline]
pub unsafe fn get_node_list(&mut self) -> StringArray {
AnimationTreePlayer_get_node_list(self.this)
}
#[inline]
pub unsafe fn set_animation_process_mode(&mut self, mode: i64) -> () {
AnimationTreePlayer_set_animation_process_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_animation_process_mode(&self) -> AnimationTreePlayerAnimationProcessMode {
AnimationTreePlayer_get_animation_process_mode(self.this)
}
#[inline]
pub unsafe fn advance(&mut self, delta: f64) -> () {
AnimationTreePlayer_advance(self.this, delta)
}
#[inline]
pub unsafe fn reset(&mut self) -> () {
AnimationTreePlayer_reset(self.this)
}
#[inline]
pub unsafe fn recompute_caches(&mut self) -> () {
AnimationTreePlayer_recompute_caches(self.this)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct Skeleton2D {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for Skeleton2D {
fn class_name() -> &'static str {
"Skeleton2D"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for Skeleton2D {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for Skeleton2D {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for Skeleton2D {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl Skeleton2D {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = Skeleton2DMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
Skeleton2D {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn _update_bone_setup(&mut self) -> () {
Skeleton2D__update_bone_setup(self.this)
}
#[inline]
pub unsafe fn _update_transform(&mut self) -> () {
Skeleton2D__update_transform(self.this)
}
#[inline]
pub unsafe fn get_bone_count(&self) -> i64 {
Skeleton2D_get_bone_count(self.this)
}
#[inline]
pub unsafe fn get_bone(&mut self, arg0: i64) -> Option<Bone2D> {
Skeleton2D_get_bone(self.this, arg0)
}
#[inline]
pub unsafe fn get_skeleton(&self) -> Rid {
Skeleton2D_get_skeleton(self.this)
}
#[inline]
pub unsafe fn set_position(&mut self, position: Vector2) -> () {
Node2D_set_position(self.this, position)
}
#[inline]
pub unsafe fn set_rotation(&mut self, radians: f64) -> () {
Node2D_set_rotation(self.this, radians)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, degrees: f64) -> () {
Node2D_set_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector2) -> () {
Node2D_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_position(&self) -> Vector2 {
Node2D_get_position(self.this)
}
#[inline]
pub unsafe fn get_rotation(&self) -> f64 {
Node2D_get_rotation(self.this)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> f64 {
Node2D_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector2 {
Node2D_get_scale(self.this)
}
#[inline]
pub unsafe fn rotate(&mut self, radians: f64) -> () {
Node2D_rotate(self.this, radians)
}
#[inline]
pub unsafe fn move_local_x(&mut self, delta: f64, scaled: bool) -> () {
Node2D_move_local_x(self.this, delta, scaled)
}
#[inline]
pub unsafe fn move_local_y(&mut self, delta: f64, scaled: bool) -> () {
Node2D_move_local_y(self.this, delta, scaled)
}
#[inline]
pub unsafe fn translate(&mut self, offset: Vector2) -> () {
Node2D_translate(self.this, offset)
}
#[inline]
pub unsafe fn global_translate(&mut self, offset: Vector2) -> () {
Node2D_global_translate(self.this, offset)
}
#[inline]
pub unsafe fn apply_scale(&mut self, ratio: Vector2) -> () {
Node2D_apply_scale(self.this, ratio)
}
#[inline]
pub unsafe fn set_global_position(&mut self, position: Vector2) -> () {
Node2D_set_global_position(self.this, position)
}
#[inline]
pub unsafe fn get_global_position(&self) -> Vector2 {
Node2D_get_global_position(self.this)
}
#[inline]
pub unsafe fn set_global_rotation(&mut self, radians: f64) -> () {
Node2D_set_global_rotation(self.this, radians)
}
#[inline]
pub unsafe fn get_global_rotation(&self) -> f64 {
Node2D_get_global_rotation(self.this)
}
#[inline]
pub unsafe fn set_global_rotation_degrees(&mut self, degrees: f64) -> () {
Node2D_set_global_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn get_global_rotation_degrees(&self) -> f64 {
Node2D_get_global_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn set_global_scale(&mut self, scale: Vector2) -> () {
Node2D_set_global_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_global_scale(&self) -> Vector2 {
Node2D_get_global_scale(self.this)
}
#[inline]
pub unsafe fn set_transform(&mut self, xform: Transform2D) -> () {
Node2D_set_transform(self.this, xform)
}
#[inline]
pub unsafe fn set_global_transform(&mut self, xform: Transform2D) -> () {
Node2D_set_global_transform(self.this, xform)
}
#[inline]
pub unsafe fn look_at(&mut self, point: Vector2) -> () {
Node2D_look_at(self.this, point)
}
#[inline]
pub unsafe fn get_angle_to(&self, point: Vector2) -> f64 {
Node2D_get_angle_to(self.this, point)
}
#[inline]
pub unsafe fn to_local(&self, global_point: Vector2) -> Vector2 {
Node2D_to_local(self.this, global_point)
}
#[inline]
pub unsafe fn to_global(&self, local_point: Vector2) -> Vector2 {
Node2D_to_global(self.this, local_point)
}
#[inline]
pub unsafe fn set_z_index(&mut self, z_index: i64) -> () {
Node2D_set_z_index(self.this, z_index)
}
#[inline]
pub unsafe fn get_z_index(&self) -> i64 {
Node2D_get_z_index(self.this)
}
#[inline]
pub unsafe fn set_z_as_relative(&mut self, enable: bool) -> () {
Node2D_set_z_as_relative(self.this, enable)
}
#[inline]
pub unsafe fn is_z_relative(&self) -> bool {
Node2D_is_z_relative(self.this)
}
#[inline]
pub unsafe fn get_relative_transform_to_parent(&self, parent: Option<Object>) -> Transform2D {
Node2D_get_relative_transform_to_parent(self.this, parent)
}
#[inline]
pub unsafe fn _draw(&mut self) -> () {
CanvasItem__draw(self.this)
}
#[inline]
pub unsafe fn _toplevel_raise_self(&mut self) -> () {
CanvasItem__toplevel_raise_self(self.this)
}
#[inline]
pub unsafe fn _update_callback(&mut self) -> () {
CanvasItem__update_callback(self.this)
}
#[inline]
pub unsafe fn _edit_set_state(&mut self, state: Dictionary) -> () {
CanvasItem__edit_set_state(self.this, state)
}
#[inline]
pub unsafe fn _edit_get_state(&self) -> Dictionary {
CanvasItem__edit_get_state(self.this)
}
#[inline]
pub unsafe fn _edit_set_position(&mut self, position: Vector2) -> () {
CanvasItem__edit_set_position(self.this, position)
}
#[inline]
pub unsafe fn _edit_get_position(&self) -> Vector2 {
CanvasItem__edit_get_position(self.this)
}
#[inline]
pub unsafe fn _edit_set_scale(&mut self, scale: Vector2) -> () {
CanvasItem__edit_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn _edit_get_scale(&self) -> Vector2 {
CanvasItem__edit_get_scale(self.this)
}
#[inline]
pub unsafe fn _edit_set_rect(&mut self, rect: Rect2) -> () {
CanvasItem__edit_set_rect(self.this, rect)
}
#[inline]
pub unsafe fn _edit_get_rect(&self) -> Rect2 {
CanvasItem__edit_get_rect(self.this)
}
#[inline]
pub unsafe fn _edit_use_rect(&self) -> bool {
CanvasItem__edit_use_rect(self.this)
}
#[inline]
pub unsafe fn _edit_set_rotation(&mut self, degrees: f64) -> () {
CanvasItem__edit_set_rotation(self.this, degrees)
}
#[inline]
pub unsafe fn _edit_get_rotation(&self) -> f64 {
CanvasItem__edit_get_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_use_rotation(&self) -> bool {
CanvasItem__edit_use_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_set_pivot(&mut self, pivot: Vector2) -> () {
CanvasItem__edit_set_pivot(self.this, pivot)
}
#[inline]
pub unsafe fn _edit_get_pivot(&self) -> Vector2 {
CanvasItem__edit_get_pivot(self.this)
}
#[inline]
pub unsafe fn _edit_use_pivot(&self) -> bool {
CanvasItem__edit_use_pivot(self.this)
}
#[inline]
pub unsafe fn get_canvas_item(&self) -> Rid {
CanvasItem_get_canvas_item(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
CanvasItem_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
CanvasItem_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
CanvasItem_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
CanvasItem_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
CanvasItem_hide(self.this)
}
#[inline]
pub unsafe fn update(&mut self) -> () {
CanvasItem_update(self.this)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
CanvasItem_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
CanvasItem_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_light_mask(&mut self, light_mask: i64) -> () {
CanvasItem_set_light_mask(self.this, light_mask)
}
#[inline]
pub unsafe fn get_light_mask(&self) -> i64 {
CanvasItem_get_light_mask(self.this)
}
#[inline]
pub unsafe fn set_modulate(&mut self, modulate: Color) -> () {
CanvasItem_set_modulate(self.this, modulate)
}
#[inline]
pub unsafe fn get_modulate(&self) -> Color {
CanvasItem_get_modulate(self.this)
}
#[inline]
pub unsafe fn set_self_modulate(&mut self, self_modulate: Color) -> () {
CanvasItem_set_self_modulate(self.this, self_modulate)
}
#[inline]
pub unsafe fn get_self_modulate(&self) -> Color {
CanvasItem_get_self_modulate(self.this)
}
#[inline]
pub unsafe fn set_draw_behind_parent(&mut self, enable: bool) -> () {
CanvasItem_set_draw_behind_parent(self.this, enable)
}
#[inline]
pub unsafe fn is_draw_behind_parent_enabled(&self) -> bool {
CanvasItem_is_draw_behind_parent_enabled(self.this)
}
#[inline]
pub unsafe fn _set_on_top(&mut self, on_top: bool) -> () {
CanvasItem__set_on_top(self.this, on_top)
}
#[inline]
pub unsafe fn _is_on_top(&self) -> bool {
CanvasItem__is_on_top(self.this)
}
#[inline]
pub unsafe fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_line(self.this, from, to, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_rect(&mut self, rect: Rect2, color: Color, filled: bool) -> () {
CanvasItem_draw_rect(self.this, rect, color, filled)
}
#[inline]
pub unsafe fn draw_circle(&mut self, position: Vector2, radius: f64, color: Color) -> () {
CanvasItem_draw_circle(self.this, position, radius, color)
}
#[inline]
pub unsafe fn draw_texture(&mut self, texture: Option<Texture>, position: Vector2, modulate: Color, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture(self.this, texture, position, modulate, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect(&mut self, texture: Option<Texture>, rect: Rect2, tile: bool, modulate: Color, transpose: bool, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture_rect(self.this, texture, rect, tile, modulate, transpose, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect_region(&mut self, texture: Option<Texture>, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, normal_map: Option<Texture>, clip_uv: bool) -> () {
CanvasItem_draw_texture_rect_region(self.this, texture, rect, src_rect, modulate, transpose, normal_map, clip_uv)
}
#[inline]
pub unsafe fn draw_style_box(&mut self, style_box: Option<StyleBox>, rect: Rect2) -> () {
CanvasItem_draw_style_box(self.this, style_box, rect)
}
#[inline]
pub unsafe fn draw_primitive(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, width: f64, normal_map: Option<Texture>) -> () {
CanvasItem_draw_primitive(self.this, points, colors, uvs, texture, width, normal_map)
}
#[inline]
pub unsafe fn draw_polygon(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_polygon(self.this, points, colors, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_colored_polygon(&mut self, points: Vector2Array, color: Color, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_colored_polygon(self.this, points, color, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_string(&mut self, font: Option<Font>, position: Vector2, text: GodotString, modulate: Color, clip_w: i64) -> () {
CanvasItem_draw_string(self.this, font, position, text, modulate, clip_w)
}
#[inline]
pub unsafe fn draw_char(&mut self, font: Option<Font>, position: Vector2, char: GodotString, next: GodotString, modulate: Color) -> f64 {
CanvasItem_draw_char(self.this, font, position, char, next, modulate)
}
#[inline]
pub unsafe fn draw_mesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_mesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_multimesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_multimesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_set_transform(&mut self, position: Vector2, rotation: f64, scale: Vector2) -> () {
CanvasItem_draw_set_transform(self.this, position, rotation, scale)
}
#[inline]
pub unsafe fn draw_set_transform_matrix(&mut self, xform: Transform2D) -> () {
CanvasItem_draw_set_transform_matrix(self.this, xform)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform2D {
CanvasItem_get_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform2D {
CanvasItem_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform_with_canvas(&self) -> Transform2D {
CanvasItem_get_global_transform_with_canvas(self.this)
}
#[inline]
pub unsafe fn get_viewport_transform(&self) -> Transform2D {
CanvasItem_get_viewport_transform(self.this)
}
#[inline]
pub unsafe fn get_viewport_rect(&self) -> Rect2 {
CanvasItem_get_viewport_rect(self.this)
}
#[inline]
pub unsafe fn get_canvas_transform(&self) -> Transform2D {
CanvasItem_get_canvas_transform(self.this)
}
#[inline]
pub unsafe fn get_local_mouse_position(&self) -> Vector2 {
CanvasItem_get_local_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_global_mouse_position(&self) -> Vector2 {
CanvasItem_get_global_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_canvas(&self) -> Rid {
CanvasItem_get_canvas(self.this)
}
#[inline]
pub unsafe fn get_world_2d(&self) -> Option<World2D> {
CanvasItem_get_world_2d(self.this)
}
#[inline]
pub unsafe fn set_material(&mut self, material: Option<Material>) -> () {
CanvasItem_set_material(self.this, material)
}
#[inline]
pub unsafe fn get_material(&self) -> Option<Material> {
CanvasItem_get_material(self.this)
}
#[inline]
pub unsafe fn set_use_parent_material(&mut self, enable: bool) -> () {
CanvasItem_set_use_parent_material(self.this, enable)
}
#[inline]
pub unsafe fn get_use_parent_material(&self) -> bool {
CanvasItem_get_use_parent_material(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
CanvasItem_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
CanvasItem_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2 {
CanvasItem_make_canvas_position_local(self.this, screen_point)
}
#[inline]
pub unsafe fn make_input_local(&self, event: Option<InputEvent>) -> Option<InputEvent> {
CanvasItem_make_input_local(self.this, event)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node_2d(&self) -> Node2D {
Node2D { this: self.this }
}
#[inline]
pub unsafe fn to_canvas_item(&self) -> CanvasItem {
CanvasItem { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct Bone2D {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for Bone2D {
fn class_name() -> &'static str {
"Bone2D"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for Bone2D {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for Bone2D {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for Bone2D {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl Bone2D {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = Bone2DMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
Bone2D {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn set_rest(&mut self, rest: Transform2D) -> () {
Bone2D_set_rest(self.this, rest)
}
#[inline]
pub unsafe fn get_rest(&self) -> Transform2D {
Bone2D_get_rest(self.this)
}
#[inline]
pub unsafe fn apply_rest(&mut self) -> () {
Bone2D_apply_rest(self.this)
}
#[inline]
pub unsafe fn get_skeleton_rest(&self) -> Transform2D {
Bone2D_get_skeleton_rest(self.this)
}
#[inline]
pub unsafe fn get_index_in_skeleton(&self) -> i64 {
Bone2D_get_index_in_skeleton(self.this)
}
#[inline]
pub unsafe fn set_default_length(&mut self, default_length: f64) -> () {
Bone2D_set_default_length(self.this, default_length)
}
#[inline]
pub unsafe fn get_default_length(&self) -> f64 {
Bone2D_get_default_length(self.this)
}
#[inline]
pub unsafe fn set_position(&mut self, position: Vector2) -> () {
Node2D_set_position(self.this, position)
}
#[inline]
pub unsafe fn set_rotation(&mut self, radians: f64) -> () {
Node2D_set_rotation(self.this, radians)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, degrees: f64) -> () {
Node2D_set_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector2) -> () {
Node2D_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_position(&self) -> Vector2 {
Node2D_get_position(self.this)
}
#[inline]
pub unsafe fn get_rotation(&self) -> f64 {
Node2D_get_rotation(self.this)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> f64 {
Node2D_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector2 {
Node2D_get_scale(self.this)
}
#[inline]
pub unsafe fn rotate(&mut self, radians: f64) -> () {
Node2D_rotate(self.this, radians)
}
#[inline]
pub unsafe fn move_local_x(&mut self, delta: f64, scaled: bool) -> () {
Node2D_move_local_x(self.this, delta, scaled)
}
#[inline]
pub unsafe fn move_local_y(&mut self, delta: f64, scaled: bool) -> () {
Node2D_move_local_y(self.this, delta, scaled)
}
#[inline]
pub unsafe fn translate(&mut self, offset: Vector2) -> () {
Node2D_translate(self.this, offset)
}
#[inline]
pub unsafe fn global_translate(&mut self, offset: Vector2) -> () {
Node2D_global_translate(self.this, offset)
}
#[inline]
pub unsafe fn apply_scale(&mut self, ratio: Vector2) -> () {
Node2D_apply_scale(self.this, ratio)
}
#[inline]
pub unsafe fn set_global_position(&mut self, position: Vector2) -> () {
Node2D_set_global_position(self.this, position)
}
#[inline]
pub unsafe fn get_global_position(&self) -> Vector2 {
Node2D_get_global_position(self.this)
}
#[inline]
pub unsafe fn set_global_rotation(&mut self, radians: f64) -> () {
Node2D_set_global_rotation(self.this, radians)
}
#[inline]
pub unsafe fn get_global_rotation(&self) -> f64 {
Node2D_get_global_rotation(self.this)
}
#[inline]
pub unsafe fn set_global_rotation_degrees(&mut self, degrees: f64) -> () {
Node2D_set_global_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn get_global_rotation_degrees(&self) -> f64 {
Node2D_get_global_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn set_global_scale(&mut self, scale: Vector2) -> () {
Node2D_set_global_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_global_scale(&self) -> Vector2 {
Node2D_get_global_scale(self.this)
}
#[inline]
pub unsafe fn set_transform(&mut self, xform: Transform2D) -> () {
Node2D_set_transform(self.this, xform)
}
#[inline]
pub unsafe fn set_global_transform(&mut self, xform: Transform2D) -> () {
Node2D_set_global_transform(self.this, xform)
}
#[inline]
pub unsafe fn look_at(&mut self, point: Vector2) -> () {
Node2D_look_at(self.this, point)
}
#[inline]
pub unsafe fn get_angle_to(&self, point: Vector2) -> f64 {
Node2D_get_angle_to(self.this, point)
}
#[inline]
pub unsafe fn to_local(&self, global_point: Vector2) -> Vector2 {
Node2D_to_local(self.this, global_point)
}
#[inline]
pub unsafe fn to_global(&self, local_point: Vector2) -> Vector2 {
Node2D_to_global(self.this, local_point)
}
#[inline]
pub unsafe fn set_z_index(&mut self, z_index: i64) -> () {
Node2D_set_z_index(self.this, z_index)
}
#[inline]
pub unsafe fn get_z_index(&self) -> i64 {
Node2D_get_z_index(self.this)
}
#[inline]
pub unsafe fn set_z_as_relative(&mut self, enable: bool) -> () {
Node2D_set_z_as_relative(self.this, enable)
}
#[inline]
pub unsafe fn is_z_relative(&self) -> bool {
Node2D_is_z_relative(self.this)
}
#[inline]
pub unsafe fn get_relative_transform_to_parent(&self, parent: Option<Object>) -> Transform2D {
Node2D_get_relative_transform_to_parent(self.this, parent)
}
#[inline]
pub unsafe fn _draw(&mut self) -> () {
CanvasItem__draw(self.this)
}
#[inline]
pub unsafe fn _toplevel_raise_self(&mut self) -> () {
CanvasItem__toplevel_raise_self(self.this)
}
#[inline]
pub unsafe fn _update_callback(&mut self) -> () {
CanvasItem__update_callback(self.this)
}
#[inline]
pub unsafe fn _edit_set_state(&mut self, state: Dictionary) -> () {
CanvasItem__edit_set_state(self.this, state)
}
#[inline]
pub unsafe fn _edit_get_state(&self) -> Dictionary {
CanvasItem__edit_get_state(self.this)
}
#[inline]
pub unsafe fn _edit_set_position(&mut self, position: Vector2) -> () {
CanvasItem__edit_set_position(self.this, position)
}
#[inline]
pub unsafe fn _edit_get_position(&self) -> Vector2 {
CanvasItem__edit_get_position(self.this)
}
#[inline]
pub unsafe fn _edit_set_scale(&mut self, scale: Vector2) -> () {
CanvasItem__edit_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn _edit_get_scale(&self) -> Vector2 {
CanvasItem__edit_get_scale(self.this)
}
#[inline]
pub unsafe fn _edit_set_rect(&mut self, rect: Rect2) -> () {
CanvasItem__edit_set_rect(self.this, rect)
}
#[inline]
pub unsafe fn _edit_get_rect(&self) -> Rect2 {
CanvasItem__edit_get_rect(self.this)
}
#[inline]
pub unsafe fn _edit_use_rect(&self) -> bool {
CanvasItem__edit_use_rect(self.this)
}
#[inline]
pub unsafe fn _edit_set_rotation(&mut self, degrees: f64) -> () {
CanvasItem__edit_set_rotation(self.this, degrees)
}
#[inline]
pub unsafe fn _edit_get_rotation(&self) -> f64 {
CanvasItem__edit_get_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_use_rotation(&self) -> bool {
CanvasItem__edit_use_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_set_pivot(&mut self, pivot: Vector2) -> () {
CanvasItem__edit_set_pivot(self.this, pivot)
}
#[inline]
pub unsafe fn _edit_get_pivot(&self) -> Vector2 {
CanvasItem__edit_get_pivot(self.this)
}
#[inline]
pub unsafe fn _edit_use_pivot(&self) -> bool {
CanvasItem__edit_use_pivot(self.this)
}
#[inline]
pub unsafe fn get_canvas_item(&self) -> Rid {
CanvasItem_get_canvas_item(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
CanvasItem_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
CanvasItem_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
CanvasItem_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
CanvasItem_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
CanvasItem_hide(self.this)
}
#[inline]
pub unsafe fn update(&mut self) -> () {
CanvasItem_update(self.this)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
CanvasItem_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
CanvasItem_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_light_mask(&mut self, light_mask: i64) -> () {
CanvasItem_set_light_mask(self.this, light_mask)
}
#[inline]
pub unsafe fn get_light_mask(&self) -> i64 {
CanvasItem_get_light_mask(self.this)
}
#[inline]
pub unsafe fn set_modulate(&mut self, modulate: Color) -> () {
CanvasItem_set_modulate(self.this, modulate)
}
#[inline]
pub unsafe fn get_modulate(&self) -> Color {
CanvasItem_get_modulate(self.this)
}
#[inline]
pub unsafe fn set_self_modulate(&mut self, self_modulate: Color) -> () {
CanvasItem_set_self_modulate(self.this, self_modulate)
}
#[inline]
pub unsafe fn get_self_modulate(&self) -> Color {
CanvasItem_get_self_modulate(self.this)
}
#[inline]
pub unsafe fn set_draw_behind_parent(&mut self, enable: bool) -> () {
CanvasItem_set_draw_behind_parent(self.this, enable)
}
#[inline]
pub unsafe fn is_draw_behind_parent_enabled(&self) -> bool {
CanvasItem_is_draw_behind_parent_enabled(self.this)
}
#[inline]
pub unsafe fn _set_on_top(&mut self, on_top: bool) -> () {
CanvasItem__set_on_top(self.this, on_top)
}
#[inline]
pub unsafe fn _is_on_top(&self) -> bool {
CanvasItem__is_on_top(self.this)
}
#[inline]
pub unsafe fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_line(self.this, from, to, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_rect(&mut self, rect: Rect2, color: Color, filled: bool) -> () {
CanvasItem_draw_rect(self.this, rect, color, filled)
}
#[inline]
pub unsafe fn draw_circle(&mut self, position: Vector2, radius: f64, color: Color) -> () {
CanvasItem_draw_circle(self.this, position, radius, color)
}
#[inline]
pub unsafe fn draw_texture(&mut self, texture: Option<Texture>, position: Vector2, modulate: Color, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture(self.this, texture, position, modulate, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect(&mut self, texture: Option<Texture>, rect: Rect2, tile: bool, modulate: Color, transpose: bool, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture_rect(self.this, texture, rect, tile, modulate, transpose, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect_region(&mut self, texture: Option<Texture>, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, normal_map: Option<Texture>, clip_uv: bool) -> () {
CanvasItem_draw_texture_rect_region(self.this, texture, rect, src_rect, modulate, transpose, normal_map, clip_uv)
}
#[inline]
pub unsafe fn draw_style_box(&mut self, style_box: Option<StyleBox>, rect: Rect2) -> () {
CanvasItem_draw_style_box(self.this, style_box, rect)
}
#[inline]
pub unsafe fn draw_primitive(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, width: f64, normal_map: Option<Texture>) -> () {
CanvasItem_draw_primitive(self.this, points, colors, uvs, texture, width, normal_map)
}
#[inline]
pub unsafe fn draw_polygon(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_polygon(self.this, points, colors, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_colored_polygon(&mut self, points: Vector2Array, color: Color, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_colored_polygon(self.this, points, color, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_string(&mut self, font: Option<Font>, position: Vector2, text: GodotString, modulate: Color, clip_w: i64) -> () {
CanvasItem_draw_string(self.this, font, position, text, modulate, clip_w)
}
#[inline]
pub unsafe fn draw_char(&mut self, font: Option<Font>, position: Vector2, char: GodotString, next: GodotString, modulate: Color) -> f64 {
CanvasItem_draw_char(self.this, font, position, char, next, modulate)
}
#[inline]
pub unsafe fn draw_mesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_mesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_multimesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_multimesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_set_transform(&mut self, position: Vector2, rotation: f64, scale: Vector2) -> () {
CanvasItem_draw_set_transform(self.this, position, rotation, scale)
}
#[inline]
pub unsafe fn draw_set_transform_matrix(&mut self, xform: Transform2D) -> () {
CanvasItem_draw_set_transform_matrix(self.this, xform)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform2D {
CanvasItem_get_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform2D {
CanvasItem_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform_with_canvas(&self) -> Transform2D {
CanvasItem_get_global_transform_with_canvas(self.this)
}
#[inline]
pub unsafe fn get_viewport_transform(&self) -> Transform2D {
CanvasItem_get_viewport_transform(self.this)
}
#[inline]
pub unsafe fn get_viewport_rect(&self) -> Rect2 {
CanvasItem_get_viewport_rect(self.this)
}
#[inline]
pub unsafe fn get_canvas_transform(&self) -> Transform2D {
CanvasItem_get_canvas_transform(self.this)
}
#[inline]
pub unsafe fn get_local_mouse_position(&self) -> Vector2 {
CanvasItem_get_local_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_global_mouse_position(&self) -> Vector2 {
CanvasItem_get_global_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_canvas(&self) -> Rid {
CanvasItem_get_canvas(self.this)
}
#[inline]
pub unsafe fn get_world_2d(&self) -> Option<World2D> {
CanvasItem_get_world_2d(self.this)
}
#[inline]
pub unsafe fn set_material(&mut self, material: Option<Material>) -> () {
CanvasItem_set_material(self.this, material)
}
#[inline]
pub unsafe fn get_material(&self) -> Option<Material> {
CanvasItem_get_material(self.this)
}
#[inline]
pub unsafe fn set_use_parent_material(&mut self, enable: bool) -> () {
CanvasItem_set_use_parent_material(self.this, enable)
}
#[inline]
pub unsafe fn get_use_parent_material(&self) -> bool {
CanvasItem_get_use_parent_material(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
CanvasItem_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
CanvasItem_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2 {
CanvasItem_make_canvas_position_local(self.this, screen_point)
}
#[inline]
pub unsafe fn make_input_local(&self, event: Option<InputEvent>) -> Option<InputEvent> {
CanvasItem_make_input_local(self.this, event)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node_2d(&self) -> Node2D {
Node2D { this: self.this }
}
#[inline]
pub unsafe fn to_canvas_item(&self) -> CanvasItem {
CanvasItem { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationTree {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationTreeAnimationProcessMode {
Physics = 0,
Idle = 1,
}
unsafe impl GodotObject for AnimationTree {
fn class_name() -> &'static str {
"AnimationTree"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationTree {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for AnimationTree {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for AnimationTree {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl AnimationTree {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationTreeMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
AnimationTree {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn set_active(&mut self, active: bool) -> () {
AnimationTree_set_active(self.this, active)
}
#[inline]
pub unsafe fn is_active(&self) -> bool {
AnimationTree_is_active(self.this)
}
#[inline]
pub unsafe fn set_tree_root(&mut self, root: Option<AnimationNode>) -> () {
AnimationTree_set_tree_root(self.this, root)
}
#[inline]
pub unsafe fn get_tree_root(&self) -> Option<AnimationNode> {
AnimationTree_get_tree_root(self.this)
}
#[inline]
pub unsafe fn set_process_mode(&mut self, mode: i64) -> () {
AnimationTree_set_process_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_process_mode(&self) -> AnimationTreeAnimationProcessMode {
AnimationTree_get_process_mode(self.this)
}
#[inline]
pub unsafe fn set_animation_player(&mut self, root: NodePath) -> () {
AnimationTree_set_animation_player(self.this, root)
}
#[inline]
pub unsafe fn get_animation_player(&self) -> NodePath {
AnimationTree_get_animation_player(self.this)
}
#[inline]
pub unsafe fn set_root_motion_track(&mut self, path: NodePath) -> () {
AnimationTree_set_root_motion_track(self.this, path)
}
#[inline]
pub unsafe fn get_root_motion_track(&self) -> NodePath {
AnimationTree_get_root_motion_track(self.this)
}
#[inline]
pub unsafe fn get_root_motion_transform(&self) -> Transform {
AnimationTree_get_root_motion_transform(self.this)
}
#[inline]
pub unsafe fn _node_removed(&mut self, arg0: Option<Object>) -> () {
AnimationTree__node_removed(self.this, arg0)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeBlendTree {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeBlendTree {
fn class_name() -> &'static str {
"AnimationNodeBlendTree"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeBlendTree {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeBlendTree {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeBlendTreeMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeBlendTree {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn add_node(&mut self, name: GodotString, node: Option<AnimationNode>) -> () {
unsafe { AnimationNodeBlendTree_add_node(self.this, name, node) }
}
#[inline]
pub fn get_node(&self, name: GodotString) -> Option<AnimationNode> {
unsafe { AnimationNodeBlendTree_get_node(self.this, name) }
}
#[inline]
pub fn remove_node(&mut self, name: GodotString) -> () {
unsafe { AnimationNodeBlendTree_remove_node(self.this, name) }
}
#[inline]
pub fn rename_node(&mut self, name: GodotString, new_name: GodotString) -> () {
unsafe { AnimationNodeBlendTree_rename_node(self.this, name, new_name) }
}
#[inline]
pub fn has_node(&self, name: GodotString) -> bool {
unsafe { AnimationNodeBlendTree_has_node(self.this, name) }
}
#[inline]
pub fn connect_node(&mut self, input_node: GodotString, input_index: i64, output_node: GodotString) -> () {
unsafe { AnimationNodeBlendTree_connect_node(self.this, input_node, input_index, output_node) }
}
#[inline]
pub fn disconnect_node(&mut self, input_node: GodotString, input_index: i64) -> () {
unsafe { AnimationNodeBlendTree_disconnect_node(self.this, input_node, input_index) }
}
#[inline]
pub fn set_graph_offset(&mut self, offset: Vector2) -> () {
unsafe { AnimationNodeBlendTree_set_graph_offset(self.this, offset) }
}
#[inline]
pub fn get_graph_offset(&self) -> Vector2 {
unsafe { AnimationNodeBlendTree_get_graph_offset(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_root_node(&self) -> AnimationRootNode {
unsafe {{ object::add_ref(self.this); }}
AnimationRootNode { this: self.this }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeBlendTree {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationRootNode {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationRootNode {
fn class_name() -> &'static str {
"AnimationRootNode"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationRootNode {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationRootNode {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationRootNodeMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationRootNode {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationRootNode {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNode {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationNodeFilterAction {
FilterIgnore = 0,
FilterPass = 1,
FilterStop = 2,
FilterBlend = 3,
}
unsafe impl GodotObject for AnimationNode {
fn class_name() -> &'static str {
"AnimationNode"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNode {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNode {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNode {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNode {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeBlendSpace1D {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeBlendSpace1D {
fn class_name() -> &'static str {
"AnimationNodeBlendSpace1D"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeBlendSpace1D {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeBlendSpace1D {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeBlendSpace1DMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeBlendSpace1D {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn add_blend_point(&mut self, node: Option<AnimationRootNode>, pos: f64, at_index: i64) -> () {
unsafe { AnimationNodeBlendSpace1D_add_blend_point(self.this, node, pos, at_index) }
}
#[inline]
pub fn set_blend_point_position(&mut self, point: i64, pos: f64) -> () {
unsafe { AnimationNodeBlendSpace1D_set_blend_point_position(self.this, point, pos) }
}
#[inline]
pub fn get_blend_point_position(&self, point: i64) -> f64 {
unsafe { AnimationNodeBlendSpace1D_get_blend_point_position(self.this, point) }
}
#[inline]
pub fn set_blend_point_node(&mut self, point: i64, node: Option<AnimationRootNode>) -> () {
unsafe { AnimationNodeBlendSpace1D_set_blend_point_node(self.this, point, node) }
}
#[inline]
pub fn get_blend_point_node(&self, point: i64) -> Option<AnimationRootNode> {
unsafe { AnimationNodeBlendSpace1D_get_blend_point_node(self.this, point) }
}
#[inline]
pub fn remove_blend_point(&mut self, point: i64) -> () {
unsafe { AnimationNodeBlendSpace1D_remove_blend_point(self.this, point) }
}
#[inline]
pub fn get_blend_point_count(&self) -> i64 {
unsafe { AnimationNodeBlendSpace1D_get_blend_point_count(self.this) }
}
#[inline]
pub fn set_min_space(&mut self, min_space: f64) -> () {
unsafe { AnimationNodeBlendSpace1D_set_min_space(self.this, min_space) }
}
#[inline]
pub fn get_min_space(&self) -> f64 {
unsafe { AnimationNodeBlendSpace1D_get_min_space(self.this) }
}
#[inline]
pub fn set_max_space(&mut self, max_space: f64) -> () {
unsafe { AnimationNodeBlendSpace1D_set_max_space(self.this, max_space) }
}
#[inline]
pub fn get_max_space(&self) -> f64 {
unsafe { AnimationNodeBlendSpace1D_get_max_space(self.this) }
}
#[inline]
pub fn set_snap(&mut self, snap: f64) -> () {
unsafe { AnimationNodeBlendSpace1D_set_snap(self.this, snap) }
}
#[inline]
pub fn get_snap(&self) -> f64 {
unsafe { AnimationNodeBlendSpace1D_get_snap(self.this) }
}
#[inline]
pub fn set_blend_pos(&mut self, pos: f64) -> () {
unsafe { AnimationNodeBlendSpace1D_set_blend_pos(self.this, pos) }
}
#[inline]
pub fn get_blend_pos(&self) -> f64 {
unsafe { AnimationNodeBlendSpace1D_get_blend_pos(self.this) }
}
#[inline]
pub fn set_value_label(&mut self, text: GodotString) -> () {
unsafe { AnimationNodeBlendSpace1D_set_value_label(self.this, text) }
}
#[inline]
pub fn get_value_label(&self) -> GodotString {
unsafe { AnimationNodeBlendSpace1D_get_value_label(self.this) }
}
#[inline]
pub fn _add_blend_point(&mut self, index: i64, node: Option<AnimationRootNode>) -> () {
unsafe { AnimationNodeBlendSpace1D__add_blend_point(self.this, index, node) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_root_node(&self) -> AnimationRootNode {
unsafe {{ object::add_ref(self.this); }}
AnimationRootNode { this: self.this }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeBlendSpace1D {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeBlendSpace2D {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeBlendSpace2D {
fn class_name() -> &'static str {
"AnimationNodeBlendSpace2D"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeBlendSpace2D {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeBlendSpace2D {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeBlendSpace2DMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeBlendSpace2D {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn add_blend_point(&mut self, node: Option<AnimationRootNode>, pos: Vector2, at_index: i64) -> () {
unsafe { AnimationNodeBlendSpace2D_add_blend_point(self.this, node, pos, at_index) }
}
#[inline]
pub fn set_blend_point_position(&mut self, point: i64, pos: Vector2) -> () {
unsafe { AnimationNodeBlendSpace2D_set_blend_point_position(self.this, point, pos) }
}
#[inline]
pub fn get_blend_point_position(&self, point: i64) -> Vector2 {
unsafe { AnimationNodeBlendSpace2D_get_blend_point_position(self.this, point) }
}
#[inline]
pub fn set_blend_point_node(&mut self, point: i64, node: Option<AnimationRootNode>) -> () {
unsafe { AnimationNodeBlendSpace2D_set_blend_point_node(self.this, point, node) }
}
#[inline]
pub fn get_blend_point_node(&self, point: i64) -> Option<AnimationRootNode> {
unsafe { AnimationNodeBlendSpace2D_get_blend_point_node(self.this, point) }
}
#[inline]
pub fn remove_blend_point(&mut self, point: i64) -> () {
unsafe { AnimationNodeBlendSpace2D_remove_blend_point(self.this, point) }
}
#[inline]
pub fn get_blend_point_count(&self) -> i64 {
unsafe { AnimationNodeBlendSpace2D_get_blend_point_count(self.this) }
}
#[inline]
pub fn add_triangle(&mut self, x: i64, y: i64, z: i64, at_index: i64) -> () {
unsafe { AnimationNodeBlendSpace2D_add_triangle(self.this, x, y, z, at_index) }
}
#[inline]
pub fn get_triangle_point(&mut self, triangle: i64, point: i64) -> i64 {
unsafe { AnimationNodeBlendSpace2D_get_triangle_point(self.this, triangle, point) }
}
#[inline]
pub fn remove_triangle(&mut self, triangle: i64) -> () {
unsafe { AnimationNodeBlendSpace2D_remove_triangle(self.this, triangle) }
}
#[inline]
pub fn get_triangle_count(&self) -> i64 {
unsafe { AnimationNodeBlendSpace2D_get_triangle_count(self.this) }
}
#[inline]
pub fn set_min_space(&mut self, min_space: Vector2) -> () {
unsafe { AnimationNodeBlendSpace2D_set_min_space(self.this, min_space) }
}
#[inline]
pub fn get_min_space(&self) -> Vector2 {
unsafe { AnimationNodeBlendSpace2D_get_min_space(self.this) }
}
#[inline]
pub fn set_max_space(&mut self, max_space: Vector2) -> () {
unsafe { AnimationNodeBlendSpace2D_set_max_space(self.this, max_space) }
}
#[inline]
pub fn get_max_space(&self) -> Vector2 {
unsafe { AnimationNodeBlendSpace2D_get_max_space(self.this) }
}
#[inline]
pub fn set_snap(&mut self, snap: Vector2) -> () {
unsafe { AnimationNodeBlendSpace2D_set_snap(self.this, snap) }
}
#[inline]
pub fn get_snap(&self) -> Vector2 {
unsafe { AnimationNodeBlendSpace2D_get_snap(self.this) }
}
#[inline]
pub fn set_blend_position(&mut self, pos: Vector2) -> () {
unsafe { AnimationNodeBlendSpace2D_set_blend_position(self.this, pos) }
}
#[inline]
pub fn get_blend_position(&self) -> Vector2 {
unsafe { AnimationNodeBlendSpace2D_get_blend_position(self.this) }
}
#[inline]
pub fn set_x_label(&mut self, text: GodotString) -> () {
unsafe { AnimationNodeBlendSpace2D_set_x_label(self.this, text) }
}
#[inline]
pub fn get_x_label(&self) -> GodotString {
unsafe { AnimationNodeBlendSpace2D_get_x_label(self.this) }
}
#[inline]
pub fn set_y_label(&mut self, text: GodotString) -> () {
unsafe { AnimationNodeBlendSpace2D_set_y_label(self.this, text) }
}
#[inline]
pub fn get_y_label(&self) -> GodotString {
unsafe { AnimationNodeBlendSpace2D_get_y_label(self.this) }
}
#[inline]
pub fn _add_blend_point(&mut self, index: i64, node: Option<AnimationRootNode>) -> () {
unsafe { AnimationNodeBlendSpace2D__add_blend_point(self.this, index, node) }
}
#[inline]
pub fn _set_triangles(&mut self, triangles: Int32Array) -> () {
unsafe { AnimationNodeBlendSpace2D__set_triangles(self.this, triangles) }
}
#[inline]
pub fn _get_triangles(&self) -> Int32Array {
unsafe { AnimationNodeBlendSpace2D__get_triangles(self.this) }
}
#[inline]
pub fn set_auto_triangles(&mut self, enable: bool) -> () {
unsafe { AnimationNodeBlendSpace2D_set_auto_triangles(self.this, enable) }
}
#[inline]
pub fn get_auto_triangles(&self) -> bool {
unsafe { AnimationNodeBlendSpace2D_get_auto_triangles(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_root_node(&self) -> AnimationRootNode {
unsafe {{ object::add_ref(self.this); }}
AnimationRootNode { this: self.this }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeBlendSpace2D {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeStateMachine {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeStateMachine {
fn class_name() -> &'static str {
"AnimationNodeStateMachine"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeStateMachine {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeStateMachine {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeStateMachineMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeStateMachine {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn add_node(&mut self, name: GodotString, node: Option<AnimationNode>) -> () {
unsafe { AnimationNodeStateMachine_add_node(self.this, name, node) }
}
#[inline]
pub fn get_node(&self, name: GodotString) -> Option<AnimationNode> {
unsafe { AnimationNodeStateMachine_get_node(self.this, name) }
}
#[inline]
pub fn remove_node(&mut self, name: GodotString) -> () {
unsafe { AnimationNodeStateMachine_remove_node(self.this, name) }
}
#[inline]
pub fn rename_node(&mut self, name: GodotString, new_name: GodotString) -> () {
unsafe { AnimationNodeStateMachine_rename_node(self.this, name, new_name) }
}
#[inline]
pub fn has_node(&self, name: GodotString) -> bool {
unsafe { AnimationNodeStateMachine_has_node(self.this, name) }
}
#[inline]
pub fn get_node_name(&self, node: Option<AnimationNode>) -> GodotString {
unsafe { AnimationNodeStateMachine_get_node_name(self.this, node) }
}
#[inline]
pub fn has_transition(&mut self, from: GodotString, to: GodotString, arg2: Option<AnimationNodeStateMachineTransition>) -> () {
unsafe { AnimationNodeStateMachine_has_transition(self.this, from, to, arg2) }
}
#[inline]
pub fn add_transition(&mut self, from: GodotString, to: GodotString, transition: Option<AnimationNodeStateMachineTransition>) -> () {
unsafe { AnimationNodeStateMachine_add_transition(self.this, from, to, transition) }
}
#[inline]
pub fn get_transition(&self, idx: i64) -> Option<AnimationNodeStateMachineTransition> {
unsafe { AnimationNodeStateMachine_get_transition(self.this, idx) }
}
#[inline]
pub fn get_transition_from(&self, idx: i64) -> GodotString {
unsafe { AnimationNodeStateMachine_get_transition_from(self.this, idx) }
}
#[inline]
pub fn get_transition_to(&self, idx: i64) -> GodotString {
unsafe { AnimationNodeStateMachine_get_transition_to(self.this, idx) }
}
#[inline]
pub fn get_transition_count(&self) -> i64 {
unsafe { AnimationNodeStateMachine_get_transition_count(self.this) }
}
#[inline]
pub fn remove_transition_by_index(&mut self, idx: i64) -> () {
unsafe { AnimationNodeStateMachine_remove_transition_by_index(self.this, idx) }
}
#[inline]
pub fn remove_transition(&mut self, from: GodotString, to: GodotString) -> () {
unsafe { AnimationNodeStateMachine_remove_transition(self.this, from, to) }
}
#[inline]
pub fn set_start_node(&mut self, name: GodotString) -> () {
unsafe { AnimationNodeStateMachine_set_start_node(self.this, name) }
}
#[inline]
pub fn get_start_node(&self) -> GodotString {
unsafe { AnimationNodeStateMachine_get_start_node(self.this) }
}
#[inline]
pub fn set_end_node(&mut self, name: GodotString) -> () {
unsafe { AnimationNodeStateMachine_set_end_node(self.this, name) }
}
#[inline]
pub fn get_end_node(&self) -> GodotString {
unsafe { AnimationNodeStateMachine_get_end_node(self.this) }
}
#[inline]
pub fn set_graph_offset(&mut self, name: Vector2) -> () {
unsafe { AnimationNodeStateMachine_set_graph_offset(self.this, name) }
}
#[inline]
pub fn get_graph_offset(&self) -> Vector2 {
unsafe { AnimationNodeStateMachine_get_graph_offset(self.this) }
}
#[inline]
pub fn travel(&mut self, to_node: GodotString) -> bool {
unsafe { AnimationNodeStateMachine_travel(self.this, to_node) }
}
#[inline]
pub fn start(&mut self, node: GodotString) -> () {
unsafe { AnimationNodeStateMachine_start(self.this, node) }
}
#[inline]
pub fn stop(&mut self) -> () {
unsafe { AnimationNodeStateMachine_stop(self.this) }
}
#[inline]
pub fn is_playing(&self) -> bool {
unsafe { AnimationNodeStateMachine_is_playing(self.this) }
}
#[inline]
pub fn get_current_node(&self) -> GodotString {
unsafe { AnimationNodeStateMachine_get_current_node(self.this) }
}
#[inline]
pub fn get_travel_path(&self) -> StringArray {
unsafe { AnimationNodeStateMachine_get_travel_path(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_root_node(&self) -> AnimationRootNode {
unsafe {{ object::add_ref(self.this); }}
AnimationRootNode { this: self.this }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeStateMachine {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeStateMachineTransition {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationNodeStateMachineTransitionSwitchMode {
ModeImmediate = 0,
ModeSync = 1,
ModeAtEnd = 2,
}
unsafe impl GodotObject for AnimationNodeStateMachineTransition {
fn class_name() -> &'static str {
"AnimationNodeStateMachineTransition"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeStateMachineTransition {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeStateMachineTransition {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeStateMachineTransition {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_switch_mode(&mut self, mode: i64) -> () {
unsafe { AnimationNodeStateMachineTransition_set_switch_mode(self.this, mode) }
}
#[inline]
pub fn get_switch_mode(&self) -> AnimationNodeStateMachineTransitionSwitchMode {
unsafe { AnimationNodeStateMachineTransition_get_switch_mode(self.this) }
}
#[inline]
pub fn set_auto_advance(&mut self, auto_advance: bool) -> () {
unsafe { AnimationNodeStateMachineTransition_set_auto_advance(self.this, auto_advance) }
}
#[inline]
pub fn has_auto_advance(&self) -> bool {
unsafe { AnimationNodeStateMachineTransition_has_auto_advance(self.this) }
}
#[inline]
pub fn set_xfade_time(&mut self, secs: f64) -> () {
unsafe { AnimationNodeStateMachineTransition_set_xfade_time(self.this, secs) }
}
#[inline]
pub fn get_xfade_time(&self) -> f64 {
unsafe { AnimationNodeStateMachineTransition_get_xfade_time(self.this) }
}
#[inline]
pub fn set_disabled(&mut self, disabled: bool) -> () {
unsafe { AnimationNodeStateMachineTransition_set_disabled(self.this, disabled) }
}
#[inline]
pub fn is_disabled(&self) -> bool {
unsafe { AnimationNodeStateMachineTransition_is_disabled(self.this) }
}
#[inline]
pub fn set_priority(&mut self, priority: i64) -> () {
unsafe { AnimationNodeStateMachineTransition_set_priority(self.this, priority) }
}
#[inline]
pub fn get_priority(&self) -> i64 {
unsafe { AnimationNodeStateMachineTransition_get_priority(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeStateMachineTransition {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeOneShot {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationNodeOneShotMixMode {
ModeBlend = 0,
ModeAdd = 1,
}
unsafe impl GodotObject for AnimationNodeOneShot {
fn class_name() -> &'static str {
"AnimationNodeOneShot"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeOneShot {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeOneShot {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeOneShotMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeOneShot {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_fadein_time(&mut self, time: f64) -> () {
unsafe { AnimationNodeOneShot_set_fadein_time(self.this, time) }
}
#[inline]
pub fn get_fadein_time(&self) -> f64 {
unsafe { AnimationNodeOneShot_get_fadein_time(self.this) }
}
#[inline]
pub fn set_fadeout_time(&mut self, time: f64) -> () {
unsafe { AnimationNodeOneShot_set_fadeout_time(self.this, time) }
}
#[inline]
pub fn get_fadeout_time(&self) -> f64 {
unsafe { AnimationNodeOneShot_get_fadeout_time(self.this) }
}
#[inline]
pub fn set_autorestart(&mut self, enable: bool) -> () {
unsafe { AnimationNodeOneShot_set_autorestart(self.this, enable) }
}
#[inline]
pub fn has_autorestart(&self) -> bool {
unsafe { AnimationNodeOneShot_has_autorestart(self.this) }
}
#[inline]
pub fn set_autorestart_delay(&mut self, enable: f64) -> () {
unsafe { AnimationNodeOneShot_set_autorestart_delay(self.this, enable) }
}
#[inline]
pub fn get_autorestart_delay(&self) -> f64 {
unsafe { AnimationNodeOneShot_get_autorestart_delay(self.this) }
}
#[inline]
pub fn set_autorestart_random_delay(&mut self, enable: f64) -> () {
unsafe { AnimationNodeOneShot_set_autorestart_random_delay(self.this, enable) }
}
#[inline]
pub fn get_autorestart_random_delay(&self) -> f64 {
unsafe { AnimationNodeOneShot_get_autorestart_random_delay(self.this) }
}
#[inline]
pub fn set_mix_mode(&mut self, mode: i64) -> () {
unsafe { AnimationNodeOneShot_set_mix_mode(self.this, mode) }
}
#[inline]
pub fn get_mix_mode(&self) -> AnimationNodeOneShotMixMode {
unsafe { AnimationNodeOneShot_get_mix_mode(self.this) }
}
#[inline]
pub fn start(&mut self) -> () {
unsafe { AnimationNodeOneShot_start(self.this) }
}
#[inline]
pub fn stop(&mut self) -> () {
unsafe { AnimationNodeOneShot_stop(self.this) }
}
#[inline]
pub fn is_active(&self) -> bool {
unsafe { AnimationNodeOneShot_is_active(self.this) }
}
#[inline]
pub fn set_use_sync(&mut self, enable: bool) -> () {
unsafe { AnimationNodeOneShot_set_use_sync(self.this, enable) }
}
#[inline]
pub fn is_using_sync(&self) -> bool {
unsafe { AnimationNodeOneShot_is_using_sync(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeOneShot {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeOutput {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeOutput {
fn class_name() -> &'static str {
"AnimationNodeOutput"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeOutput {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeOutput {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeOutputMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeOutput {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeOutput {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeAdd2 {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeAdd2 {
fn class_name() -> &'static str {
"AnimationNodeAdd2"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeAdd2 {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeAdd2 {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeAdd2MethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeAdd2 {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_amount(&mut self, amount: f64) -> () {
unsafe { AnimationNodeAdd2_set_amount(self.this, amount) }
}
#[inline]
pub fn get_amount(&self) -> f64 {
unsafe { AnimationNodeAdd2_get_amount(self.this) }
}
#[inline]
pub fn set_use_sync(&mut self, enable: bool) -> () {
unsafe { AnimationNodeAdd2_set_use_sync(self.this, enable) }
}
#[inline]
pub fn is_using_sync(&self) -> bool {
unsafe { AnimationNodeAdd2_is_using_sync(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeAdd2 {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeAdd3 {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeAdd3 {
fn class_name() -> &'static str {
"AnimationNodeAdd3"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeAdd3 {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeAdd3 {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeAdd3MethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeAdd3 {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_amount(&mut self, amount: f64) -> () {
unsafe { AnimationNodeAdd3_set_amount(self.this, amount) }
}
#[inline]
pub fn get_amount(&self) -> f64 {
unsafe { AnimationNodeAdd3_get_amount(self.this) }
}
#[inline]
pub fn set_use_sync(&mut self, enable: bool) -> () {
unsafe { AnimationNodeAdd3_set_use_sync(self.this, enable) }
}
#[inline]
pub fn is_using_sync(&self) -> bool {
unsafe { AnimationNodeAdd3_is_using_sync(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeAdd3 {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeAnimation {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeAnimation {
fn class_name() -> &'static str {
"AnimationNodeAnimation"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeAnimation {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeAnimation {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeAnimationMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeAnimation {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_animation(&mut self, name: GodotString) -> () {
unsafe { AnimationNodeAnimation_set_animation(self.this, name) }
}
#[inline]
pub fn get_animation(&self) -> GodotString {
unsafe { AnimationNodeAnimation_get_animation(self.this) }
}
#[inline]
pub fn get_playback_time(&self) -> f64 {
unsafe { AnimationNodeAnimation_get_playback_time(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_root_node(&self) -> AnimationRootNode {
unsafe {{ object::add_ref(self.this); }}
AnimationRootNode { this: self.this }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeAnimation {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeTimeSeek {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeTimeSeek {
fn class_name() -> &'static str {
"AnimationNodeTimeSeek"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeTimeSeek {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeTimeSeek {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeTimeSeekMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeTimeSeek {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_seek_pos(&mut self, seek_pos: f64) -> () {
unsafe { AnimationNodeTimeSeek_set_seek_pos(self.this, seek_pos) }
}
#[inline]
pub fn get_seek_pos(&self) -> f64 {
unsafe { AnimationNodeTimeSeek_get_seek_pos(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeTimeSeek {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeBlend3 {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeBlend3 {
fn class_name() -> &'static str {
"AnimationNodeBlend3"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeBlend3 {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeBlend3 {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeBlend3MethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeBlend3 {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_amount(&mut self, amount: f64) -> () {
unsafe { AnimationNodeBlend3_set_amount(self.this, amount) }
}
#[inline]
pub fn get_amount(&self) -> f64 {
unsafe { AnimationNodeBlend3_get_amount(self.this) }
}
#[inline]
pub fn set_use_sync(&mut self, enable: bool) -> () {
unsafe { AnimationNodeBlend3_set_use_sync(self.this, enable) }
}
#[inline]
pub fn is_using_sync(&self) -> bool {
unsafe { AnimationNodeBlend3_is_using_sync(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeBlend3 {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeBlend2 {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeBlend2 {
fn class_name() -> &'static str {
"AnimationNodeBlend2"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeBlend2 {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeBlend2 {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeBlend2MethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeBlend2 {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_amount(&mut self, amount: f64) -> () {
unsafe { AnimationNodeBlend2_set_amount(self.this, amount) }
}
#[inline]
pub fn get_amount(&self) -> f64 {
unsafe { AnimationNodeBlend2_get_amount(self.this) }
}
#[inline]
pub fn set_use_sync(&mut self, enable: bool) -> () {
unsafe { AnimationNodeBlend2_set_use_sync(self.this, enable) }
}
#[inline]
pub fn is_using_sync(&self) -> bool {
unsafe { AnimationNodeBlend2_is_using_sync(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeBlend2 {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeTimeScale {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeTimeScale {
fn class_name() -> &'static str {
"AnimationNodeTimeScale"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeTimeScale {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeTimeScale {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeTimeScaleMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeTimeScale {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_scale(&mut self, scale: f64) -> () {
unsafe { AnimationNodeTimeScale_set_scale(self.this, scale) }
}
#[inline]
pub fn get_scale(&self) -> f64 {
unsafe { AnimationNodeTimeScale_get_scale(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeTimeScale {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationNodeTransition {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationNodeTransition {
fn class_name() -> &'static str {
"AnimationNodeTransition"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationNodeTransition {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationNodeTransition {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationNodeTransitionMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationNodeTransition {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_enabled_inputs(&mut self, amount: i64) -> () {
unsafe { AnimationNodeTransition_set_enabled_inputs(self.this, amount) }
}
#[inline]
pub fn get_enabled_inputs(&mut self) -> i64 {
unsafe { AnimationNodeTransition_get_enabled_inputs(self.this) }
}
#[inline]
pub fn set_input_as_auto_advance(&mut self, input: i64, enable: bool) -> () {
unsafe { AnimationNodeTransition_set_input_as_auto_advance(self.this, input, enable) }
}
#[inline]
pub fn is_input_set_as_auto_advance(&self, input: i64) -> bool {
unsafe { AnimationNodeTransition_is_input_set_as_auto_advance(self.this, input) }
}
#[inline]
pub fn set_input_caption(&mut self, input: i64, caption: GodotString) -> () {
unsafe { AnimationNodeTransition_set_input_caption(self.this, input, caption) }
}
#[inline]
pub fn get_input_caption(&self, input: i64) -> GodotString {
unsafe { AnimationNodeTransition_get_input_caption(self.this, input) }
}
#[inline]
pub fn set_current(&mut self, index: i64) -> () {
unsafe { AnimationNodeTransition_set_current(self.this, index) }
}
#[inline]
pub fn get_current(&self) -> i64 {
unsafe { AnimationNodeTransition_get_current(self.this) }
}
#[inline]
pub fn set_cross_fade_time(&mut self, time: f64) -> () {
unsafe { AnimationNodeTransition_set_cross_fade_time(self.this, time) }
}
#[inline]
pub fn get_cross_fade_time(&self) -> f64 {
unsafe { AnimationNodeTransition_get_cross_fade_time(self.this) }
}
#[inline]
pub fn process(&mut self, time: f64, seek: bool) -> () {
unsafe { AnimationNode_process(self.this, time, seek) }
}
#[inline]
pub fn get_caption(&mut self) -> GodotString {
unsafe { AnimationNode_get_caption(self.this) }
}
#[inline]
pub fn has_filter(&mut self) -> GodotString {
unsafe { AnimationNode_has_filter(self.this) }
}
#[inline]
pub fn _parent_set(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode__parent_set(self.this, parent) }
}
#[inline]
pub fn get_input_count(&self) -> i64 {
unsafe { AnimationNode_get_input_count(self.this) }
}
#[inline]
pub fn get_input_name(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_name(self.this, input) }
}
#[inline]
pub fn get_input_connection(&mut self, input: i64) -> GodotString {
unsafe { AnimationNode_get_input_connection(self.this, input) }
}
#[inline]
pub fn get_input_activity(&self, input: i64) -> f64 {
unsafe { AnimationNode_get_input_activity(self.this, input) }
}
#[inline]
pub fn add_input(&mut self, name: GodotString) -> () {
unsafe { AnimationNode_add_input(self.this, name) }
}
#[inline]
pub fn remove_input(&mut self, index: i64) -> () {
unsafe { AnimationNode_remove_input(self.this, index) }
}
#[inline]
pub fn set_filter_path(&mut self, path: NodePath, enable: bool) -> () {
unsafe { AnimationNode_set_filter_path(self.this, path, enable) }
}
#[inline]
pub fn is_path_filtered(&self, path: NodePath) -> bool {
unsafe { AnimationNode_is_path_filtered(self.this, path) }
}
#[inline]
pub fn set_filter_enabled(&mut self, enable: bool) -> () {
unsafe { AnimationNode_set_filter_enabled(self.this, enable) }
}
#[inline]
pub fn is_filter_enabled(&self) -> bool {
unsafe { AnimationNode_is_filter_enabled(self.this) }
}
#[inline]
pub fn set_position(&mut self, position: Vector2) -> () {
unsafe { AnimationNode_set_position(self.this, position) }
}
#[inline]
pub fn get_position(&self) -> Vector2 {
unsafe { AnimationNode_get_position(self.this) }
}
#[inline]
pub fn _set_filters(&mut self, filters: VariantArray) -> () {
unsafe { AnimationNode__set_filters(self.this, filters) }
}
#[inline]
pub fn _get_filters(&self) -> VariantArray {
unsafe { AnimationNode__get_filters(self.this) }
}
#[inline]
pub fn blend_animation(&mut self, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
unsafe { AnimationNode_blend_animation(self.this, animation, time, delta, seeked, blend) }
}
#[inline]
pub fn blend_node(&mut self, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_node(self.this, node, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn blend_input(&mut self, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
unsafe { AnimationNode_blend_input(self.this, input_index, time, seek, blend, filter, optimize) }
}
#[inline]
pub fn set_parent(&mut self, parent: Option<Object>) -> () {
unsafe { AnimationNode_set_parent(self.this, parent) }
}
#[inline]
pub fn get_parent(&self) -> Option<AnimationNode> {
unsafe { AnimationNode_get_parent(self.this) }
}
#[inline]
pub fn get_tree(&self) -> Option<AnimationTree> {
unsafe { AnimationNode_get_tree(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_animation_node(&self) -> AnimationNode {
unsafe {{ object::add_ref(self.this); }}
AnimationNode { this: self.this }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationNodeTransition {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct Animation {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationTrackType {
TypeValue = 0,
TypeTransform = 1,
TypeMethod = 2,
TypeBezier = 3,
TypeAudio = 4,
TypeAnimation = 5,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationUpdateMode {
Continuous = 0,
Discrete = 1,
Trigger = 2,
Capture = 3,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AnimationInterpolationType {
InterpolationNearest = 0,
InterpolationLinear = 1,
InterpolationCubic = 2,
}
unsafe impl GodotObject for Animation {
fn class_name() -> &'static str {
"Animation"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for Animation {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Animation {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
Animation {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn add_track(&mut self, _type: i64, at_position: i64) -> i64 {
unsafe { Animation_add_track(self.this, _type, at_position) }
}
#[inline]
pub fn remove_track(&mut self, idx: i64) -> () {
unsafe { Animation_remove_track(self.this, idx) }
}
#[inline]
pub fn get_track_count(&self) -> i64 {
unsafe { Animation_get_track_count(self.this) }
}
#[inline]
pub fn track_get_type(&self, idx: i64) -> AnimationTrackType {
unsafe { Animation_track_get_type(self.this, idx) }
}
#[inline]
pub fn track_get_path(&self, idx: i64) -> NodePath {
unsafe { Animation_track_get_path(self.this, idx) }
}
#[inline]
pub fn track_set_path(&mut self, idx: i64, path: NodePath) -> () {
unsafe { Animation_track_set_path(self.this, idx, path) }
}
#[inline]
pub fn find_track(&self, path: NodePath) -> i64 {
unsafe { Animation_find_track(self.this, path) }
}
#[inline]
pub fn track_move_up(&mut self, idx: i64) -> () {
unsafe { Animation_track_move_up(self.this, idx) }
}
#[inline]
pub fn track_move_down(&mut self, idx: i64) -> () {
unsafe { Animation_track_move_down(self.this, idx) }
}
#[inline]
pub fn track_swap(&mut self, idx: i64, with_idx: i64) -> () {
unsafe { Animation_track_swap(self.this, idx, with_idx) }
}
#[inline]
pub fn track_set_imported(&mut self, idx: i64, imported: bool) -> () {
unsafe { Animation_track_set_imported(self.this, idx, imported) }
}
#[inline]
pub fn track_is_imported(&self, idx: i64) -> bool {
unsafe { Animation_track_is_imported(self.this, idx) }
}
#[inline]
pub fn track_set_enabled(&mut self, idx: i64, enabled: bool) -> () {
unsafe { Animation_track_set_enabled(self.this, idx, enabled) }
}
#[inline]
pub fn track_is_enabled(&self, idx: i64) -> bool {
unsafe { Animation_track_is_enabled(self.this, idx) }
}
#[inline]
pub fn transform_track_insert_key(&mut self, idx: i64, time: f64, location: Vector3, rotation: Quat, scale: Vector3) -> i64 {
unsafe { Animation_transform_track_insert_key(self.this, idx, time, location, rotation, scale) }
}
#[inline]
pub fn track_insert_key(&mut self, idx: i64, time: f64, key: Variant, transition: f64) -> () {
unsafe { Animation_track_insert_key(self.this, idx, time, key, transition) }
}
#[inline]
pub fn track_remove_key(&mut self, idx: i64, key_idx: i64) -> () {
unsafe { Animation_track_remove_key(self.this, idx, key_idx) }
}
#[inline]
pub fn track_remove_key_at_position(&mut self, idx: i64, position: f64) -> () {
unsafe { Animation_track_remove_key_at_position(self.this, idx, position) }
}
#[inline]
pub fn track_set_key_value(&mut self, idx: i64, key: i64, value: Variant) -> () {
unsafe { Animation_track_set_key_value(self.this, idx, key, value) }
}
#[inline]
pub fn track_set_key_transition(&mut self, idx: i64, key_idx: i64, transition: f64) -> () {
unsafe { Animation_track_set_key_transition(self.this, idx, key_idx, transition) }
}
#[inline]
pub fn track_get_key_transition(&self, idx: i64, key_idx: i64) -> f64 {
unsafe { Animation_track_get_key_transition(self.this, idx, key_idx) }
}
#[inline]
pub fn track_get_key_count(&self, idx: i64) -> i64 {
unsafe { Animation_track_get_key_count(self.this, idx) }
}
#[inline]
pub fn track_get_key_value(&self, idx: i64, key_idx: i64) -> Variant {
unsafe { Animation_track_get_key_value(self.this, idx, key_idx) }
}
#[inline]
pub fn track_get_key_time(&self, idx: i64, key_idx: i64) -> f64 {
unsafe { Animation_track_get_key_time(self.this, idx, key_idx) }
}
#[inline]
pub fn track_find_key(&self, idx: i64, time: f64, exact: bool) -> i64 {
unsafe { Animation_track_find_key(self.this, idx, time, exact) }
}
#[inline]
pub fn track_set_interpolation_type(&mut self, idx: i64, interpolation: i64) -> () {
unsafe { Animation_track_set_interpolation_type(self.this, idx, interpolation) }
}
#[inline]
pub fn track_get_interpolation_type(&self, idx: i64) -> AnimationInterpolationType {
unsafe { Animation_track_get_interpolation_type(self.this, idx) }
}
#[inline]
pub fn track_set_interpolation_loop_wrap(&mut self, idx: i64, interpolation: bool) -> () {
unsafe { Animation_track_set_interpolation_loop_wrap(self.this, idx, interpolation) }
}
#[inline]
pub fn track_get_interpolation_loop_wrap(&self, idx: i64) -> bool {
unsafe { Animation_track_get_interpolation_loop_wrap(self.this, idx) }
}
#[inline]
pub fn transform_track_interpolate(&self, idx: i64, time_sec: f64) -> VariantArray {
unsafe { Animation_transform_track_interpolate(self.this, idx, time_sec) }
}
#[inline]
pub fn value_track_set_update_mode(&mut self, idx: i64, mode: i64) -> () {
unsafe { Animation_value_track_set_update_mode(self.this, idx, mode) }
}
#[inline]
pub fn value_track_get_update_mode(&self, idx: i64) -> AnimationUpdateMode {
unsafe { Animation_value_track_get_update_mode(self.this, idx) }
}
#[inline]
pub fn value_track_get_key_indices(&self, idx: i64, time_sec: f64, delta: f64) -> Int32Array {
unsafe { Animation_value_track_get_key_indices(self.this, idx, time_sec, delta) }
}
#[inline]
pub fn method_track_get_key_indices(&self, idx: i64, time_sec: f64, delta: f64) -> Int32Array {
unsafe { Animation_method_track_get_key_indices(self.this, idx, time_sec, delta) }
}
#[inline]
pub fn method_track_get_name(&self, idx: i64, key_idx: i64) -> GodotString {
unsafe { Animation_method_track_get_name(self.this, idx, key_idx) }
}
#[inline]
pub fn method_track_get_params(&self, idx: i64, key_idx: i64) -> VariantArray {
unsafe { Animation_method_track_get_params(self.this, idx, key_idx) }
}
#[inline]
pub fn bezier_track_insert_key(&mut self, track: i64, time: f64, value: f64, in_handle: Vector2, out_handle: Vector2) -> i64 {
unsafe { Animation_bezier_track_insert_key(self.this, track, time, value, in_handle, out_handle) }
}
#[inline]
pub fn bezier_track_set_key_value(&mut self, idx: i64, key_idx: i64, value: f64) -> () {
unsafe { Animation_bezier_track_set_key_value(self.this, idx, key_idx, value) }
}
#[inline]
pub fn bezier_track_set_key_in_handle(&mut self, idx: i64, key_idx: i64, in_handle: Vector2) -> () {
unsafe { Animation_bezier_track_set_key_in_handle(self.this, idx, key_idx, in_handle) }
}
#[inline]
pub fn bezier_track_set_key_out_handle(&mut self, idx: i64, key_idx: i64, out_handle: Vector2) -> () {
unsafe { Animation_bezier_track_set_key_out_handle(self.this, idx, key_idx, out_handle) }
}
#[inline]
pub fn bezier_track_get_key_value(&self, idx: i64, key_idx: i64) -> f64 {
unsafe { Animation_bezier_track_get_key_value(self.this, idx, key_idx) }
}
#[inline]
pub fn bezier_track_get_key_in_handle(&self, idx: i64, key_idx: i64) -> Vector2 {
unsafe { Animation_bezier_track_get_key_in_handle(self.this, idx, key_idx) }
}
#[inline]
pub fn bezier_track_get_key_out_handle(&self, idx: i64, key_idx: i64) -> Vector2 {
unsafe { Animation_bezier_track_get_key_out_handle(self.this, idx, key_idx) }
}
#[inline]
pub fn bezier_track_interpolate(&self, track: i64, time: f64) -> f64 {
unsafe { Animation_bezier_track_interpolate(self.this, track, time) }
}
#[inline]
pub fn audio_track_insert_key(&mut self, track: i64, time: f64, stream: Option<Resource>, start_offset: f64, end_offset: f64) -> i64 {
unsafe { Animation_audio_track_insert_key(self.this, track, time, stream, start_offset, end_offset) }
}
#[inline]
pub fn audio_track_set_key_stream(&mut self, idx: i64, key_idx: i64, stream: Option<Resource>) -> () {
unsafe { Animation_audio_track_set_key_stream(self.this, idx, key_idx, stream) }
}
#[inline]
pub fn audio_track_set_key_start_offset(&mut self, idx: i64, key_idx: i64, offset: f64) -> () {
unsafe { Animation_audio_track_set_key_start_offset(self.this, idx, key_idx, offset) }
}
#[inline]
pub fn audio_track_set_key_end_offset(&mut self, idx: i64, key_idx: i64, offset: f64) -> () {
unsafe { Animation_audio_track_set_key_end_offset(self.this, idx, key_idx, offset) }
}
#[inline]
pub fn audio_track_get_key_stream(&self, idx: i64, key_idx: i64) -> Option<Resource> {
unsafe { Animation_audio_track_get_key_stream(self.this, idx, key_idx) }
}
#[inline]
pub fn audio_track_get_key_start_offset(&self, idx: i64, key_idx: i64) -> f64 {
unsafe { Animation_audio_track_get_key_start_offset(self.this, idx, key_idx) }
}
#[inline]
pub fn audio_track_get_key_end_offset(&self, idx: i64, key_idx: i64) -> f64 {
unsafe { Animation_audio_track_get_key_end_offset(self.this, idx, key_idx) }
}
#[inline]
pub fn animation_track_insert_key(&mut self, track: i64, time: f64, animation: GodotString) -> i64 {
unsafe { Animation_animation_track_insert_key(self.this, track, time, animation) }
}
#[inline]
pub fn animation_track_set_key_animation(&mut self, idx: i64, key_idx: i64, animation: GodotString) -> () {
unsafe { Animation_animation_track_set_key_animation(self.this, idx, key_idx, animation) }
}
#[inline]
pub fn animation_track_get_key_animation(&self, idx: i64, key_idx: i64) -> GodotString {
unsafe { Animation_animation_track_get_key_animation(self.this, idx, key_idx) }
}
#[inline]
pub fn set_length(&mut self, time_sec: f64) -> () {
unsafe { Animation_set_length(self.this, time_sec) }
}
#[inline]
pub fn get_length(&self) -> f64 {
unsafe { Animation_get_length(self.this) }
}
#[inline]
pub fn set_loop(&mut self, enabled: bool) -> () {
unsafe { Animation_set_loop(self.this, enabled) }
}
#[inline]
pub fn has_loop(&self) -> bool {
unsafe { Animation_has_loop(self.this) }
}
#[inline]
pub fn set_step(&mut self, size_sec: f64) -> () {
unsafe { Animation_set_step(self.this, size_sec) }
}
#[inline]
pub fn get_step(&self) -> f64 {
unsafe { Animation_get_step(self.this) }
}
#[inline]
pub fn clear(&mut self) -> () {
unsafe { Animation_clear(self.this) }
}
#[inline]
pub fn copy_track(&mut self, track: i64, to_animation: Option<Animation>) -> () {
unsafe { Animation_copy_track(self.this, track, to_animation) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for Animation {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AnimationTrackEditPlugin {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AnimationTrackEditPlugin {
fn class_name() -> &'static str {
"AnimationTrackEditPlugin"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for AnimationTrackEditPlugin {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AnimationTrackEditPlugin {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AnimationTrackEditPluginMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AnimationTrackEditPlugin {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for AnimationTrackEditPlugin {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct SkeletonMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub add_bone: *mut sys::godot_method_bind,
pub find_bone: *mut sys::godot_method_bind,
pub get_bone_name: *mut sys::godot_method_bind,
pub get_bone_parent: *mut sys::godot_method_bind,
pub set_bone_parent: *mut sys::godot_method_bind,
pub get_bone_count: *mut sys::godot_method_bind,
pub unparent_bone_and_rest: *mut sys::godot_method_bind,
pub get_bone_rest: *mut sys::godot_method_bind,
pub set_bone_rest: *mut sys::godot_method_bind,
pub set_bone_disable_rest: *mut sys::godot_method_bind,
pub is_bone_rest_disabled: *mut sys::godot_method_bind,
pub bind_child_node_to_bone: *mut sys::godot_method_bind,
pub unbind_child_node_from_bone: *mut sys::godot_method_bind,
pub get_bound_child_nodes_to_bone: *mut sys::godot_method_bind,
pub clear_bones: *mut sys::godot_method_bind,
pub get_bone_pose: *mut sys::godot_method_bind,
pub set_bone_pose: *mut sys::godot_method_bind,
pub set_bone_global_pose: *mut sys::godot_method_bind,
pub get_bone_global_pose: *mut sys::godot_method_bind,
pub get_bone_custom_pose: *mut sys::godot_method_bind,
pub set_bone_custom_pose: *mut sys::godot_method_bind,
pub get_bone_transform: *mut sys::godot_method_bind,
pub physical_bones_stop_simulation: *mut sys::godot_method_bind,
pub physical_bones_start_simulation: *mut sys::godot_method_bind,
pub physical_bones_add_collision_exception: *mut sys::godot_method_bind,
pub physical_bones_remove_collision_exception: *mut sys::godot_method_bind,
}
impl SkeletonMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: SkeletonMethodTable = SkeletonMethodTable {
class_constructor: None,
add_bone: 0 as *mut sys::godot_method_bind,
find_bone: 0 as *mut sys::godot_method_bind,
get_bone_name: 0 as *mut sys::godot_method_bind,
get_bone_parent: 0 as *mut sys::godot_method_bind,
set_bone_parent: 0 as *mut sys::godot_method_bind,
get_bone_count: 0 as *mut sys::godot_method_bind,
unparent_bone_and_rest: 0 as *mut sys::godot_method_bind,
get_bone_rest: 0 as *mut sys::godot_method_bind,
set_bone_rest: 0 as *mut sys::godot_method_bind,
set_bone_disable_rest: 0 as *mut sys::godot_method_bind,
is_bone_rest_disabled: 0 as *mut sys::godot_method_bind,
bind_child_node_to_bone: 0 as *mut sys::godot_method_bind,
unbind_child_node_from_bone: 0 as *mut sys::godot_method_bind,
get_bound_child_nodes_to_bone: 0 as *mut sys::godot_method_bind,
clear_bones: 0 as *mut sys::godot_method_bind,
get_bone_pose: 0 as *mut sys::godot_method_bind,
set_bone_pose: 0 as *mut sys::godot_method_bind,
set_bone_global_pose: 0 as *mut sys::godot_method_bind,
get_bone_global_pose: 0 as *mut sys::godot_method_bind,
get_bone_custom_pose: 0 as *mut sys::godot_method_bind,
set_bone_custom_pose: 0 as *mut sys::godot_method_bind,
get_bone_transform: 0 as *mut sys::godot_method_bind,
physical_bones_stop_simulation: 0 as *mut sys::godot_method_bind,
physical_bones_start_simulation: 0 as *mut sys::godot_method_bind,
physical_bones_add_collision_exception: 0 as *mut sys::godot_method_bind,
physical_bones_remove_collision_exception: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
SkeletonMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"Skeleton\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.add_bone = (gd_api.godot_method_bind_get_method)(class_name, "add_bone\0".as_ptr() as *const c_char );
table.find_bone = (gd_api.godot_method_bind_get_method)(class_name, "find_bone\0".as_ptr() as *const c_char );
table.get_bone_name = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_name\0".as_ptr() as *const c_char );
table.get_bone_parent = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_parent\0".as_ptr() as *const c_char );
table.set_bone_parent = (gd_api.godot_method_bind_get_method)(class_name, "set_bone_parent\0".as_ptr() as *const c_char );
table.get_bone_count = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_count\0".as_ptr() as *const c_char );
table.unparent_bone_and_rest = (gd_api.godot_method_bind_get_method)(class_name, "unparent_bone_and_rest\0".as_ptr() as *const c_char );
table.get_bone_rest = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_rest\0".as_ptr() as *const c_char );
table.set_bone_rest = (gd_api.godot_method_bind_get_method)(class_name, "set_bone_rest\0".as_ptr() as *const c_char );
table.set_bone_disable_rest = (gd_api.godot_method_bind_get_method)(class_name, "set_bone_disable_rest\0".as_ptr() as *const c_char );
table.is_bone_rest_disabled = (gd_api.godot_method_bind_get_method)(class_name, "is_bone_rest_disabled\0".as_ptr() as *const c_char );
table.bind_child_node_to_bone = (gd_api.godot_method_bind_get_method)(class_name, "bind_child_node_to_bone\0".as_ptr() as *const c_char );
table.unbind_child_node_from_bone = (gd_api.godot_method_bind_get_method)(class_name, "unbind_child_node_from_bone\0".as_ptr() as *const c_char );
table.get_bound_child_nodes_to_bone = (gd_api.godot_method_bind_get_method)(class_name, "get_bound_child_nodes_to_bone\0".as_ptr() as *const c_char );
table.clear_bones = (gd_api.godot_method_bind_get_method)(class_name, "clear_bones\0".as_ptr() as *const c_char );
table.get_bone_pose = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_pose\0".as_ptr() as *const c_char );
table.set_bone_pose = (gd_api.godot_method_bind_get_method)(class_name, "set_bone_pose\0".as_ptr() as *const c_char );
table.set_bone_global_pose = (gd_api.godot_method_bind_get_method)(class_name, "set_bone_global_pose\0".as_ptr() as *const c_char );
table.get_bone_global_pose = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_global_pose\0".as_ptr() as *const c_char );
table.get_bone_custom_pose = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_custom_pose\0".as_ptr() as *const c_char );
table.set_bone_custom_pose = (gd_api.godot_method_bind_get_method)(class_name, "set_bone_custom_pose\0".as_ptr() as *const c_char );
table.get_bone_transform = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_transform\0".as_ptr() as *const c_char );
table.physical_bones_stop_simulation = (gd_api.godot_method_bind_get_method)(class_name, "physical_bones_stop_simulation\0".as_ptr() as *const c_char );
table.physical_bones_start_simulation = (gd_api.godot_method_bind_get_method)(class_name, "physical_bones_start_simulation\0".as_ptr() as *const c_char );
table.physical_bones_add_collision_exception = (gd_api.godot_method_bind_get_method)(class_name, "physical_bones_add_collision_exception\0".as_ptr() as *const c_char );
table.physical_bones_remove_collision_exception = (gd_api.godot_method_bind_get_method)(class_name, "physical_bones_remove_collision_exception\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn Skeleton_add_bone(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).add_bone;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_find_bone(obj_ptr: *mut sys::godot_object, name: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).find_bone;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bone_name(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bone_name;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bone_parent(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bone_parent;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Skeleton_set_bone_parent(obj_ptr: *mut sys::godot_object, bone_idx: i64, parent_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).set_bone_parent;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bone_idx) as *const _ as *const _,
(&parent_idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bone_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bone_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Skeleton_unparent_bone_and_rest(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).unparent_bone_and_rest;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bone_rest(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> Transform {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bone_rest;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = sys::godot_transform::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Skeleton_set_bone_rest(obj_ptr: *mut sys::godot_object, bone_idx: i64, rest: Transform) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).set_bone_rest;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bone_idx) as *const _ as *const _,
(&rest) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_set_bone_disable_rest(obj_ptr: *mut sys::godot_object, bone_idx: i64, disable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).set_bone_disable_rest;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bone_idx) as *const _ as *const _,
(&disable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_is_bone_rest_disabled(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).is_bone_rest_disabled;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Skeleton_bind_child_node_to_bone(obj_ptr: *mut sys::godot_object, bone_idx: i64, node: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).bind_child_node_to_bone;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bone_idx) as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_unbind_child_node_from_bone(obj_ptr: *mut sys::godot_object, bone_idx: i64, node: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).unbind_child_node_from_bone;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bone_idx) as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bound_child_nodes_to_bone(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bound_child_nodes_to_bone;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Skeleton_clear_bones(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).clear_bones;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bone_pose(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> Transform {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bone_pose;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = sys::godot_transform::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Skeleton_set_bone_pose(obj_ptr: *mut sys::godot_object, bone_idx: i64, pose: Transform) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).set_bone_pose;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bone_idx) as *const _ as *const _,
(&pose) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_set_bone_global_pose(obj_ptr: *mut sys::godot_object, bone_idx: i64, pose: Transform) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).set_bone_global_pose;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bone_idx) as *const _ as *const _,
(&pose) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bone_global_pose(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> Transform {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bone_global_pose;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = sys::godot_transform::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bone_custom_pose(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> Transform {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bone_custom_pose;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = sys::godot_transform::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Skeleton_set_bone_custom_pose(obj_ptr: *mut sys::godot_object, bone_idx: i64, custom_pose: Transform) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).set_bone_custom_pose;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bone_idx) as *const _ as *const _,
(&custom_pose) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_get_bone_transform(obj_ptr: *mut sys::godot_object, bone_idx: i64) -> Transform {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).get_bone_transform;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bone_idx) as *const _ as *const _,
];
let mut ret = sys::godot_transform::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Skeleton_physical_bones_stop_simulation(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).physical_bones_stop_simulation;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_physical_bones_start_simulation(obj_ptr: *mut sys::godot_object, bones: VariantArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).physical_bones_start_simulation;
let mut argument_buffer : [*const libc::c_void; 1] = [
bones.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_physical_bones_add_collision_exception(obj_ptr: *mut sys::godot_object, exception: Rid) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).physical_bones_add_collision_exception;
let mut argument_buffer : [*const libc::c_void; 1] = [
exception.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton_physical_bones_remove_collision_exception(obj_ptr: *mut sys::godot_object, exception: Rid) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = SkeletonMethodTable::get(gd_api).physical_bones_remove_collision_exception;
let mut argument_buffer : [*const libc::c_void; 1] = [
exception.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationPlayerMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _node_removed: *mut sys::godot_method_bind,
pub _animation_changed: *mut sys::godot_method_bind,
pub add_animation: *mut sys::godot_method_bind,
pub remove_animation: *mut sys::godot_method_bind,
pub rename_animation: *mut sys::godot_method_bind,
pub has_animation: *mut sys::godot_method_bind,
pub get_animation: *mut sys::godot_method_bind,
pub get_animation_list: *mut sys::godot_method_bind,
pub animation_set_next: *mut sys::godot_method_bind,
pub animation_get_next: *mut sys::godot_method_bind,
pub set_blend_time: *mut sys::godot_method_bind,
pub get_blend_time: *mut sys::godot_method_bind,
pub set_default_blend_time: *mut sys::godot_method_bind,
pub get_default_blend_time: *mut sys::godot_method_bind,
pub play: *mut sys::godot_method_bind,
pub play_backwards: *mut sys::godot_method_bind,
pub stop: *mut sys::godot_method_bind,
pub is_playing: *mut sys::godot_method_bind,
pub set_current_animation: *mut sys::godot_method_bind,
pub get_current_animation: *mut sys::godot_method_bind,
pub set_assigned_animation: *mut sys::godot_method_bind,
pub get_assigned_animation: *mut sys::godot_method_bind,
pub queue: *mut sys::godot_method_bind,
pub clear_queue: *mut sys::godot_method_bind,
pub set_active: *mut sys::godot_method_bind,
pub is_active: *mut sys::godot_method_bind,
pub set_speed_scale: *mut sys::godot_method_bind,
pub get_speed_scale: *mut sys::godot_method_bind,
pub get_playing_speed: *mut sys::godot_method_bind,
pub set_autoplay: *mut sys::godot_method_bind,
pub get_autoplay: *mut sys::godot_method_bind,
pub set_root: *mut sys::godot_method_bind,
pub get_root: *mut sys::godot_method_bind,
pub find_animation: *mut sys::godot_method_bind,
pub clear_caches: *mut sys::godot_method_bind,
pub set_animation_process_mode: *mut sys::godot_method_bind,
pub get_animation_process_mode: *mut sys::godot_method_bind,
pub get_current_animation_position: *mut sys::godot_method_bind,
pub get_current_animation_length: *mut sys::godot_method_bind,
pub seek: *mut sys::godot_method_bind,
pub advance: *mut sys::godot_method_bind,
}
impl AnimationPlayerMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationPlayerMethodTable = AnimationPlayerMethodTable {
class_constructor: None,
_node_removed: 0 as *mut sys::godot_method_bind,
_animation_changed: 0 as *mut sys::godot_method_bind,
add_animation: 0 as *mut sys::godot_method_bind,
remove_animation: 0 as *mut sys::godot_method_bind,
rename_animation: 0 as *mut sys::godot_method_bind,
has_animation: 0 as *mut sys::godot_method_bind,
get_animation: 0 as *mut sys::godot_method_bind,
get_animation_list: 0 as *mut sys::godot_method_bind,
animation_set_next: 0 as *mut sys::godot_method_bind,
animation_get_next: 0 as *mut sys::godot_method_bind,
set_blend_time: 0 as *mut sys::godot_method_bind,
get_blend_time: 0 as *mut sys::godot_method_bind,
set_default_blend_time: 0 as *mut sys::godot_method_bind,
get_default_blend_time: 0 as *mut sys::godot_method_bind,
play: 0 as *mut sys::godot_method_bind,
play_backwards: 0 as *mut sys::godot_method_bind,
stop: 0 as *mut sys::godot_method_bind,
is_playing: 0 as *mut sys::godot_method_bind,
set_current_animation: 0 as *mut sys::godot_method_bind,
get_current_animation: 0 as *mut sys::godot_method_bind,
set_assigned_animation: 0 as *mut sys::godot_method_bind,
get_assigned_animation: 0 as *mut sys::godot_method_bind,
queue: 0 as *mut sys::godot_method_bind,
clear_queue: 0 as *mut sys::godot_method_bind,
set_active: 0 as *mut sys::godot_method_bind,
is_active: 0 as *mut sys::godot_method_bind,
set_speed_scale: 0 as *mut sys::godot_method_bind,
get_speed_scale: 0 as *mut sys::godot_method_bind,
get_playing_speed: 0 as *mut sys::godot_method_bind,
set_autoplay: 0 as *mut sys::godot_method_bind,
get_autoplay: 0 as *mut sys::godot_method_bind,
set_root: 0 as *mut sys::godot_method_bind,
get_root: 0 as *mut sys::godot_method_bind,
find_animation: 0 as *mut sys::godot_method_bind,
clear_caches: 0 as *mut sys::godot_method_bind,
set_animation_process_mode: 0 as *mut sys::godot_method_bind,
get_animation_process_mode: 0 as *mut sys::godot_method_bind,
get_current_animation_position: 0 as *mut sys::godot_method_bind,
get_current_animation_length: 0 as *mut sys::godot_method_bind,
seek: 0 as *mut sys::godot_method_bind,
advance: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationPlayerMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationPlayer\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._node_removed = (gd_api.godot_method_bind_get_method)(class_name, "_node_removed\0".as_ptr() as *const c_char );
table._animation_changed = (gd_api.godot_method_bind_get_method)(class_name, "_animation_changed\0".as_ptr() as *const c_char );
table.add_animation = (gd_api.godot_method_bind_get_method)(class_name, "add_animation\0".as_ptr() as *const c_char );
table.remove_animation = (gd_api.godot_method_bind_get_method)(class_name, "remove_animation\0".as_ptr() as *const c_char );
table.rename_animation = (gd_api.godot_method_bind_get_method)(class_name, "rename_animation\0".as_ptr() as *const c_char );
table.has_animation = (gd_api.godot_method_bind_get_method)(class_name, "has_animation\0".as_ptr() as *const c_char );
table.get_animation = (gd_api.godot_method_bind_get_method)(class_name, "get_animation\0".as_ptr() as *const c_char );
table.get_animation_list = (gd_api.godot_method_bind_get_method)(class_name, "get_animation_list\0".as_ptr() as *const c_char );
table.animation_set_next = (gd_api.godot_method_bind_get_method)(class_name, "animation_set_next\0".as_ptr() as *const c_char );
table.animation_get_next = (gd_api.godot_method_bind_get_method)(class_name, "animation_get_next\0".as_ptr() as *const c_char );
table.set_blend_time = (gd_api.godot_method_bind_get_method)(class_name, "set_blend_time\0".as_ptr() as *const c_char );
table.get_blend_time = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_time\0".as_ptr() as *const c_char );
table.set_default_blend_time = (gd_api.godot_method_bind_get_method)(class_name, "set_default_blend_time\0".as_ptr() as *const c_char );
table.get_default_blend_time = (gd_api.godot_method_bind_get_method)(class_name, "get_default_blend_time\0".as_ptr() as *const c_char );
table.play = (gd_api.godot_method_bind_get_method)(class_name, "play\0".as_ptr() as *const c_char );
table.play_backwards = (gd_api.godot_method_bind_get_method)(class_name, "play_backwards\0".as_ptr() as *const c_char );
table.stop = (gd_api.godot_method_bind_get_method)(class_name, "stop\0".as_ptr() as *const c_char );
table.is_playing = (gd_api.godot_method_bind_get_method)(class_name, "is_playing\0".as_ptr() as *const c_char );
table.set_current_animation = (gd_api.godot_method_bind_get_method)(class_name, "set_current_animation\0".as_ptr() as *const c_char );
table.get_current_animation = (gd_api.godot_method_bind_get_method)(class_name, "get_current_animation\0".as_ptr() as *const c_char );
table.set_assigned_animation = (gd_api.godot_method_bind_get_method)(class_name, "set_assigned_animation\0".as_ptr() as *const c_char );
table.get_assigned_animation = (gd_api.godot_method_bind_get_method)(class_name, "get_assigned_animation\0".as_ptr() as *const c_char );
table.queue = (gd_api.godot_method_bind_get_method)(class_name, "queue\0".as_ptr() as *const c_char );
table.clear_queue = (gd_api.godot_method_bind_get_method)(class_name, "clear_queue\0".as_ptr() as *const c_char );
table.set_active = (gd_api.godot_method_bind_get_method)(class_name, "set_active\0".as_ptr() as *const c_char );
table.is_active = (gd_api.godot_method_bind_get_method)(class_name, "is_active\0".as_ptr() as *const c_char );
table.set_speed_scale = (gd_api.godot_method_bind_get_method)(class_name, "set_speed_scale\0".as_ptr() as *const c_char );
table.get_speed_scale = (gd_api.godot_method_bind_get_method)(class_name, "get_speed_scale\0".as_ptr() as *const c_char );
table.get_playing_speed = (gd_api.godot_method_bind_get_method)(class_name, "get_playing_speed\0".as_ptr() as *const c_char );
table.set_autoplay = (gd_api.godot_method_bind_get_method)(class_name, "set_autoplay\0".as_ptr() as *const c_char );
table.get_autoplay = (gd_api.godot_method_bind_get_method)(class_name, "get_autoplay\0".as_ptr() as *const c_char );
table.set_root = (gd_api.godot_method_bind_get_method)(class_name, "set_root\0".as_ptr() as *const c_char );
table.get_root = (gd_api.godot_method_bind_get_method)(class_name, "get_root\0".as_ptr() as *const c_char );
table.find_animation = (gd_api.godot_method_bind_get_method)(class_name, "find_animation\0".as_ptr() as *const c_char );
table.clear_caches = (gd_api.godot_method_bind_get_method)(class_name, "clear_caches\0".as_ptr() as *const c_char );
table.set_animation_process_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_animation_process_mode\0".as_ptr() as *const c_char );
table.get_animation_process_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_animation_process_mode\0".as_ptr() as *const c_char );
table.get_current_animation_position = (gd_api.godot_method_bind_get_method)(class_name, "get_current_animation_position\0".as_ptr() as *const c_char );
table.get_current_animation_length = (gd_api.godot_method_bind_get_method)(class_name, "get_current_animation_length\0".as_ptr() as *const c_char );
table.seek = (gd_api.godot_method_bind_get_method)(class_name, "seek\0".as_ptr() as *const c_char );
table.advance = (gd_api.godot_method_bind_get_method)(class_name, "advance\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer__node_removed(obj_ptr: *mut sys::godot_object, arg0: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api)._node_removed;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer__animation_changed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api)._animation_changed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_add_animation(obj_ptr: *mut sys::godot_object, name: GodotString, animation: Option<Animation>) -> GodotResult {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).add_animation;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
if let Some(arg) = animation { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret: sys::godot_error = sys::godot_error_GODOT_OK;
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
result_from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_remove_animation(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).remove_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_rename_animation(obj_ptr: *mut sys::godot_object, name: GodotString, newname: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).rename_animation;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
newname.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_has_animation(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).has_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_animation(obj_ptr: *mut sys::godot_object, name: GodotString) -> Option<Animation> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Animation::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_animation_list(obj_ptr: *mut sys::godot_object) -> StringArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_animation_list;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_string_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
StringArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_animation_set_next(obj_ptr: *mut sys::godot_object, anim_from: GodotString, anim_to: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).animation_set_next;
let mut argument_buffer : [*const libc::c_void; 2] = [
anim_from.sys() as *const _ as *const _,
anim_to.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_animation_get_next(obj_ptr: *mut sys::godot_object, anim_from: GodotString) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).animation_get_next;
let mut argument_buffer : [*const libc::c_void; 1] = [
anim_from.sys() as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_blend_time(obj_ptr: *mut sys::godot_object, anim_from: GodotString, anim_to: GodotString, sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_blend_time;
let mut argument_buffer : [*const libc::c_void; 3] = [
anim_from.sys() as *const _ as *const _,
anim_to.sys() as *const _ as *const _,
(&sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_blend_time(obj_ptr: *mut sys::godot_object, anim_from: GodotString, anim_to: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_blend_time;
let mut argument_buffer : [*const libc::c_void; 2] = [
anim_from.sys() as *const _ as *const _,
anim_to.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_default_blend_time(obj_ptr: *mut sys::godot_object, sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_default_blend_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_default_blend_time(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_default_blend_time;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_play(obj_ptr: *mut sys::godot_object, name: GodotString, custom_blend: f64, custom_speed: f64, from_end: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).play;
let mut argument_buffer : [*const libc::c_void; 4] = [
name.sys() as *const _ as *const _,
(&custom_blend) as *const _ as *const _,
(&custom_speed) as *const _ as *const _,
(&from_end) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_play_backwards(obj_ptr: *mut sys::godot_object, name: GodotString, custom_blend: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).play_backwards;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
(&custom_blend) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_stop(obj_ptr: *mut sys::godot_object, reset: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).stop;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&reset) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_is_playing(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).is_playing;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_current_animation(obj_ptr: *mut sys::godot_object, anim: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_current_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
anim.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_current_animation(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_current_animation;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_assigned_animation(obj_ptr: *mut sys::godot_object, anim: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_assigned_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
anim.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_assigned_animation(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_assigned_animation;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_queue(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).queue;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_clear_queue(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).clear_queue;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_active(obj_ptr: *mut sys::godot_object, active: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_active;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&active) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_is_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).is_active;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_speed_scale(obj_ptr: *mut sys::godot_object, speed: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_speed_scale;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&speed) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_speed_scale(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_speed_scale;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_playing_speed(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_playing_speed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_autoplay(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_autoplay;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_autoplay(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_autoplay;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_root(obj_ptr: *mut sys::godot_object, path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_root;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_root(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_root;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_find_animation(obj_ptr: *mut sys::godot_object, animation: Option<Animation>) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).find_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = animation { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_clear_caches(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).clear_caches;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_set_animation_process_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).set_animation_process_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_animation_process_mode(obj_ptr: *mut sys::godot_object) -> AnimationPlayerAnimationProcessMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_animation_process_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AnimationPlayerAnimationProcessMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_current_animation_position(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_current_animation_position;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_get_current_animation_length(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).get_current_animation_length;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_seek(obj_ptr: *mut sys::godot_object, seconds: f64, update: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).seek;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&seconds) as *const _ as *const _,
(&update) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationPlayer_advance(obj_ptr: *mut sys::godot_object, delta: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationPlayerMethodTable::get(gd_api).advance;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&delta) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct TweenMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub is_active: *mut sys::godot_method_bind,
pub set_active: *mut sys::godot_method_bind,
pub is_repeat: *mut sys::godot_method_bind,
pub set_repeat: *mut sys::godot_method_bind,
pub set_speed_scale: *mut sys::godot_method_bind,
pub get_speed_scale: *mut sys::godot_method_bind,
pub set_tween_process_mode: *mut sys::godot_method_bind,
pub get_tween_process_mode: *mut sys::godot_method_bind,
pub start: *mut sys::godot_method_bind,
pub reset: *mut sys::godot_method_bind,
pub reset_all: *mut sys::godot_method_bind,
pub stop: *mut sys::godot_method_bind,
pub stop_all: *mut sys::godot_method_bind,
pub resume: *mut sys::godot_method_bind,
pub resume_all: *mut sys::godot_method_bind,
pub remove: *mut sys::godot_method_bind,
pub _remove: *mut sys::godot_method_bind,
pub remove_all: *mut sys::godot_method_bind,
pub seek: *mut sys::godot_method_bind,
pub tell: *mut sys::godot_method_bind,
pub get_runtime: *mut sys::godot_method_bind,
pub interpolate_property: *mut sys::godot_method_bind,
pub interpolate_method: *mut sys::godot_method_bind,
pub interpolate_callback: *mut sys::godot_method_bind,
pub interpolate_deferred_callback: *mut sys::godot_method_bind,
pub follow_property: *mut sys::godot_method_bind,
pub follow_method: *mut sys::godot_method_bind,
pub targeting_property: *mut sys::godot_method_bind,
pub targeting_method: *mut sys::godot_method_bind,
}
impl TweenMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: TweenMethodTable = TweenMethodTable {
class_constructor: None,
is_active: 0 as *mut sys::godot_method_bind,
set_active: 0 as *mut sys::godot_method_bind,
is_repeat: 0 as *mut sys::godot_method_bind,
set_repeat: 0 as *mut sys::godot_method_bind,
set_speed_scale: 0 as *mut sys::godot_method_bind,
get_speed_scale: 0 as *mut sys::godot_method_bind,
set_tween_process_mode: 0 as *mut sys::godot_method_bind,
get_tween_process_mode: 0 as *mut sys::godot_method_bind,
start: 0 as *mut sys::godot_method_bind,
reset: 0 as *mut sys::godot_method_bind,
reset_all: 0 as *mut sys::godot_method_bind,
stop: 0 as *mut sys::godot_method_bind,
stop_all: 0 as *mut sys::godot_method_bind,
resume: 0 as *mut sys::godot_method_bind,
resume_all: 0 as *mut sys::godot_method_bind,
remove: 0 as *mut sys::godot_method_bind,
_remove: 0 as *mut sys::godot_method_bind,
remove_all: 0 as *mut sys::godot_method_bind,
seek: 0 as *mut sys::godot_method_bind,
tell: 0 as *mut sys::godot_method_bind,
get_runtime: 0 as *mut sys::godot_method_bind,
interpolate_property: 0 as *mut sys::godot_method_bind,
interpolate_method: 0 as *mut sys::godot_method_bind,
interpolate_callback: 0 as *mut sys::godot_method_bind,
interpolate_deferred_callback: 0 as *mut sys::godot_method_bind,
follow_property: 0 as *mut sys::godot_method_bind,
follow_method: 0 as *mut sys::godot_method_bind,
targeting_property: 0 as *mut sys::godot_method_bind,
targeting_method: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
TweenMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"Tween\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.is_active = (gd_api.godot_method_bind_get_method)(class_name, "is_active\0".as_ptr() as *const c_char );
table.set_active = (gd_api.godot_method_bind_get_method)(class_name, "set_active\0".as_ptr() as *const c_char );
table.is_repeat = (gd_api.godot_method_bind_get_method)(class_name, "is_repeat\0".as_ptr() as *const c_char );
table.set_repeat = (gd_api.godot_method_bind_get_method)(class_name, "set_repeat\0".as_ptr() as *const c_char );
table.set_speed_scale = (gd_api.godot_method_bind_get_method)(class_name, "set_speed_scale\0".as_ptr() as *const c_char );
table.get_speed_scale = (gd_api.godot_method_bind_get_method)(class_name, "get_speed_scale\0".as_ptr() as *const c_char );
table.set_tween_process_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_tween_process_mode\0".as_ptr() as *const c_char );
table.get_tween_process_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_tween_process_mode\0".as_ptr() as *const c_char );
table.start = (gd_api.godot_method_bind_get_method)(class_name, "start\0".as_ptr() as *const c_char );
table.reset = (gd_api.godot_method_bind_get_method)(class_name, "reset\0".as_ptr() as *const c_char );
table.reset_all = (gd_api.godot_method_bind_get_method)(class_name, "reset_all\0".as_ptr() as *const c_char );
table.stop = (gd_api.godot_method_bind_get_method)(class_name, "stop\0".as_ptr() as *const c_char );
table.stop_all = (gd_api.godot_method_bind_get_method)(class_name, "stop_all\0".as_ptr() as *const c_char );
table.resume = (gd_api.godot_method_bind_get_method)(class_name, "resume\0".as_ptr() as *const c_char );
table.resume_all = (gd_api.godot_method_bind_get_method)(class_name, "resume_all\0".as_ptr() as *const c_char );
table.remove = (gd_api.godot_method_bind_get_method)(class_name, "remove\0".as_ptr() as *const c_char );
table._remove = (gd_api.godot_method_bind_get_method)(class_name, "_remove\0".as_ptr() as *const c_char );
table.remove_all = (gd_api.godot_method_bind_get_method)(class_name, "remove_all\0".as_ptr() as *const c_char );
table.seek = (gd_api.godot_method_bind_get_method)(class_name, "seek\0".as_ptr() as *const c_char );
table.tell = (gd_api.godot_method_bind_get_method)(class_name, "tell\0".as_ptr() as *const c_char );
table.get_runtime = (gd_api.godot_method_bind_get_method)(class_name, "get_runtime\0".as_ptr() as *const c_char );
table.interpolate_property = (gd_api.godot_method_bind_get_method)(class_name, "interpolate_property\0".as_ptr() as *const c_char );
table.interpolate_method = (gd_api.godot_method_bind_get_method)(class_name, "interpolate_method\0".as_ptr() as *const c_char );
table.interpolate_callback = (gd_api.godot_method_bind_get_method)(class_name, "interpolate_callback\0".as_ptr() as *const c_char );
table.interpolate_deferred_callback = (gd_api.godot_method_bind_get_method)(class_name, "interpolate_deferred_callback\0".as_ptr() as *const c_char );
table.follow_property = (gd_api.godot_method_bind_get_method)(class_name, "follow_property\0".as_ptr() as *const c_char );
table.follow_method = (gd_api.godot_method_bind_get_method)(class_name, "follow_method\0".as_ptr() as *const c_char );
table.targeting_property = (gd_api.godot_method_bind_get_method)(class_name, "targeting_property\0".as_ptr() as *const c_char );
table.targeting_method = (gd_api.godot_method_bind_get_method)(class_name, "targeting_method\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn Tween_is_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).is_active;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_set_active(obj_ptr: *mut sys::godot_object, active: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).set_active;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&active) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Tween_is_repeat(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).is_repeat;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_set_repeat(obj_ptr: *mut sys::godot_object, repeat: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).set_repeat;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&repeat) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Tween_set_speed_scale(obj_ptr: *mut sys::godot_object, speed: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).set_speed_scale;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&speed) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Tween_get_speed_scale(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).get_speed_scale;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_set_tween_process_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).set_tween_process_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Tween_get_tween_process_mode(obj_ptr: *mut sys::godot_object) -> TweenTweenProcessMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).get_tween_process_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: TweenTweenProcessMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_start(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).start;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_reset(obj_ptr: *mut sys::godot_object, object: Option<Object>, key: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).reset;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
key.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_reset_all(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).reset_all;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_stop(obj_ptr: *mut sys::godot_object, object: Option<Object>, key: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).stop;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
key.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_stop_all(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).stop_all;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_resume(obj_ptr: *mut sys::godot_object, object: Option<Object>, key: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).resume;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
key.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_resume_all(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).resume_all;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_remove(obj_ptr: *mut sys::godot_object, object: Option<Object>, key: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).remove;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
key.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween__remove(obj_ptr: *mut sys::godot_object, object: Option<Object>, key: GodotString, first_only: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api)._remove;
let mut argument_buffer : [*const libc::c_void; 3] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
key.sys() as *const _ as *const _,
(&first_only) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Tween_remove_all(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).remove_all;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_seek(obj_ptr: *mut sys::godot_object, time: f64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).seek;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&time) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_tell(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).tell;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_get_runtime(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).get_runtime;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_interpolate_property(obj_ptr: *mut sys::godot_object, object: Option<Object>, property: NodePath, initial_val: Variant, final_val: Variant, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).interpolate_property;
let mut argument_buffer : [*const libc::c_void; 8] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
property.sys() as *const _ as *const _,
initial_val.sys() as *const _ as *const _,
final_val.sys() as *const _ as *const _,
(&duration) as *const _ as *const _,
(&trans_type) as *const _ as *const _,
(&ease_type) as *const _ as *const _,
(&delay) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_interpolate_method(obj_ptr: *mut sys::godot_object, object: Option<Object>, method: GodotString, initial_val: Variant, final_val: Variant, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).interpolate_method;
let mut argument_buffer : [*const libc::c_void; 8] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
method.sys() as *const _ as *const _,
initial_val.sys() as *const _ as *const _,
final_val.sys() as *const _ as *const _,
(&duration) as *const _ as *const _,
(&trans_type) as *const _ as *const _,
(&ease_type) as *const _ as *const _,
(&delay) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_interpolate_callback(obj_ptr: *mut sys::godot_object, object: Option<Object>, duration: f64, callback: GodotString, arg1: Variant, arg2: Variant, arg3: Variant, arg4: Variant, arg5: Variant) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).interpolate_callback;
let mut argument_buffer : [*const libc::c_void; 8] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
(&duration) as *const _ as *const _,
callback.sys() as *const _ as *const _,
arg1.sys() as *const _ as *const _,
arg2.sys() as *const _ as *const _,
arg3.sys() as *const _ as *const _,
arg4.sys() as *const _ as *const _,
arg5.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_interpolate_deferred_callback(obj_ptr: *mut sys::godot_object, object: Option<Object>, duration: f64, callback: GodotString, arg1: Variant, arg2: Variant, arg3: Variant, arg4: Variant, arg5: Variant) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).interpolate_deferred_callback;
let mut argument_buffer : [*const libc::c_void; 8] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
(&duration) as *const _ as *const _,
callback.sys() as *const _ as *const _,
arg1.sys() as *const _ as *const _,
arg2.sys() as *const _ as *const _,
arg3.sys() as *const _ as *const _,
arg4.sys() as *const _ as *const _,
arg5.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_follow_property(obj_ptr: *mut sys::godot_object, object: Option<Object>, property: NodePath, initial_val: Variant, target: Option<Object>, target_property: NodePath, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).follow_property;
let mut argument_buffer : [*const libc::c_void; 9] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
property.sys() as *const _ as *const _,
initial_val.sys() as *const _ as *const _,
if let Some(arg) = target { arg.this as *const _ as *const _ } else { ptr::null() },
target_property.sys() as *const _ as *const _,
(&duration) as *const _ as *const _,
(&trans_type) as *const _ as *const _,
(&ease_type) as *const _ as *const _,
(&delay) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_follow_method(obj_ptr: *mut sys::godot_object, object: Option<Object>, method: GodotString, initial_val: Variant, target: Option<Object>, target_method: GodotString, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).follow_method;
let mut argument_buffer : [*const libc::c_void; 9] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
method.sys() as *const _ as *const _,
initial_val.sys() as *const _ as *const _,
if let Some(arg) = target { arg.this as *const _ as *const _ } else { ptr::null() },
target_method.sys() as *const _ as *const _,
(&duration) as *const _ as *const _,
(&trans_type) as *const _ as *const _,
(&ease_type) as *const _ as *const _,
(&delay) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_targeting_property(obj_ptr: *mut sys::godot_object, object: Option<Object>, property: NodePath, initial: Option<Object>, initial_val: NodePath, final_val: Variant, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).targeting_property;
let mut argument_buffer : [*const libc::c_void; 9] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
property.sys() as *const _ as *const _,
if let Some(arg) = initial { arg.this as *const _ as *const _ } else { ptr::null() },
initial_val.sys() as *const _ as *const _,
final_val.sys() as *const _ as *const _,
(&duration) as *const _ as *const _,
(&trans_type) as *const _ as *const _,
(&ease_type) as *const _ as *const _,
(&delay) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Tween_targeting_method(obj_ptr: *mut sys::godot_object, object: Option<Object>, method: GodotString, initial: Option<Object>, initial_method: GodotString, final_val: Variant, duration: f64, trans_type: i64, ease_type: i64, delay: f64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = TweenMethodTable::get(gd_api).targeting_method;
let mut argument_buffer : [*const libc::c_void; 9] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
method.sys() as *const _ as *const _,
if let Some(arg) = initial { arg.this as *const _ as *const _ } else { ptr::null() },
initial_method.sys() as *const _ as *const _,
final_val.sys() as *const _ as *const _,
(&duration) as *const _ as *const _,
(&trans_type) as *const _ as *const _,
(&ease_type) as *const _ as *const _,
(&delay) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct BoneAttachmentMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_bone_name: *mut sys::godot_method_bind,
pub get_bone_name: *mut sys::godot_method_bind,
}
impl BoneAttachmentMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: BoneAttachmentMethodTable = BoneAttachmentMethodTable {
class_constructor: None,
set_bone_name: 0 as *mut sys::godot_method_bind,
get_bone_name: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
BoneAttachmentMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"BoneAttachment\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_bone_name = (gd_api.godot_method_bind_get_method)(class_name, "set_bone_name\0".as_ptr() as *const c_char );
table.get_bone_name = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_name\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn BoneAttachment_set_bone_name(obj_ptr: *mut sys::godot_object, bone_name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = BoneAttachmentMethodTable::get(gd_api).set_bone_name;
let mut argument_buffer : [*const libc::c_void; 1] = [
bone_name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn BoneAttachment_get_bone_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = BoneAttachmentMethodTable::get(gd_api).get_bone_name;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationTreePlayerMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub add_node: *mut sys::godot_method_bind,
pub node_exists: *mut sys::godot_method_bind,
pub node_rename: *mut sys::godot_method_bind,
pub node_get_type: *mut sys::godot_method_bind,
pub node_get_input_count: *mut sys::godot_method_bind,
pub node_get_input_source: *mut sys::godot_method_bind,
pub animation_node_set_animation: *mut sys::godot_method_bind,
pub animation_node_get_animation: *mut sys::godot_method_bind,
pub animation_node_set_master_animation: *mut sys::godot_method_bind,
pub animation_node_get_master_animation: *mut sys::godot_method_bind,
pub animation_node_get_position: *mut sys::godot_method_bind,
pub animation_node_set_filter_path: *mut sys::godot_method_bind,
pub oneshot_node_set_fadein_time: *mut sys::godot_method_bind,
pub oneshot_node_get_fadein_time: *mut sys::godot_method_bind,
pub oneshot_node_set_fadeout_time: *mut sys::godot_method_bind,
pub oneshot_node_get_fadeout_time: *mut sys::godot_method_bind,
pub oneshot_node_set_autorestart: *mut sys::godot_method_bind,
pub oneshot_node_set_autorestart_delay: *mut sys::godot_method_bind,
pub oneshot_node_set_autorestart_random_delay: *mut sys::godot_method_bind,
pub oneshot_node_has_autorestart: *mut sys::godot_method_bind,
pub oneshot_node_get_autorestart_delay: *mut sys::godot_method_bind,
pub oneshot_node_get_autorestart_random_delay: *mut sys::godot_method_bind,
pub oneshot_node_start: *mut sys::godot_method_bind,
pub oneshot_node_stop: *mut sys::godot_method_bind,
pub oneshot_node_is_active: *mut sys::godot_method_bind,
pub oneshot_node_set_filter_path: *mut sys::godot_method_bind,
pub mix_node_set_amount: *mut sys::godot_method_bind,
pub mix_node_get_amount: *mut sys::godot_method_bind,
pub blend2_node_set_amount: *mut sys::godot_method_bind,
pub blend2_node_get_amount: *mut sys::godot_method_bind,
pub blend2_node_set_filter_path: *mut sys::godot_method_bind,
pub blend3_node_set_amount: *mut sys::godot_method_bind,
pub blend3_node_get_amount: *mut sys::godot_method_bind,
pub blend4_node_set_amount: *mut sys::godot_method_bind,
pub blend4_node_get_amount: *mut sys::godot_method_bind,
pub timescale_node_set_scale: *mut sys::godot_method_bind,
pub timescale_node_get_scale: *mut sys::godot_method_bind,
pub timeseek_node_seek: *mut sys::godot_method_bind,
pub transition_node_set_input_count: *mut sys::godot_method_bind,
pub transition_node_get_input_count: *mut sys::godot_method_bind,
pub transition_node_delete_input: *mut sys::godot_method_bind,
pub transition_node_set_input_auto_advance: *mut sys::godot_method_bind,
pub transition_node_has_input_auto_advance: *mut sys::godot_method_bind,
pub transition_node_set_xfade_time: *mut sys::godot_method_bind,
pub transition_node_get_xfade_time: *mut sys::godot_method_bind,
pub transition_node_set_current: *mut sys::godot_method_bind,
pub transition_node_get_current: *mut sys::godot_method_bind,
pub node_set_position: *mut sys::godot_method_bind,
pub node_get_position: *mut sys::godot_method_bind,
pub remove_node: *mut sys::godot_method_bind,
pub connect_nodes: *mut sys::godot_method_bind,
pub are_nodes_connected: *mut sys::godot_method_bind,
pub disconnect_nodes: *mut sys::godot_method_bind,
pub set_active: *mut sys::godot_method_bind,
pub is_active: *mut sys::godot_method_bind,
pub set_base_path: *mut sys::godot_method_bind,
pub get_base_path: *mut sys::godot_method_bind,
pub set_master_player: *mut sys::godot_method_bind,
pub get_master_player: *mut sys::godot_method_bind,
pub get_node_list: *mut sys::godot_method_bind,
pub set_animation_process_mode: *mut sys::godot_method_bind,
pub get_animation_process_mode: *mut sys::godot_method_bind,
pub advance: *mut sys::godot_method_bind,
pub reset: *mut sys::godot_method_bind,
pub recompute_caches: *mut sys::godot_method_bind,
}
impl AnimationTreePlayerMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationTreePlayerMethodTable = AnimationTreePlayerMethodTable {
class_constructor: None,
add_node: 0 as *mut sys::godot_method_bind,
node_exists: 0 as *mut sys::godot_method_bind,
node_rename: 0 as *mut sys::godot_method_bind,
node_get_type: 0 as *mut sys::godot_method_bind,
node_get_input_count: 0 as *mut sys::godot_method_bind,
node_get_input_source: 0 as *mut sys::godot_method_bind,
animation_node_set_animation: 0 as *mut sys::godot_method_bind,
animation_node_get_animation: 0 as *mut sys::godot_method_bind,
animation_node_set_master_animation: 0 as *mut sys::godot_method_bind,
animation_node_get_master_animation: 0 as *mut sys::godot_method_bind,
animation_node_get_position: 0 as *mut sys::godot_method_bind,
animation_node_set_filter_path: 0 as *mut sys::godot_method_bind,
oneshot_node_set_fadein_time: 0 as *mut sys::godot_method_bind,
oneshot_node_get_fadein_time: 0 as *mut sys::godot_method_bind,
oneshot_node_set_fadeout_time: 0 as *mut sys::godot_method_bind,
oneshot_node_get_fadeout_time: 0 as *mut sys::godot_method_bind,
oneshot_node_set_autorestart: 0 as *mut sys::godot_method_bind,
oneshot_node_set_autorestart_delay: 0 as *mut sys::godot_method_bind,
oneshot_node_set_autorestart_random_delay: 0 as *mut sys::godot_method_bind,
oneshot_node_has_autorestart: 0 as *mut sys::godot_method_bind,
oneshot_node_get_autorestart_delay: 0 as *mut sys::godot_method_bind,
oneshot_node_get_autorestart_random_delay: 0 as *mut sys::godot_method_bind,
oneshot_node_start: 0 as *mut sys::godot_method_bind,
oneshot_node_stop: 0 as *mut sys::godot_method_bind,
oneshot_node_is_active: 0 as *mut sys::godot_method_bind,
oneshot_node_set_filter_path: 0 as *mut sys::godot_method_bind,
mix_node_set_amount: 0 as *mut sys::godot_method_bind,
mix_node_get_amount: 0 as *mut sys::godot_method_bind,
blend2_node_set_amount: 0 as *mut sys::godot_method_bind,
blend2_node_get_amount: 0 as *mut sys::godot_method_bind,
blend2_node_set_filter_path: 0 as *mut sys::godot_method_bind,
blend3_node_set_amount: 0 as *mut sys::godot_method_bind,
blend3_node_get_amount: 0 as *mut sys::godot_method_bind,
blend4_node_set_amount: 0 as *mut sys::godot_method_bind,
blend4_node_get_amount: 0 as *mut sys::godot_method_bind,
timescale_node_set_scale: 0 as *mut sys::godot_method_bind,
timescale_node_get_scale: 0 as *mut sys::godot_method_bind,
timeseek_node_seek: 0 as *mut sys::godot_method_bind,
transition_node_set_input_count: 0 as *mut sys::godot_method_bind,
transition_node_get_input_count: 0 as *mut sys::godot_method_bind,
transition_node_delete_input: 0 as *mut sys::godot_method_bind,
transition_node_set_input_auto_advance: 0 as *mut sys::godot_method_bind,
transition_node_has_input_auto_advance: 0 as *mut sys::godot_method_bind,
transition_node_set_xfade_time: 0 as *mut sys::godot_method_bind,
transition_node_get_xfade_time: 0 as *mut sys::godot_method_bind,
transition_node_set_current: 0 as *mut sys::godot_method_bind,
transition_node_get_current: 0 as *mut sys::godot_method_bind,
node_set_position: 0 as *mut sys::godot_method_bind,
node_get_position: 0 as *mut sys::godot_method_bind,
remove_node: 0 as *mut sys::godot_method_bind,
connect_nodes: 0 as *mut sys::godot_method_bind,
are_nodes_connected: 0 as *mut sys::godot_method_bind,
disconnect_nodes: 0 as *mut sys::godot_method_bind,
set_active: 0 as *mut sys::godot_method_bind,
is_active: 0 as *mut sys::godot_method_bind,
set_base_path: 0 as *mut sys::godot_method_bind,
get_base_path: 0 as *mut sys::godot_method_bind,
set_master_player: 0 as *mut sys::godot_method_bind,
get_master_player: 0 as *mut sys::godot_method_bind,
get_node_list: 0 as *mut sys::godot_method_bind,
set_animation_process_mode: 0 as *mut sys::godot_method_bind,
get_animation_process_mode: 0 as *mut sys::godot_method_bind,
advance: 0 as *mut sys::godot_method_bind,
reset: 0 as *mut sys::godot_method_bind,
recompute_caches: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationTreePlayerMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationTreePlayer\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.add_node = (gd_api.godot_method_bind_get_method)(class_name, "add_node\0".as_ptr() as *const c_char );
table.node_exists = (gd_api.godot_method_bind_get_method)(class_name, "node_exists\0".as_ptr() as *const c_char );
table.node_rename = (gd_api.godot_method_bind_get_method)(class_name, "node_rename\0".as_ptr() as *const c_char );
table.node_get_type = (gd_api.godot_method_bind_get_method)(class_name, "node_get_type\0".as_ptr() as *const c_char );
table.node_get_input_count = (gd_api.godot_method_bind_get_method)(class_name, "node_get_input_count\0".as_ptr() as *const c_char );
table.node_get_input_source = (gd_api.godot_method_bind_get_method)(class_name, "node_get_input_source\0".as_ptr() as *const c_char );
table.animation_node_set_animation = (gd_api.godot_method_bind_get_method)(class_name, "animation_node_set_animation\0".as_ptr() as *const c_char );
table.animation_node_get_animation = (gd_api.godot_method_bind_get_method)(class_name, "animation_node_get_animation\0".as_ptr() as *const c_char );
table.animation_node_set_master_animation = (gd_api.godot_method_bind_get_method)(class_name, "animation_node_set_master_animation\0".as_ptr() as *const c_char );
table.animation_node_get_master_animation = (gd_api.godot_method_bind_get_method)(class_name, "animation_node_get_master_animation\0".as_ptr() as *const c_char );
table.animation_node_get_position = (gd_api.godot_method_bind_get_method)(class_name, "animation_node_get_position\0".as_ptr() as *const c_char );
table.animation_node_set_filter_path = (gd_api.godot_method_bind_get_method)(class_name, "animation_node_set_filter_path\0".as_ptr() as *const c_char );
table.oneshot_node_set_fadein_time = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_set_fadein_time\0".as_ptr() as *const c_char );
table.oneshot_node_get_fadein_time = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_get_fadein_time\0".as_ptr() as *const c_char );
table.oneshot_node_set_fadeout_time = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_set_fadeout_time\0".as_ptr() as *const c_char );
table.oneshot_node_get_fadeout_time = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_get_fadeout_time\0".as_ptr() as *const c_char );
table.oneshot_node_set_autorestart = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_set_autorestart\0".as_ptr() as *const c_char );
table.oneshot_node_set_autorestart_delay = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_set_autorestart_delay\0".as_ptr() as *const c_char );
table.oneshot_node_set_autorestart_random_delay = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_set_autorestart_random_delay\0".as_ptr() as *const c_char );
table.oneshot_node_has_autorestart = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_has_autorestart\0".as_ptr() as *const c_char );
table.oneshot_node_get_autorestart_delay = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_get_autorestart_delay\0".as_ptr() as *const c_char );
table.oneshot_node_get_autorestart_random_delay = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_get_autorestart_random_delay\0".as_ptr() as *const c_char );
table.oneshot_node_start = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_start\0".as_ptr() as *const c_char );
table.oneshot_node_stop = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_stop\0".as_ptr() as *const c_char );
table.oneshot_node_is_active = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_is_active\0".as_ptr() as *const c_char );
table.oneshot_node_set_filter_path = (gd_api.godot_method_bind_get_method)(class_name, "oneshot_node_set_filter_path\0".as_ptr() as *const c_char );
table.mix_node_set_amount = (gd_api.godot_method_bind_get_method)(class_name, "mix_node_set_amount\0".as_ptr() as *const c_char );
table.mix_node_get_amount = (gd_api.godot_method_bind_get_method)(class_name, "mix_node_get_amount\0".as_ptr() as *const c_char );
table.blend2_node_set_amount = (gd_api.godot_method_bind_get_method)(class_name, "blend2_node_set_amount\0".as_ptr() as *const c_char );
table.blend2_node_get_amount = (gd_api.godot_method_bind_get_method)(class_name, "blend2_node_get_amount\0".as_ptr() as *const c_char );
table.blend2_node_set_filter_path = (gd_api.godot_method_bind_get_method)(class_name, "blend2_node_set_filter_path\0".as_ptr() as *const c_char );
table.blend3_node_set_amount = (gd_api.godot_method_bind_get_method)(class_name, "blend3_node_set_amount\0".as_ptr() as *const c_char );
table.blend3_node_get_amount = (gd_api.godot_method_bind_get_method)(class_name, "blend3_node_get_amount\0".as_ptr() as *const c_char );
table.blend4_node_set_amount = (gd_api.godot_method_bind_get_method)(class_name, "blend4_node_set_amount\0".as_ptr() as *const c_char );
table.blend4_node_get_amount = (gd_api.godot_method_bind_get_method)(class_name, "blend4_node_get_amount\0".as_ptr() as *const c_char );
table.timescale_node_set_scale = (gd_api.godot_method_bind_get_method)(class_name, "timescale_node_set_scale\0".as_ptr() as *const c_char );
table.timescale_node_get_scale = (gd_api.godot_method_bind_get_method)(class_name, "timescale_node_get_scale\0".as_ptr() as *const c_char );
table.timeseek_node_seek = (gd_api.godot_method_bind_get_method)(class_name, "timeseek_node_seek\0".as_ptr() as *const c_char );
table.transition_node_set_input_count = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_set_input_count\0".as_ptr() as *const c_char );
table.transition_node_get_input_count = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_get_input_count\0".as_ptr() as *const c_char );
table.transition_node_delete_input = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_delete_input\0".as_ptr() as *const c_char );
table.transition_node_set_input_auto_advance = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_set_input_auto_advance\0".as_ptr() as *const c_char );
table.transition_node_has_input_auto_advance = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_has_input_auto_advance\0".as_ptr() as *const c_char );
table.transition_node_set_xfade_time = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_set_xfade_time\0".as_ptr() as *const c_char );
table.transition_node_get_xfade_time = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_get_xfade_time\0".as_ptr() as *const c_char );
table.transition_node_set_current = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_set_current\0".as_ptr() as *const c_char );
table.transition_node_get_current = (gd_api.godot_method_bind_get_method)(class_name, "transition_node_get_current\0".as_ptr() as *const c_char );
table.node_set_position = (gd_api.godot_method_bind_get_method)(class_name, "node_set_position\0".as_ptr() as *const c_char );
table.node_get_position = (gd_api.godot_method_bind_get_method)(class_name, "node_get_position\0".as_ptr() as *const c_char );
table.remove_node = (gd_api.godot_method_bind_get_method)(class_name, "remove_node\0".as_ptr() as *const c_char );
table.connect_nodes = (gd_api.godot_method_bind_get_method)(class_name, "connect_nodes\0".as_ptr() as *const c_char );
table.are_nodes_connected = (gd_api.godot_method_bind_get_method)(class_name, "are_nodes_connected\0".as_ptr() as *const c_char );
table.disconnect_nodes = (gd_api.godot_method_bind_get_method)(class_name, "disconnect_nodes\0".as_ptr() as *const c_char );
table.set_active = (gd_api.godot_method_bind_get_method)(class_name, "set_active\0".as_ptr() as *const c_char );
table.is_active = (gd_api.godot_method_bind_get_method)(class_name, "is_active\0".as_ptr() as *const c_char );
table.set_base_path = (gd_api.godot_method_bind_get_method)(class_name, "set_base_path\0".as_ptr() as *const c_char );
table.get_base_path = (gd_api.godot_method_bind_get_method)(class_name, "get_base_path\0".as_ptr() as *const c_char );
table.set_master_player = (gd_api.godot_method_bind_get_method)(class_name, "set_master_player\0".as_ptr() as *const c_char );
table.get_master_player = (gd_api.godot_method_bind_get_method)(class_name, "get_master_player\0".as_ptr() as *const c_char );
table.get_node_list = (gd_api.godot_method_bind_get_method)(class_name, "get_node_list\0".as_ptr() as *const c_char );
table.set_animation_process_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_animation_process_mode\0".as_ptr() as *const c_char );
table.get_animation_process_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_animation_process_mode\0".as_ptr() as *const c_char );
table.advance = (gd_api.godot_method_bind_get_method)(class_name, "advance\0".as_ptr() as *const c_char );
table.reset = (gd_api.godot_method_bind_get_method)(class_name, "reset\0".as_ptr() as *const c_char );
table.recompute_caches = (gd_api.godot_method_bind_get_method)(class_name, "recompute_caches\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_add_node(obj_ptr: *mut sys::godot_object, _type: i64, id: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).add_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&_type) as *const _ as *const _,
id.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_node_exists(obj_ptr: *mut sys::godot_object, node: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).node_exists;
let mut argument_buffer : [*const libc::c_void; 1] = [
node.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_node_rename(obj_ptr: *mut sys::godot_object, node: GodotString, new_name: GodotString) -> GodotResult {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).node_rename;
let mut argument_buffer : [*const libc::c_void; 2] = [
node.sys() as *const _ as *const _,
new_name.sys() as *const _ as *const _,
];
let mut ret: sys::godot_error = sys::godot_error_GODOT_OK;
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
result_from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_node_get_type(obj_ptr: *mut sys::godot_object, id: GodotString) -> AnimationTreePlayerNodeType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).node_get_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret: AnimationTreePlayerNodeType = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_node_get_input_count(obj_ptr: *mut sys::godot_object, id: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).node_get_input_count;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_node_get_input_source(obj_ptr: *mut sys::godot_object, id: GodotString, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).node_get_input_source;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_animation_node_set_animation(obj_ptr: *mut sys::godot_object, id: GodotString, animation: Option<Animation>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).animation_node_set_animation;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
if let Some(arg) = animation { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_animation_node_get_animation(obj_ptr: *mut sys::godot_object, id: GodotString) -> Option<Animation> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).animation_node_get_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Animation::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_animation_node_set_master_animation(obj_ptr: *mut sys::godot_object, id: GodotString, source: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).animation_node_set_master_animation;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
source.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_animation_node_get_master_animation(obj_ptr: *mut sys::godot_object, id: GodotString) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).animation_node_get_master_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_animation_node_get_position(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).animation_node_get_position;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_animation_node_set_filter_path(obj_ptr: *mut sys::godot_object, id: GodotString, path: NodePath, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).animation_node_set_filter_path;
let mut argument_buffer : [*const libc::c_void; 3] = [
id.sys() as *const _ as *const _,
path.sys() as *const _ as *const _,
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_set_fadein_time(obj_ptr: *mut sys::godot_object, id: GodotString, time_sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_set_fadein_time;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&time_sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_get_fadein_time(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_get_fadein_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_set_fadeout_time(obj_ptr: *mut sys::godot_object, id: GodotString, time_sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_set_fadeout_time;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&time_sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_get_fadeout_time(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_get_fadeout_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_set_autorestart(obj_ptr: *mut sys::godot_object, id: GodotString, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_set_autorestart;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_set_autorestart_delay(obj_ptr: *mut sys::godot_object, id: GodotString, delay_sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_set_autorestart_delay;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&delay_sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_set_autorestart_random_delay(obj_ptr: *mut sys::godot_object, id: GodotString, rand_sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_set_autorestart_random_delay;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&rand_sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_has_autorestart(obj_ptr: *mut sys::godot_object, id: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_has_autorestart;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_get_autorestart_delay(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_get_autorestart_delay;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_get_autorestart_random_delay(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_get_autorestart_random_delay;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_start(obj_ptr: *mut sys::godot_object, id: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_start;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_stop(obj_ptr: *mut sys::godot_object, id: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_stop;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_is_active(obj_ptr: *mut sys::godot_object, id: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_is_active;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_oneshot_node_set_filter_path(obj_ptr: *mut sys::godot_object, id: GodotString, path: NodePath, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).oneshot_node_set_filter_path;
let mut argument_buffer : [*const libc::c_void; 3] = [
id.sys() as *const _ as *const _,
path.sys() as *const _ as *const _,
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_mix_node_set_amount(obj_ptr: *mut sys::godot_object, id: GodotString, ratio: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).mix_node_set_amount;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&ratio) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_mix_node_get_amount(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).mix_node_get_amount;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_blend2_node_set_amount(obj_ptr: *mut sys::godot_object, id: GodotString, blend: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).blend2_node_set_amount;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&blend) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_blend2_node_get_amount(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).blend2_node_get_amount;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_blend2_node_set_filter_path(obj_ptr: *mut sys::godot_object, id: GodotString, path: NodePath, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).blend2_node_set_filter_path;
let mut argument_buffer : [*const libc::c_void; 3] = [
id.sys() as *const _ as *const _,
path.sys() as *const _ as *const _,
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_blend3_node_set_amount(obj_ptr: *mut sys::godot_object, id: GodotString, blend: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).blend3_node_set_amount;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&blend) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_blend3_node_get_amount(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).blend3_node_get_amount;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_blend4_node_set_amount(obj_ptr: *mut sys::godot_object, id: GodotString, blend: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).blend4_node_set_amount;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&blend) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_blend4_node_get_amount(obj_ptr: *mut sys::godot_object, id: GodotString) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).blend4_node_get_amount;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_timescale_node_set_scale(obj_ptr: *mut sys::godot_object, id: GodotString, scale: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).timescale_node_set_scale;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&scale) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_timescale_node_get_scale(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).timescale_node_get_scale;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_timeseek_node_seek(obj_ptr: *mut sys::godot_object, id: GodotString, seconds: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).timeseek_node_seek;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&seconds) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_set_input_count(obj_ptr: *mut sys::godot_object, id: GodotString, count: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_set_input_count;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&count) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_get_input_count(obj_ptr: *mut sys::godot_object, id: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_get_input_count;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_delete_input(obj_ptr: *mut sys::godot_object, id: GodotString, input_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_delete_input;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&input_idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_set_input_auto_advance(obj_ptr: *mut sys::godot_object, id: GodotString, input_idx: i64, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_set_input_auto_advance;
let mut argument_buffer : [*const libc::c_void; 3] = [
id.sys() as *const _ as *const _,
(&input_idx) as *const _ as *const _,
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_has_input_auto_advance(obj_ptr: *mut sys::godot_object, id: GodotString, input_idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_has_input_auto_advance;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&input_idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_set_xfade_time(obj_ptr: *mut sys::godot_object, id: GodotString, time_sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_set_xfade_time;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&time_sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_get_xfade_time(obj_ptr: *mut sys::godot_object, id: GodotString) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_get_xfade_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_set_current(obj_ptr: *mut sys::godot_object, id: GodotString, input_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_set_current;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&input_idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_transition_node_get_current(obj_ptr: *mut sys::godot_object, id: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).transition_node_get_current;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_node_set_position(obj_ptr: *mut sys::godot_object, id: GodotString, screen_position: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).node_set_position;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&screen_position) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_node_get_position(obj_ptr: *mut sys::godot_object, id: GodotString) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).node_get_position;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_remove_node(obj_ptr: *mut sys::godot_object, id: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).remove_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
id.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_connect_nodes(obj_ptr: *mut sys::godot_object, id: GodotString, dst_id: GodotString, dst_input_idx: i64) -> GodotResult {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).connect_nodes;
let mut argument_buffer : [*const libc::c_void; 3] = [
id.sys() as *const _ as *const _,
dst_id.sys() as *const _ as *const _,
(&dst_input_idx) as *const _ as *const _,
];
let mut ret: sys::godot_error = sys::godot_error_GODOT_OK;
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
result_from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_are_nodes_connected(obj_ptr: *mut sys::godot_object, id: GodotString, dst_id: GodotString, dst_input_idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).are_nodes_connected;
let mut argument_buffer : [*const libc::c_void; 3] = [
id.sys() as *const _ as *const _,
dst_id.sys() as *const _ as *const _,
(&dst_input_idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_disconnect_nodes(obj_ptr: *mut sys::godot_object, id: GodotString, dst_input_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).disconnect_nodes;
let mut argument_buffer : [*const libc::c_void; 2] = [
id.sys() as *const _ as *const _,
(&dst_input_idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_set_active(obj_ptr: *mut sys::godot_object, enabled: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).set_active;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enabled) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_is_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).is_active;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_set_base_path(obj_ptr: *mut sys::godot_object, path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).set_base_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_get_base_path(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).get_base_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_set_master_player(obj_ptr: *mut sys::godot_object, nodepath: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).set_master_player;
let mut argument_buffer : [*const libc::c_void; 1] = [
nodepath.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_get_master_player(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).get_master_player;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_get_node_list(obj_ptr: *mut sys::godot_object) -> StringArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).get_node_list;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_string_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
StringArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_set_animation_process_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).set_animation_process_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_get_animation_process_mode(obj_ptr: *mut sys::godot_object) -> AnimationTreePlayerAnimationProcessMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).get_animation_process_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AnimationTreePlayerAnimationProcessMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_advance(obj_ptr: *mut sys::godot_object, delta: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).advance;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&delta) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_reset(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).reset;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTreePlayer_recompute_caches(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreePlayerMethodTable::get(gd_api).recompute_caches;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct Skeleton2DMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _update_bone_setup: *mut sys::godot_method_bind,
pub _update_transform: *mut sys::godot_method_bind,
pub get_bone_count: *mut sys::godot_method_bind,
pub get_bone: *mut sys::godot_method_bind,
pub get_skeleton: *mut sys::godot_method_bind,
}
impl Skeleton2DMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: Skeleton2DMethodTable = Skeleton2DMethodTable {
class_constructor: None,
_update_bone_setup: 0 as *mut sys::godot_method_bind,
_update_transform: 0 as *mut sys::godot_method_bind,
get_bone_count: 0 as *mut sys::godot_method_bind,
get_bone: 0 as *mut sys::godot_method_bind,
get_skeleton: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
Skeleton2DMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"Skeleton2D\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._update_bone_setup = (gd_api.godot_method_bind_get_method)(class_name, "_update_bone_setup\0".as_ptr() as *const c_char );
table._update_transform = (gd_api.godot_method_bind_get_method)(class_name, "_update_transform\0".as_ptr() as *const c_char );
table.get_bone_count = (gd_api.godot_method_bind_get_method)(class_name, "get_bone_count\0".as_ptr() as *const c_char );
table.get_bone = (gd_api.godot_method_bind_get_method)(class_name, "get_bone\0".as_ptr() as *const c_char );
table.get_skeleton = (gd_api.godot_method_bind_get_method)(class_name, "get_skeleton\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn Skeleton2D__update_bone_setup(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Skeleton2DMethodTable::get(gd_api)._update_bone_setup;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton2D__update_transform(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Skeleton2DMethodTable::get(gd_api)._update_transform;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Skeleton2D_get_bone_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Skeleton2DMethodTable::get(gd_api).get_bone_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Skeleton2D_get_bone(obj_ptr: *mut sys::godot_object, arg0: i64) -> Option<Bone2D> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Skeleton2DMethodTable::get(gd_api).get_bone;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Bone2D::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn Skeleton2D_get_skeleton(obj_ptr: *mut sys::godot_object) -> Rid {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Skeleton2DMethodTable::get(gd_api).get_skeleton;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
let mut rid = Rid::default();
(gd_api.godot_rid_new_with_resource)(rid.mut_sys(), ret);
rid
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct Bone2DMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_rest: *mut sys::godot_method_bind,
pub get_rest: *mut sys::godot_method_bind,
pub apply_rest: *mut sys::godot_method_bind,
pub get_skeleton_rest: *mut sys::godot_method_bind,
pub get_index_in_skeleton: *mut sys::godot_method_bind,
pub set_default_length: *mut sys::godot_method_bind,
pub get_default_length: *mut sys::godot_method_bind,
}
impl Bone2DMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: Bone2DMethodTable = Bone2DMethodTable {
class_constructor: None,
set_rest: 0 as *mut sys::godot_method_bind,
get_rest: 0 as *mut sys::godot_method_bind,
apply_rest: 0 as *mut sys::godot_method_bind,
get_skeleton_rest: 0 as *mut sys::godot_method_bind,
get_index_in_skeleton: 0 as *mut sys::godot_method_bind,
set_default_length: 0 as *mut sys::godot_method_bind,
get_default_length: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
Bone2DMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"Bone2D\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_rest = (gd_api.godot_method_bind_get_method)(class_name, "set_rest\0".as_ptr() as *const c_char );
table.get_rest = (gd_api.godot_method_bind_get_method)(class_name, "get_rest\0".as_ptr() as *const c_char );
table.apply_rest = (gd_api.godot_method_bind_get_method)(class_name, "apply_rest\0".as_ptr() as *const c_char );
table.get_skeleton_rest = (gd_api.godot_method_bind_get_method)(class_name, "get_skeleton_rest\0".as_ptr() as *const c_char );
table.get_index_in_skeleton = (gd_api.godot_method_bind_get_method)(class_name, "get_index_in_skeleton\0".as_ptr() as *const c_char );
table.set_default_length = (gd_api.godot_method_bind_get_method)(class_name, "set_default_length\0".as_ptr() as *const c_char );
table.get_default_length = (gd_api.godot_method_bind_get_method)(class_name, "get_default_length\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn Bone2D_set_rest(obj_ptr: *mut sys::godot_object, rest: Transform2D) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Bone2DMethodTable::get(gd_api).set_rest;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&rest) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Bone2D_get_rest(obj_ptr: *mut sys::godot_object) -> Transform2D {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Bone2DMethodTable::get(gd_api).get_rest;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_transform2d::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Bone2D_apply_rest(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Bone2DMethodTable::get(gd_api).apply_rest;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Bone2D_get_skeleton_rest(obj_ptr: *mut sys::godot_object) -> Transform2D {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Bone2DMethodTable::get(gd_api).get_skeleton_rest;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_transform2d::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Bone2D_get_index_in_skeleton(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Bone2DMethodTable::get(gd_api).get_index_in_skeleton;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Bone2D_set_default_length(obj_ptr: *mut sys::godot_object, default_length: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Bone2DMethodTable::get(gd_api).set_default_length;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&default_length) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Bone2D_get_default_length(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = Bone2DMethodTable::get(gd_api).get_default_length;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationTreeMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_active: *mut sys::godot_method_bind,
pub is_active: *mut sys::godot_method_bind,
pub set_tree_root: *mut sys::godot_method_bind,
pub get_tree_root: *mut sys::godot_method_bind,
pub set_process_mode: *mut sys::godot_method_bind,
pub get_process_mode: *mut sys::godot_method_bind,
pub set_animation_player: *mut sys::godot_method_bind,
pub get_animation_player: *mut sys::godot_method_bind,
pub set_root_motion_track: *mut sys::godot_method_bind,
pub get_root_motion_track: *mut sys::godot_method_bind,
pub get_root_motion_transform: *mut sys::godot_method_bind,
pub _node_removed: *mut sys::godot_method_bind,
}
impl AnimationTreeMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationTreeMethodTable = AnimationTreeMethodTable {
class_constructor: None,
set_active: 0 as *mut sys::godot_method_bind,
is_active: 0 as *mut sys::godot_method_bind,
set_tree_root: 0 as *mut sys::godot_method_bind,
get_tree_root: 0 as *mut sys::godot_method_bind,
set_process_mode: 0 as *mut sys::godot_method_bind,
get_process_mode: 0 as *mut sys::godot_method_bind,
set_animation_player: 0 as *mut sys::godot_method_bind,
get_animation_player: 0 as *mut sys::godot_method_bind,
set_root_motion_track: 0 as *mut sys::godot_method_bind,
get_root_motion_track: 0 as *mut sys::godot_method_bind,
get_root_motion_transform: 0 as *mut sys::godot_method_bind,
_node_removed: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationTreeMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationTree\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_active = (gd_api.godot_method_bind_get_method)(class_name, "set_active\0".as_ptr() as *const c_char );
table.is_active = (gd_api.godot_method_bind_get_method)(class_name, "is_active\0".as_ptr() as *const c_char );
table.set_tree_root = (gd_api.godot_method_bind_get_method)(class_name, "set_tree_root\0".as_ptr() as *const c_char );
table.get_tree_root = (gd_api.godot_method_bind_get_method)(class_name, "get_tree_root\0".as_ptr() as *const c_char );
table.set_process_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_process_mode\0".as_ptr() as *const c_char );
table.get_process_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_process_mode\0".as_ptr() as *const c_char );
table.set_animation_player = (gd_api.godot_method_bind_get_method)(class_name, "set_animation_player\0".as_ptr() as *const c_char );
table.get_animation_player = (gd_api.godot_method_bind_get_method)(class_name, "get_animation_player\0".as_ptr() as *const c_char );
table.set_root_motion_track = (gd_api.godot_method_bind_get_method)(class_name, "set_root_motion_track\0".as_ptr() as *const c_char );
table.get_root_motion_track = (gd_api.godot_method_bind_get_method)(class_name, "get_root_motion_track\0".as_ptr() as *const c_char );
table.get_root_motion_transform = (gd_api.godot_method_bind_get_method)(class_name, "get_root_motion_transform\0".as_ptr() as *const c_char );
table._node_removed = (gd_api.godot_method_bind_get_method)(class_name, "_node_removed\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationTree_set_active(obj_ptr: *mut sys::godot_object, active: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).set_active;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&active) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTree_is_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).is_active;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTree_set_tree_root(obj_ptr: *mut sys::godot_object, root: Option<AnimationNode>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).set_tree_root;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = root { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTree_get_tree_root(obj_ptr: *mut sys::godot_object) -> Option<AnimationNode> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).get_tree_root;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AnimationNode::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationTree_set_process_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).set_process_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTree_get_process_mode(obj_ptr: *mut sys::godot_object) -> AnimationTreeAnimationProcessMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).get_process_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AnimationTreeAnimationProcessMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationTree_set_animation_player(obj_ptr: *mut sys::godot_object, root: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).set_animation_player;
let mut argument_buffer : [*const libc::c_void; 1] = [
root.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTree_get_animation_player(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).get_animation_player;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTree_set_root_motion_track(obj_ptr: *mut sys::godot_object, path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).set_root_motion_track;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationTree_get_root_motion_track(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).get_root_motion_track;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTree_get_root_motion_transform(obj_ptr: *mut sys::godot_object) -> Transform {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api).get_root_motion_transform;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_transform::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationTree__node_removed(obj_ptr: *mut sys::godot_object, arg0: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationTreeMethodTable::get(gd_api)._node_removed;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeBlendTreeMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub add_node: *mut sys::godot_method_bind,
pub get_node: *mut sys::godot_method_bind,
pub remove_node: *mut sys::godot_method_bind,
pub rename_node: *mut sys::godot_method_bind,
pub has_node: *mut sys::godot_method_bind,
pub connect_node: *mut sys::godot_method_bind,
pub disconnect_node: *mut sys::godot_method_bind,
pub set_graph_offset: *mut sys::godot_method_bind,
pub get_graph_offset: *mut sys::godot_method_bind,
}
impl AnimationNodeBlendTreeMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeBlendTreeMethodTable = AnimationNodeBlendTreeMethodTable {
class_constructor: None,
add_node: 0 as *mut sys::godot_method_bind,
get_node: 0 as *mut sys::godot_method_bind,
remove_node: 0 as *mut sys::godot_method_bind,
rename_node: 0 as *mut sys::godot_method_bind,
has_node: 0 as *mut sys::godot_method_bind,
connect_node: 0 as *mut sys::godot_method_bind,
disconnect_node: 0 as *mut sys::godot_method_bind,
set_graph_offset: 0 as *mut sys::godot_method_bind,
get_graph_offset: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeBlendTreeMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeBlendTree\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.add_node = (gd_api.godot_method_bind_get_method)(class_name, "add_node\0".as_ptr() as *const c_char );
table.get_node = (gd_api.godot_method_bind_get_method)(class_name, "get_node\0".as_ptr() as *const c_char );
table.remove_node = (gd_api.godot_method_bind_get_method)(class_name, "remove_node\0".as_ptr() as *const c_char );
table.rename_node = (gd_api.godot_method_bind_get_method)(class_name, "rename_node\0".as_ptr() as *const c_char );
table.has_node = (gd_api.godot_method_bind_get_method)(class_name, "has_node\0".as_ptr() as *const c_char );
table.connect_node = (gd_api.godot_method_bind_get_method)(class_name, "connect_node\0".as_ptr() as *const c_char );
table.disconnect_node = (gd_api.godot_method_bind_get_method)(class_name, "disconnect_node\0".as_ptr() as *const c_char );
table.set_graph_offset = (gd_api.godot_method_bind_get_method)(class_name, "set_graph_offset\0".as_ptr() as *const c_char );
table.get_graph_offset = (gd_api.godot_method_bind_get_method)(class_name, "get_graph_offset\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_add_node(obj_ptr: *mut sys::godot_object, name: GodotString, node: Option<AnimationNode>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).add_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_get_node(obj_ptr: *mut sys::godot_object, name: GodotString) -> Option<AnimationNode> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).get_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AnimationNode::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_remove_node(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).remove_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_rename_node(obj_ptr: *mut sys::godot_object, name: GodotString, new_name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).rename_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
new_name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_has_node(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).has_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_connect_node(obj_ptr: *mut sys::godot_object, input_node: GodotString, input_index: i64, output_node: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).connect_node;
let mut argument_buffer : [*const libc::c_void; 3] = [
input_node.sys() as *const _ as *const _,
(&input_index) as *const _ as *const _,
output_node.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_disconnect_node(obj_ptr: *mut sys::godot_object, input_node: GodotString, input_index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).disconnect_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
input_node.sys() as *const _ as *const _,
(&input_index) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_set_graph_offset(obj_ptr: *mut sys::godot_object, offset: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).set_graph_offset;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&offset) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendTree_get_graph_offset(obj_ptr: *mut sys::godot_object) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendTreeMethodTable::get(gd_api).get_graph_offset;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationRootNodeMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AnimationRootNodeMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationRootNodeMethodTable = AnimationRootNodeMethodTable {
class_constructor: None,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationRootNodeMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationRootNode\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub process: *mut sys::godot_method_bind,
pub get_caption: *mut sys::godot_method_bind,
pub has_filter: *mut sys::godot_method_bind,
pub _parent_set: *mut sys::godot_method_bind,
pub get_input_count: *mut sys::godot_method_bind,
pub get_input_name: *mut sys::godot_method_bind,
pub get_input_connection: *mut sys::godot_method_bind,
pub get_input_activity: *mut sys::godot_method_bind,
pub add_input: *mut sys::godot_method_bind,
pub remove_input: *mut sys::godot_method_bind,
pub set_filter_path: *mut sys::godot_method_bind,
pub is_path_filtered: *mut sys::godot_method_bind,
pub set_filter_enabled: *mut sys::godot_method_bind,
pub is_filter_enabled: *mut sys::godot_method_bind,
pub set_position: *mut sys::godot_method_bind,
pub get_position: *mut sys::godot_method_bind,
pub _set_filters: *mut sys::godot_method_bind,
pub _get_filters: *mut sys::godot_method_bind,
pub blend_animation: *mut sys::godot_method_bind,
pub blend_node: *mut sys::godot_method_bind,
pub blend_input: *mut sys::godot_method_bind,
pub set_parent: *mut sys::godot_method_bind,
pub get_parent: *mut sys::godot_method_bind,
pub get_tree: *mut sys::godot_method_bind,
}
impl AnimationNodeMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeMethodTable = AnimationNodeMethodTable {
class_constructor: None,
process: 0 as *mut sys::godot_method_bind,
get_caption: 0 as *mut sys::godot_method_bind,
has_filter: 0 as *mut sys::godot_method_bind,
_parent_set: 0 as *mut sys::godot_method_bind,
get_input_count: 0 as *mut sys::godot_method_bind,
get_input_name: 0 as *mut sys::godot_method_bind,
get_input_connection: 0 as *mut sys::godot_method_bind,
get_input_activity: 0 as *mut sys::godot_method_bind,
add_input: 0 as *mut sys::godot_method_bind,
remove_input: 0 as *mut sys::godot_method_bind,
set_filter_path: 0 as *mut sys::godot_method_bind,
is_path_filtered: 0 as *mut sys::godot_method_bind,
set_filter_enabled: 0 as *mut sys::godot_method_bind,
is_filter_enabled: 0 as *mut sys::godot_method_bind,
set_position: 0 as *mut sys::godot_method_bind,
get_position: 0 as *mut sys::godot_method_bind,
_set_filters: 0 as *mut sys::godot_method_bind,
_get_filters: 0 as *mut sys::godot_method_bind,
blend_animation: 0 as *mut sys::godot_method_bind,
blend_node: 0 as *mut sys::godot_method_bind,
blend_input: 0 as *mut sys::godot_method_bind,
set_parent: 0 as *mut sys::godot_method_bind,
get_parent: 0 as *mut sys::godot_method_bind,
get_tree: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNode\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.process = (gd_api.godot_method_bind_get_method)(class_name, "process\0".as_ptr() as *const c_char );
table.get_caption = (gd_api.godot_method_bind_get_method)(class_name, "get_caption\0".as_ptr() as *const c_char );
table.has_filter = (gd_api.godot_method_bind_get_method)(class_name, "has_filter\0".as_ptr() as *const c_char );
table._parent_set = (gd_api.godot_method_bind_get_method)(class_name, "_parent_set\0".as_ptr() as *const c_char );
table.get_input_count = (gd_api.godot_method_bind_get_method)(class_name, "get_input_count\0".as_ptr() as *const c_char );
table.get_input_name = (gd_api.godot_method_bind_get_method)(class_name, "get_input_name\0".as_ptr() as *const c_char );
table.get_input_connection = (gd_api.godot_method_bind_get_method)(class_name, "get_input_connection\0".as_ptr() as *const c_char );
table.get_input_activity = (gd_api.godot_method_bind_get_method)(class_name, "get_input_activity\0".as_ptr() as *const c_char );
table.add_input = (gd_api.godot_method_bind_get_method)(class_name, "add_input\0".as_ptr() as *const c_char );
table.remove_input = (gd_api.godot_method_bind_get_method)(class_name, "remove_input\0".as_ptr() as *const c_char );
table.set_filter_path = (gd_api.godot_method_bind_get_method)(class_name, "set_filter_path\0".as_ptr() as *const c_char );
table.is_path_filtered = (gd_api.godot_method_bind_get_method)(class_name, "is_path_filtered\0".as_ptr() as *const c_char );
table.set_filter_enabled = (gd_api.godot_method_bind_get_method)(class_name, "set_filter_enabled\0".as_ptr() as *const c_char );
table.is_filter_enabled = (gd_api.godot_method_bind_get_method)(class_name, "is_filter_enabled\0".as_ptr() as *const c_char );
table.set_position = (gd_api.godot_method_bind_get_method)(class_name, "set_position\0".as_ptr() as *const c_char );
table.get_position = (gd_api.godot_method_bind_get_method)(class_name, "get_position\0".as_ptr() as *const c_char );
table._set_filters = (gd_api.godot_method_bind_get_method)(class_name, "_set_filters\0".as_ptr() as *const c_char );
table._get_filters = (gd_api.godot_method_bind_get_method)(class_name, "_get_filters\0".as_ptr() as *const c_char );
table.blend_animation = (gd_api.godot_method_bind_get_method)(class_name, "blend_animation\0".as_ptr() as *const c_char );
table.blend_node = (gd_api.godot_method_bind_get_method)(class_name, "blend_node\0".as_ptr() as *const c_char );
table.blend_input = (gd_api.godot_method_bind_get_method)(class_name, "blend_input\0".as_ptr() as *const c_char );
table.set_parent = (gd_api.godot_method_bind_get_method)(class_name, "set_parent\0".as_ptr() as *const c_char );
table.get_parent = (gd_api.godot_method_bind_get_method)(class_name, "get_parent\0".as_ptr() as *const c_char );
table.get_tree = (gd_api.godot_method_bind_get_method)(class_name, "get_tree\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNode_process(obj_ptr: *mut sys::godot_object, time: f64, seek: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).process;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&time) as *const _ as *const _,
(&seek) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_get_caption(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).get_caption;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNode_has_filter(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).has_filter;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNode__parent_set(obj_ptr: *mut sys::godot_object, parent: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api)._parent_set;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = parent { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_get_input_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).get_input_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNode_get_input_name(obj_ptr: *mut sys::godot_object, input: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).get_input_name;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&input) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNode_get_input_connection(obj_ptr: *mut sys::godot_object, input: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).get_input_connection;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&input) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNode_get_input_activity(obj_ptr: *mut sys::godot_object, input: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).get_input_activity;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&input) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNode_add_input(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).add_input;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_remove_input(obj_ptr: *mut sys::godot_object, index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).remove_input;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&index) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_set_filter_path(obj_ptr: *mut sys::godot_object, path: NodePath, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).set_filter_path;
let mut argument_buffer : [*const libc::c_void; 2] = [
path.sys() as *const _ as *const _,
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_is_path_filtered(obj_ptr: *mut sys::godot_object, path: NodePath) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).is_path_filtered;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNode_set_filter_enabled(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).set_filter_enabled;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_is_filter_enabled(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).is_filter_enabled;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNode_set_position(obj_ptr: *mut sys::godot_object, position: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).set_position;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&position) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_get_position(obj_ptr: *mut sys::godot_object) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).get_position;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNode__set_filters(obj_ptr: *mut sys::godot_object, filters: VariantArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api)._set_filters;
let mut argument_buffer : [*const libc::c_void; 1] = [
filters.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode__get_filters(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api)._get_filters;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNode_blend_animation(obj_ptr: *mut sys::godot_object, animation: GodotString, time: f64, delta: f64, seeked: bool, blend: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).blend_animation;
let mut argument_buffer : [*const libc::c_void; 5] = [
animation.sys() as *const _ as *const _,
(&time) as *const _ as *const _,
(&delta) as *const _ as *const _,
(&seeked) as *const _ as *const _,
(&blend) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_blend_node(obj_ptr: *mut sys::godot_object, node: Option<AnimationNode>, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).blend_node;
let mut argument_buffer : [*const libc::c_void; 6] = [
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
(&time) as *const _ as *const _,
(&seek) as *const _ as *const _,
(&blend) as *const _ as *const _,
(&filter) as *const _ as *const _,
(&optimize) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNode_blend_input(obj_ptr: *mut sys::godot_object, input_index: i64, time: f64, seek: bool, blend: f64, filter: i64, optimize: bool) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).blend_input;
let mut argument_buffer : [*const libc::c_void; 6] = [
(&input_index) as *const _ as *const _,
(&time) as *const _ as *const _,
(&seek) as *const _ as *const _,
(&blend) as *const _ as *const _,
(&filter) as *const _ as *const _,
(&optimize) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNode_set_parent(obj_ptr: *mut sys::godot_object, parent: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).set_parent;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = parent { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNode_get_parent(obj_ptr: *mut sys::godot_object) -> Option<AnimationNode> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).get_parent;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AnimationNode::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationNode_get_tree(obj_ptr: *mut sys::godot_object) -> Option<AnimationTree> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeMethodTable::get(gd_api).get_tree;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AnimationTree::from_sys(ret))
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeBlendSpace1DMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub add_blend_point: *mut sys::godot_method_bind,
pub set_blend_point_position: *mut sys::godot_method_bind,
pub get_blend_point_position: *mut sys::godot_method_bind,
pub set_blend_point_node: *mut sys::godot_method_bind,
pub get_blend_point_node: *mut sys::godot_method_bind,
pub remove_blend_point: *mut sys::godot_method_bind,
pub get_blend_point_count: *mut sys::godot_method_bind,
pub set_min_space: *mut sys::godot_method_bind,
pub get_min_space: *mut sys::godot_method_bind,
pub set_max_space: *mut sys::godot_method_bind,
pub get_max_space: *mut sys::godot_method_bind,
pub set_snap: *mut sys::godot_method_bind,
pub get_snap: *mut sys::godot_method_bind,
pub set_blend_pos: *mut sys::godot_method_bind,
pub get_blend_pos: *mut sys::godot_method_bind,
pub set_value_label: *mut sys::godot_method_bind,
pub get_value_label: *mut sys::godot_method_bind,
pub _add_blend_point: *mut sys::godot_method_bind,
}
impl AnimationNodeBlendSpace1DMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeBlendSpace1DMethodTable = AnimationNodeBlendSpace1DMethodTable {
class_constructor: None,
add_blend_point: 0 as *mut sys::godot_method_bind,
set_blend_point_position: 0 as *mut sys::godot_method_bind,
get_blend_point_position: 0 as *mut sys::godot_method_bind,
set_blend_point_node: 0 as *mut sys::godot_method_bind,
get_blend_point_node: 0 as *mut sys::godot_method_bind,
remove_blend_point: 0 as *mut sys::godot_method_bind,
get_blend_point_count: 0 as *mut sys::godot_method_bind,
set_min_space: 0 as *mut sys::godot_method_bind,
get_min_space: 0 as *mut sys::godot_method_bind,
set_max_space: 0 as *mut sys::godot_method_bind,
get_max_space: 0 as *mut sys::godot_method_bind,
set_snap: 0 as *mut sys::godot_method_bind,
get_snap: 0 as *mut sys::godot_method_bind,
set_blend_pos: 0 as *mut sys::godot_method_bind,
get_blend_pos: 0 as *mut sys::godot_method_bind,
set_value_label: 0 as *mut sys::godot_method_bind,
get_value_label: 0 as *mut sys::godot_method_bind,
_add_blend_point: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeBlendSpace1DMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeBlendSpace1D\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.add_blend_point = (gd_api.godot_method_bind_get_method)(class_name, "add_blend_point\0".as_ptr() as *const c_char );
table.set_blend_point_position = (gd_api.godot_method_bind_get_method)(class_name, "set_blend_point_position\0".as_ptr() as *const c_char );
table.get_blend_point_position = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_point_position\0".as_ptr() as *const c_char );
table.set_blend_point_node = (gd_api.godot_method_bind_get_method)(class_name, "set_blend_point_node\0".as_ptr() as *const c_char );
table.get_blend_point_node = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_point_node\0".as_ptr() as *const c_char );
table.remove_blend_point = (gd_api.godot_method_bind_get_method)(class_name, "remove_blend_point\0".as_ptr() as *const c_char );
table.get_blend_point_count = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_point_count\0".as_ptr() as *const c_char );
table.set_min_space = (gd_api.godot_method_bind_get_method)(class_name, "set_min_space\0".as_ptr() as *const c_char );
table.get_min_space = (gd_api.godot_method_bind_get_method)(class_name, "get_min_space\0".as_ptr() as *const c_char );
table.set_max_space = (gd_api.godot_method_bind_get_method)(class_name, "set_max_space\0".as_ptr() as *const c_char );
table.get_max_space = (gd_api.godot_method_bind_get_method)(class_name, "get_max_space\0".as_ptr() as *const c_char );
table.set_snap = (gd_api.godot_method_bind_get_method)(class_name, "set_snap\0".as_ptr() as *const c_char );
table.get_snap = (gd_api.godot_method_bind_get_method)(class_name, "get_snap\0".as_ptr() as *const c_char );
table.set_blend_pos = (gd_api.godot_method_bind_get_method)(class_name, "set_blend_pos\0".as_ptr() as *const c_char );
table.get_blend_pos = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_pos\0".as_ptr() as *const c_char );
table.set_value_label = (gd_api.godot_method_bind_get_method)(class_name, "set_value_label\0".as_ptr() as *const c_char );
table.get_value_label = (gd_api.godot_method_bind_get_method)(class_name, "get_value_label\0".as_ptr() as *const c_char );
table._add_blend_point = (gd_api.godot_method_bind_get_method)(class_name, "_add_blend_point\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_add_blend_point(obj_ptr: *mut sys::godot_object, node: Option<AnimationRootNode>, pos: f64, at_index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).add_blend_point;
let mut argument_buffer : [*const libc::c_void; 3] = [
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
(&pos) as *const _ as *const _,
(&at_index) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_set_blend_point_position(obj_ptr: *mut sys::godot_object, point: i64, pos: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).set_blend_point_position;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&point) as *const _ as *const _,
(&pos) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_get_blend_point_position(obj_ptr: *mut sys::godot_object, point: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).get_blend_point_position;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&point) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_set_blend_point_node(obj_ptr: *mut sys::godot_object, point: i64, node: Option<AnimationRootNode>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).set_blend_point_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&point) as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_get_blend_point_node(obj_ptr: *mut sys::godot_object, point: i64) -> Option<AnimationRootNode> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).get_blend_point_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&point) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AnimationRootNode::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_remove_blend_point(obj_ptr: *mut sys::godot_object, point: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).remove_blend_point;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&point) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_get_blend_point_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).get_blend_point_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_set_min_space(obj_ptr: *mut sys::godot_object, min_space: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).set_min_space;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&min_space) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_get_min_space(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).get_min_space;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_set_max_space(obj_ptr: *mut sys::godot_object, max_space: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).set_max_space;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&max_space) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_get_max_space(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).get_max_space;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_set_snap(obj_ptr: *mut sys::godot_object, snap: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).set_snap;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&snap) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_get_snap(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).get_snap;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_set_blend_pos(obj_ptr: *mut sys::godot_object, pos: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).set_blend_pos;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pos) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_get_blend_pos(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).get_blend_pos;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_set_value_label(obj_ptr: *mut sys::godot_object, text: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).set_value_label;
let mut argument_buffer : [*const libc::c_void; 1] = [
text.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D_get_value_label(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api).get_value_label;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace1D__add_blend_point(obj_ptr: *mut sys::godot_object, index: i64, node: Option<AnimationRootNode>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace1DMethodTable::get(gd_api)._add_blend_point;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&index) as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeBlendSpace2DMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub add_blend_point: *mut sys::godot_method_bind,
pub set_blend_point_position: *mut sys::godot_method_bind,
pub get_blend_point_position: *mut sys::godot_method_bind,
pub set_blend_point_node: *mut sys::godot_method_bind,
pub get_blend_point_node: *mut sys::godot_method_bind,
pub remove_blend_point: *mut sys::godot_method_bind,
pub get_blend_point_count: *mut sys::godot_method_bind,
pub add_triangle: *mut sys::godot_method_bind,
pub get_triangle_point: *mut sys::godot_method_bind,
pub remove_triangle: *mut sys::godot_method_bind,
pub get_triangle_count: *mut sys::godot_method_bind,
pub set_min_space: *mut sys::godot_method_bind,
pub get_min_space: *mut sys::godot_method_bind,
pub set_max_space: *mut sys::godot_method_bind,
pub get_max_space: *mut sys::godot_method_bind,
pub set_snap: *mut sys::godot_method_bind,
pub get_snap: *mut sys::godot_method_bind,
pub set_blend_position: *mut sys::godot_method_bind,
pub get_blend_position: *mut sys::godot_method_bind,
pub set_x_label: *mut sys::godot_method_bind,
pub get_x_label: *mut sys::godot_method_bind,
pub set_y_label: *mut sys::godot_method_bind,
pub get_y_label: *mut sys::godot_method_bind,
pub _add_blend_point: *mut sys::godot_method_bind,
pub _set_triangles: *mut sys::godot_method_bind,
pub _get_triangles: *mut sys::godot_method_bind,
pub set_auto_triangles: *mut sys::godot_method_bind,
pub get_auto_triangles: *mut sys::godot_method_bind,
}
impl AnimationNodeBlendSpace2DMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeBlendSpace2DMethodTable = AnimationNodeBlendSpace2DMethodTable {
class_constructor: None,
add_blend_point: 0 as *mut sys::godot_method_bind,
set_blend_point_position: 0 as *mut sys::godot_method_bind,
get_blend_point_position: 0 as *mut sys::godot_method_bind,
set_blend_point_node: 0 as *mut sys::godot_method_bind,
get_blend_point_node: 0 as *mut sys::godot_method_bind,
remove_blend_point: 0 as *mut sys::godot_method_bind,
get_blend_point_count: 0 as *mut sys::godot_method_bind,
add_triangle: 0 as *mut sys::godot_method_bind,
get_triangle_point: 0 as *mut sys::godot_method_bind,
remove_triangle: 0 as *mut sys::godot_method_bind,
get_triangle_count: 0 as *mut sys::godot_method_bind,
set_min_space: 0 as *mut sys::godot_method_bind,
get_min_space: 0 as *mut sys::godot_method_bind,
set_max_space: 0 as *mut sys::godot_method_bind,
get_max_space: 0 as *mut sys::godot_method_bind,
set_snap: 0 as *mut sys::godot_method_bind,
get_snap: 0 as *mut sys::godot_method_bind,
set_blend_position: 0 as *mut sys::godot_method_bind,
get_blend_position: 0 as *mut sys::godot_method_bind,
set_x_label: 0 as *mut sys::godot_method_bind,
get_x_label: 0 as *mut sys::godot_method_bind,
set_y_label: 0 as *mut sys::godot_method_bind,
get_y_label: 0 as *mut sys::godot_method_bind,
_add_blend_point: 0 as *mut sys::godot_method_bind,
_set_triangles: 0 as *mut sys::godot_method_bind,
_get_triangles: 0 as *mut sys::godot_method_bind,
set_auto_triangles: 0 as *mut sys::godot_method_bind,
get_auto_triangles: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeBlendSpace2DMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeBlendSpace2D\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.add_blend_point = (gd_api.godot_method_bind_get_method)(class_name, "add_blend_point\0".as_ptr() as *const c_char );
table.set_blend_point_position = (gd_api.godot_method_bind_get_method)(class_name, "set_blend_point_position\0".as_ptr() as *const c_char );
table.get_blend_point_position = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_point_position\0".as_ptr() as *const c_char );
table.set_blend_point_node = (gd_api.godot_method_bind_get_method)(class_name, "set_blend_point_node\0".as_ptr() as *const c_char );
table.get_blend_point_node = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_point_node\0".as_ptr() as *const c_char );
table.remove_blend_point = (gd_api.godot_method_bind_get_method)(class_name, "remove_blend_point\0".as_ptr() as *const c_char );
table.get_blend_point_count = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_point_count\0".as_ptr() as *const c_char );
table.add_triangle = (gd_api.godot_method_bind_get_method)(class_name, "add_triangle\0".as_ptr() as *const c_char );
table.get_triangle_point = (gd_api.godot_method_bind_get_method)(class_name, "get_triangle_point\0".as_ptr() as *const c_char );
table.remove_triangle = (gd_api.godot_method_bind_get_method)(class_name, "remove_triangle\0".as_ptr() as *const c_char );
table.get_triangle_count = (gd_api.godot_method_bind_get_method)(class_name, "get_triangle_count\0".as_ptr() as *const c_char );
table.set_min_space = (gd_api.godot_method_bind_get_method)(class_name, "set_min_space\0".as_ptr() as *const c_char );
table.get_min_space = (gd_api.godot_method_bind_get_method)(class_name, "get_min_space\0".as_ptr() as *const c_char );
table.set_max_space = (gd_api.godot_method_bind_get_method)(class_name, "set_max_space\0".as_ptr() as *const c_char );
table.get_max_space = (gd_api.godot_method_bind_get_method)(class_name, "get_max_space\0".as_ptr() as *const c_char );
table.set_snap = (gd_api.godot_method_bind_get_method)(class_name, "set_snap\0".as_ptr() as *const c_char );
table.get_snap = (gd_api.godot_method_bind_get_method)(class_name, "get_snap\0".as_ptr() as *const c_char );
table.set_blend_position = (gd_api.godot_method_bind_get_method)(class_name, "set_blend_position\0".as_ptr() as *const c_char );
table.get_blend_position = (gd_api.godot_method_bind_get_method)(class_name, "get_blend_position\0".as_ptr() as *const c_char );
table.set_x_label = (gd_api.godot_method_bind_get_method)(class_name, "set_x_label\0".as_ptr() as *const c_char );
table.get_x_label = (gd_api.godot_method_bind_get_method)(class_name, "get_x_label\0".as_ptr() as *const c_char );
table.set_y_label = (gd_api.godot_method_bind_get_method)(class_name, "set_y_label\0".as_ptr() as *const c_char );
table.get_y_label = (gd_api.godot_method_bind_get_method)(class_name, "get_y_label\0".as_ptr() as *const c_char );
table._add_blend_point = (gd_api.godot_method_bind_get_method)(class_name, "_add_blend_point\0".as_ptr() as *const c_char );
table._set_triangles = (gd_api.godot_method_bind_get_method)(class_name, "_set_triangles\0".as_ptr() as *const c_char );
table._get_triangles = (gd_api.godot_method_bind_get_method)(class_name, "_get_triangles\0".as_ptr() as *const c_char );
table.set_auto_triangles = (gd_api.godot_method_bind_get_method)(class_name, "set_auto_triangles\0".as_ptr() as *const c_char );
table.get_auto_triangles = (gd_api.godot_method_bind_get_method)(class_name, "get_auto_triangles\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_add_blend_point(obj_ptr: *mut sys::godot_object, node: Option<AnimationRootNode>, pos: Vector2, at_index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).add_blend_point;
let mut argument_buffer : [*const libc::c_void; 3] = [
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
(&pos) as *const _ as *const _,
(&at_index) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_blend_point_position(obj_ptr: *mut sys::godot_object, point: i64, pos: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_blend_point_position;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&point) as *const _ as *const _,
(&pos) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_blend_point_position(obj_ptr: *mut sys::godot_object, point: i64) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_blend_point_position;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&point) as *const _ as *const _,
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_blend_point_node(obj_ptr: *mut sys::godot_object, point: i64, node: Option<AnimationRootNode>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_blend_point_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&point) as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_blend_point_node(obj_ptr: *mut sys::godot_object, point: i64) -> Option<AnimationRootNode> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_blend_point_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&point) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AnimationRootNode::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_remove_blend_point(obj_ptr: *mut sys::godot_object, point: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).remove_blend_point;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&point) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_blend_point_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_blend_point_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_add_triangle(obj_ptr: *mut sys::godot_object, x: i64, y: i64, z: i64, at_index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).add_triangle;
let mut argument_buffer : [*const libc::c_void; 4] = [
(&x) as *const _ as *const _,
(&y) as *const _ as *const _,
(&z) as *const _ as *const _,
(&at_index) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_triangle_point(obj_ptr: *mut sys::godot_object, triangle: i64, point: i64) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_triangle_point;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&triangle) as *const _ as *const _,
(&point) as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_remove_triangle(obj_ptr: *mut sys::godot_object, triangle: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).remove_triangle;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&triangle) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_triangle_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_triangle_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_min_space(obj_ptr: *mut sys::godot_object, min_space: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_min_space;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&min_space) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_min_space(obj_ptr: *mut sys::godot_object) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_min_space;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_max_space(obj_ptr: *mut sys::godot_object, max_space: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_max_space;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&max_space) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_max_space(obj_ptr: *mut sys::godot_object) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_max_space;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_snap(obj_ptr: *mut sys::godot_object, snap: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_snap;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&snap) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_snap(obj_ptr: *mut sys::godot_object) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_snap;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_blend_position(obj_ptr: *mut sys::godot_object, pos: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_blend_position;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pos) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_blend_position(obj_ptr: *mut sys::godot_object) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_blend_position;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_x_label(obj_ptr: *mut sys::godot_object, text: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_x_label;
let mut argument_buffer : [*const libc::c_void; 1] = [
text.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_x_label(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_x_label;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_y_label(obj_ptr: *mut sys::godot_object, text: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_y_label;
let mut argument_buffer : [*const libc::c_void; 1] = [
text.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_y_label(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_y_label;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D__add_blend_point(obj_ptr: *mut sys::godot_object, index: i64, node: Option<AnimationRootNode>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api)._add_blend_point;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&index) as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D__set_triangles(obj_ptr: *mut sys::godot_object, triangles: Int32Array) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api)._set_triangles;
let mut argument_buffer : [*const libc::c_void; 1] = [
triangles.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D__get_triangles(obj_ptr: *mut sys::godot_object) -> Int32Array {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api)._get_triangles;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_int_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Int32Array::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_set_auto_triangles(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).set_auto_triangles;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlendSpace2D_get_auto_triangles(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlendSpace2DMethodTable::get(gd_api).get_auto_triangles;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeStateMachineMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub add_node: *mut sys::godot_method_bind,
pub get_node: *mut sys::godot_method_bind,
pub remove_node: *mut sys::godot_method_bind,
pub rename_node: *mut sys::godot_method_bind,
pub has_node: *mut sys::godot_method_bind,
pub get_node_name: *mut sys::godot_method_bind,
pub has_transition: *mut sys::godot_method_bind,
pub add_transition: *mut sys::godot_method_bind,
pub get_transition: *mut sys::godot_method_bind,
pub get_transition_from: *mut sys::godot_method_bind,
pub get_transition_to: *mut sys::godot_method_bind,
pub get_transition_count: *mut sys::godot_method_bind,
pub remove_transition_by_index: *mut sys::godot_method_bind,
pub remove_transition: *mut sys::godot_method_bind,
pub set_start_node: *mut sys::godot_method_bind,
pub get_start_node: *mut sys::godot_method_bind,
pub set_end_node: *mut sys::godot_method_bind,
pub get_end_node: *mut sys::godot_method_bind,
pub set_graph_offset: *mut sys::godot_method_bind,
pub get_graph_offset: *mut sys::godot_method_bind,
pub travel: *mut sys::godot_method_bind,
pub start: *mut sys::godot_method_bind,
pub stop: *mut sys::godot_method_bind,
pub is_playing: *mut sys::godot_method_bind,
pub get_current_node: *mut sys::godot_method_bind,
pub get_travel_path: *mut sys::godot_method_bind,
}
impl AnimationNodeStateMachineMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeStateMachineMethodTable = AnimationNodeStateMachineMethodTable {
class_constructor: None,
add_node: 0 as *mut sys::godot_method_bind,
get_node: 0 as *mut sys::godot_method_bind,
remove_node: 0 as *mut sys::godot_method_bind,
rename_node: 0 as *mut sys::godot_method_bind,
has_node: 0 as *mut sys::godot_method_bind,
get_node_name: 0 as *mut sys::godot_method_bind,
has_transition: 0 as *mut sys::godot_method_bind,
add_transition: 0 as *mut sys::godot_method_bind,
get_transition: 0 as *mut sys::godot_method_bind,
get_transition_from: 0 as *mut sys::godot_method_bind,
get_transition_to: 0 as *mut sys::godot_method_bind,
get_transition_count: 0 as *mut sys::godot_method_bind,
remove_transition_by_index: 0 as *mut sys::godot_method_bind,
remove_transition: 0 as *mut sys::godot_method_bind,
set_start_node: 0 as *mut sys::godot_method_bind,
get_start_node: 0 as *mut sys::godot_method_bind,
set_end_node: 0 as *mut sys::godot_method_bind,
get_end_node: 0 as *mut sys::godot_method_bind,
set_graph_offset: 0 as *mut sys::godot_method_bind,
get_graph_offset: 0 as *mut sys::godot_method_bind,
travel: 0 as *mut sys::godot_method_bind,
start: 0 as *mut sys::godot_method_bind,
stop: 0 as *mut sys::godot_method_bind,
is_playing: 0 as *mut sys::godot_method_bind,
get_current_node: 0 as *mut sys::godot_method_bind,
get_travel_path: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeStateMachineMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeStateMachine\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.add_node = (gd_api.godot_method_bind_get_method)(class_name, "add_node\0".as_ptr() as *const c_char );
table.get_node = (gd_api.godot_method_bind_get_method)(class_name, "get_node\0".as_ptr() as *const c_char );
table.remove_node = (gd_api.godot_method_bind_get_method)(class_name, "remove_node\0".as_ptr() as *const c_char );
table.rename_node = (gd_api.godot_method_bind_get_method)(class_name, "rename_node\0".as_ptr() as *const c_char );
table.has_node = (gd_api.godot_method_bind_get_method)(class_name, "has_node\0".as_ptr() as *const c_char );
table.get_node_name = (gd_api.godot_method_bind_get_method)(class_name, "get_node_name\0".as_ptr() as *const c_char );
table.has_transition = (gd_api.godot_method_bind_get_method)(class_name, "has_transition\0".as_ptr() as *const c_char );
table.add_transition = (gd_api.godot_method_bind_get_method)(class_name, "add_transition\0".as_ptr() as *const c_char );
table.get_transition = (gd_api.godot_method_bind_get_method)(class_name, "get_transition\0".as_ptr() as *const c_char );
table.get_transition_from = (gd_api.godot_method_bind_get_method)(class_name, "get_transition_from\0".as_ptr() as *const c_char );
table.get_transition_to = (gd_api.godot_method_bind_get_method)(class_name, "get_transition_to\0".as_ptr() as *const c_char );
table.get_transition_count = (gd_api.godot_method_bind_get_method)(class_name, "get_transition_count\0".as_ptr() as *const c_char );
table.remove_transition_by_index = (gd_api.godot_method_bind_get_method)(class_name, "remove_transition_by_index\0".as_ptr() as *const c_char );
table.remove_transition = (gd_api.godot_method_bind_get_method)(class_name, "remove_transition\0".as_ptr() as *const c_char );
table.set_start_node = (gd_api.godot_method_bind_get_method)(class_name, "set_start_node\0".as_ptr() as *const c_char );
table.get_start_node = (gd_api.godot_method_bind_get_method)(class_name, "get_start_node\0".as_ptr() as *const c_char );
table.set_end_node = (gd_api.godot_method_bind_get_method)(class_name, "set_end_node\0".as_ptr() as *const c_char );
table.get_end_node = (gd_api.godot_method_bind_get_method)(class_name, "get_end_node\0".as_ptr() as *const c_char );
table.set_graph_offset = (gd_api.godot_method_bind_get_method)(class_name, "set_graph_offset\0".as_ptr() as *const c_char );
table.get_graph_offset = (gd_api.godot_method_bind_get_method)(class_name, "get_graph_offset\0".as_ptr() as *const c_char );
table.travel = (gd_api.godot_method_bind_get_method)(class_name, "travel\0".as_ptr() as *const c_char );
table.start = (gd_api.godot_method_bind_get_method)(class_name, "start\0".as_ptr() as *const c_char );
table.stop = (gd_api.godot_method_bind_get_method)(class_name, "stop\0".as_ptr() as *const c_char );
table.is_playing = (gd_api.godot_method_bind_get_method)(class_name, "is_playing\0".as_ptr() as *const c_char );
table.get_current_node = (gd_api.godot_method_bind_get_method)(class_name, "get_current_node\0".as_ptr() as *const c_char );
table.get_travel_path = (gd_api.godot_method_bind_get_method)(class_name, "get_travel_path\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_add_node(obj_ptr: *mut sys::godot_object, name: GodotString, node: Option<AnimationNode>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).add_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_node(obj_ptr: *mut sys::godot_object, name: GodotString) -> Option<AnimationNode> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AnimationNode::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_remove_node(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).remove_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_rename_node(obj_ptr: *mut sys::godot_object, name: GodotString, new_name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).rename_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
new_name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_has_node(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).has_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_node_name(obj_ptr: *mut sys::godot_object, node: Option<AnimationNode>) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_node_name;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_has_transition(obj_ptr: *mut sys::godot_object, from: GodotString, to: GodotString, arg2: Option<AnimationNodeStateMachineTransition>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).has_transition;
let mut argument_buffer : [*const libc::c_void; 3] = [
from.sys() as *const _ as *const _,
to.sys() as *const _ as *const _,
if let Some(arg) = arg2 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_add_transition(obj_ptr: *mut sys::godot_object, from: GodotString, to: GodotString, transition: Option<AnimationNodeStateMachineTransition>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).add_transition;
let mut argument_buffer : [*const libc::c_void; 3] = [
from.sys() as *const _ as *const _,
to.sys() as *const _ as *const _,
if let Some(arg) = transition { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_transition(obj_ptr: *mut sys::godot_object, idx: i64) -> Option<AnimationNodeStateMachineTransition> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_transition;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AnimationNodeStateMachineTransition::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_transition_from(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_transition_from;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_transition_to(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_transition_to;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_transition_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_transition_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_remove_transition_by_index(obj_ptr: *mut sys::godot_object, idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).remove_transition_by_index;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_remove_transition(obj_ptr: *mut sys::godot_object, from: GodotString, to: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).remove_transition;
let mut argument_buffer : [*const libc::c_void; 2] = [
from.sys() as *const _ as *const _,
to.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_set_start_node(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).set_start_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_start_node(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_start_node;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_set_end_node(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).set_end_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_end_node(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_end_node;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_set_graph_offset(obj_ptr: *mut sys::godot_object, name: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).set_graph_offset;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&name) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_graph_offset(obj_ptr: *mut sys::godot_object) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_graph_offset;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_travel(obj_ptr: *mut sys::godot_object, to_node: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).travel;
let mut argument_buffer : [*const libc::c_void; 1] = [
to_node.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_start(obj_ptr: *mut sys::godot_object, node: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).start;
let mut argument_buffer : [*const libc::c_void; 1] = [
node.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_stop(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).stop;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_is_playing(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).is_playing;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_current_node(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_current_node;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachine_get_travel_path(obj_ptr: *mut sys::godot_object) -> StringArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineMethodTable::get(gd_api).get_travel_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_string_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
StringArray::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeStateMachineTransitionMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_switch_mode: *mut sys::godot_method_bind,
pub get_switch_mode: *mut sys::godot_method_bind,
pub set_auto_advance: *mut sys::godot_method_bind,
pub has_auto_advance: *mut sys::godot_method_bind,
pub set_xfade_time: *mut sys::godot_method_bind,
pub get_xfade_time: *mut sys::godot_method_bind,
pub set_disabled: *mut sys::godot_method_bind,
pub is_disabled: *mut sys::godot_method_bind,
pub set_priority: *mut sys::godot_method_bind,
pub get_priority: *mut sys::godot_method_bind,
}
impl AnimationNodeStateMachineTransitionMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeStateMachineTransitionMethodTable = AnimationNodeStateMachineTransitionMethodTable {
class_constructor: None,
set_switch_mode: 0 as *mut sys::godot_method_bind,
get_switch_mode: 0 as *mut sys::godot_method_bind,
set_auto_advance: 0 as *mut sys::godot_method_bind,
has_auto_advance: 0 as *mut sys::godot_method_bind,
set_xfade_time: 0 as *mut sys::godot_method_bind,
get_xfade_time: 0 as *mut sys::godot_method_bind,
set_disabled: 0 as *mut sys::godot_method_bind,
is_disabled: 0 as *mut sys::godot_method_bind,
set_priority: 0 as *mut sys::godot_method_bind,
get_priority: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeStateMachineTransitionMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeStateMachineTransition\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_switch_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_switch_mode\0".as_ptr() as *const c_char );
table.get_switch_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_switch_mode\0".as_ptr() as *const c_char );
table.set_auto_advance = (gd_api.godot_method_bind_get_method)(class_name, "set_auto_advance\0".as_ptr() as *const c_char );
table.has_auto_advance = (gd_api.godot_method_bind_get_method)(class_name, "has_auto_advance\0".as_ptr() as *const c_char );
table.set_xfade_time = (gd_api.godot_method_bind_get_method)(class_name, "set_xfade_time\0".as_ptr() as *const c_char );
table.get_xfade_time = (gd_api.godot_method_bind_get_method)(class_name, "get_xfade_time\0".as_ptr() as *const c_char );
table.set_disabled = (gd_api.godot_method_bind_get_method)(class_name, "set_disabled\0".as_ptr() as *const c_char );
table.is_disabled = (gd_api.godot_method_bind_get_method)(class_name, "is_disabled\0".as_ptr() as *const c_char );
table.set_priority = (gd_api.godot_method_bind_get_method)(class_name, "set_priority\0".as_ptr() as *const c_char );
table.get_priority = (gd_api.godot_method_bind_get_method)(class_name, "get_priority\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_set_switch_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).set_switch_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_get_switch_mode(obj_ptr: *mut sys::godot_object) -> AnimationNodeStateMachineTransitionSwitchMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).get_switch_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AnimationNodeStateMachineTransitionSwitchMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_set_auto_advance(obj_ptr: *mut sys::godot_object, auto_advance: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).set_auto_advance;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&auto_advance) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_has_auto_advance(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).has_auto_advance;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_set_xfade_time(obj_ptr: *mut sys::godot_object, secs: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).set_xfade_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&secs) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_get_xfade_time(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).get_xfade_time;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_set_disabled(obj_ptr: *mut sys::godot_object, disabled: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).set_disabled;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&disabled) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_is_disabled(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).is_disabled;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_set_priority(obj_ptr: *mut sys::godot_object, priority: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).set_priority;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&priority) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeStateMachineTransition_get_priority(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeStateMachineTransitionMethodTable::get(gd_api).get_priority;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeOneShotMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_fadein_time: *mut sys::godot_method_bind,
pub get_fadein_time: *mut sys::godot_method_bind,
pub set_fadeout_time: *mut sys::godot_method_bind,
pub get_fadeout_time: *mut sys::godot_method_bind,
pub set_autorestart: *mut sys::godot_method_bind,
pub has_autorestart: *mut sys::godot_method_bind,
pub set_autorestart_delay: *mut sys::godot_method_bind,
pub get_autorestart_delay: *mut sys::godot_method_bind,
pub set_autorestart_random_delay: *mut sys::godot_method_bind,
pub get_autorestart_random_delay: *mut sys::godot_method_bind,
pub set_mix_mode: *mut sys::godot_method_bind,
pub get_mix_mode: *mut sys::godot_method_bind,
pub start: *mut sys::godot_method_bind,
pub stop: *mut sys::godot_method_bind,
pub is_active: *mut sys::godot_method_bind,
pub set_use_sync: *mut sys::godot_method_bind,
pub is_using_sync: *mut sys::godot_method_bind,
}
impl AnimationNodeOneShotMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeOneShotMethodTable = AnimationNodeOneShotMethodTable {
class_constructor: None,
set_fadein_time: 0 as *mut sys::godot_method_bind,
get_fadein_time: 0 as *mut sys::godot_method_bind,
set_fadeout_time: 0 as *mut sys::godot_method_bind,
get_fadeout_time: 0 as *mut sys::godot_method_bind,
set_autorestart: 0 as *mut sys::godot_method_bind,
has_autorestart: 0 as *mut sys::godot_method_bind,
set_autorestart_delay: 0 as *mut sys::godot_method_bind,
get_autorestart_delay: 0 as *mut sys::godot_method_bind,
set_autorestart_random_delay: 0 as *mut sys::godot_method_bind,
get_autorestart_random_delay: 0 as *mut sys::godot_method_bind,
set_mix_mode: 0 as *mut sys::godot_method_bind,
get_mix_mode: 0 as *mut sys::godot_method_bind,
start: 0 as *mut sys::godot_method_bind,
stop: 0 as *mut sys::godot_method_bind,
is_active: 0 as *mut sys::godot_method_bind,
set_use_sync: 0 as *mut sys::godot_method_bind,
is_using_sync: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeOneShotMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeOneShot\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_fadein_time = (gd_api.godot_method_bind_get_method)(class_name, "set_fadein_time\0".as_ptr() as *const c_char );
table.get_fadein_time = (gd_api.godot_method_bind_get_method)(class_name, "get_fadein_time\0".as_ptr() as *const c_char );
table.set_fadeout_time = (gd_api.godot_method_bind_get_method)(class_name, "set_fadeout_time\0".as_ptr() as *const c_char );
table.get_fadeout_time = (gd_api.godot_method_bind_get_method)(class_name, "get_fadeout_time\0".as_ptr() as *const c_char );
table.set_autorestart = (gd_api.godot_method_bind_get_method)(class_name, "set_autorestart\0".as_ptr() as *const c_char );
table.has_autorestart = (gd_api.godot_method_bind_get_method)(class_name, "has_autorestart\0".as_ptr() as *const c_char );
table.set_autorestart_delay = (gd_api.godot_method_bind_get_method)(class_name, "set_autorestart_delay\0".as_ptr() as *const c_char );
table.get_autorestart_delay = (gd_api.godot_method_bind_get_method)(class_name, "get_autorestart_delay\0".as_ptr() as *const c_char );
table.set_autorestart_random_delay = (gd_api.godot_method_bind_get_method)(class_name, "set_autorestart_random_delay\0".as_ptr() as *const c_char );
table.get_autorestart_random_delay = (gd_api.godot_method_bind_get_method)(class_name, "get_autorestart_random_delay\0".as_ptr() as *const c_char );
table.set_mix_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_mix_mode\0".as_ptr() as *const c_char );
table.get_mix_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_mix_mode\0".as_ptr() as *const c_char );
table.start = (gd_api.godot_method_bind_get_method)(class_name, "start\0".as_ptr() as *const c_char );
table.stop = (gd_api.godot_method_bind_get_method)(class_name, "stop\0".as_ptr() as *const c_char );
table.is_active = (gd_api.godot_method_bind_get_method)(class_name, "is_active\0".as_ptr() as *const c_char );
table.set_use_sync = (gd_api.godot_method_bind_get_method)(class_name, "set_use_sync\0".as_ptr() as *const c_char );
table.is_using_sync = (gd_api.godot_method_bind_get_method)(class_name, "is_using_sync\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_set_fadein_time(obj_ptr: *mut sys::godot_object, time: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).set_fadein_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&time) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_get_fadein_time(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).get_fadein_time;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_set_fadeout_time(obj_ptr: *mut sys::godot_object, time: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).set_fadeout_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&time) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_get_fadeout_time(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).get_fadeout_time;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_set_autorestart(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).set_autorestart;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_has_autorestart(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).has_autorestart;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_set_autorestart_delay(obj_ptr: *mut sys::godot_object, enable: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).set_autorestart_delay;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_get_autorestart_delay(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).get_autorestart_delay;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_set_autorestart_random_delay(obj_ptr: *mut sys::godot_object, enable: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).set_autorestart_random_delay;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_get_autorestart_random_delay(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).get_autorestart_random_delay;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_set_mix_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).set_mix_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_get_mix_mode(obj_ptr: *mut sys::godot_object) -> AnimationNodeOneShotMixMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).get_mix_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AnimationNodeOneShotMixMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_start(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).start;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_stop(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).stop;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_is_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).is_active;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_set_use_sync(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).set_use_sync;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeOneShot_is_using_sync(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeOneShotMethodTable::get(gd_api).is_using_sync;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeOutputMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AnimationNodeOutputMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeOutputMethodTable = AnimationNodeOutputMethodTable {
class_constructor: None,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeOutputMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeOutput\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeAdd2MethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_amount: *mut sys::godot_method_bind,
pub get_amount: *mut sys::godot_method_bind,
pub set_use_sync: *mut sys::godot_method_bind,
pub is_using_sync: *mut sys::godot_method_bind,
}
impl AnimationNodeAdd2MethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeAdd2MethodTable = AnimationNodeAdd2MethodTable {
class_constructor: None,
set_amount: 0 as *mut sys::godot_method_bind,
get_amount: 0 as *mut sys::godot_method_bind,
set_use_sync: 0 as *mut sys::godot_method_bind,
is_using_sync: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeAdd2MethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeAdd2\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_amount = (gd_api.godot_method_bind_get_method)(class_name, "set_amount\0".as_ptr() as *const c_char );
table.get_amount = (gd_api.godot_method_bind_get_method)(class_name, "get_amount\0".as_ptr() as *const c_char );
table.set_use_sync = (gd_api.godot_method_bind_get_method)(class_name, "set_use_sync\0".as_ptr() as *const c_char );
table.is_using_sync = (gd_api.godot_method_bind_get_method)(class_name, "is_using_sync\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAdd2_set_amount(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAdd2MethodTable::get(gd_api).set_amount;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&amount) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAdd2_get_amount(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAdd2MethodTable::get(gd_api).get_amount;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAdd2_set_use_sync(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAdd2MethodTable::get(gd_api).set_use_sync;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAdd2_is_using_sync(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAdd2MethodTable::get(gd_api).is_using_sync;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeAdd3MethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_amount: *mut sys::godot_method_bind,
pub get_amount: *mut sys::godot_method_bind,
pub set_use_sync: *mut sys::godot_method_bind,
pub is_using_sync: *mut sys::godot_method_bind,
}
impl AnimationNodeAdd3MethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeAdd3MethodTable = AnimationNodeAdd3MethodTable {
class_constructor: None,
set_amount: 0 as *mut sys::godot_method_bind,
get_amount: 0 as *mut sys::godot_method_bind,
set_use_sync: 0 as *mut sys::godot_method_bind,
is_using_sync: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeAdd3MethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeAdd3\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_amount = (gd_api.godot_method_bind_get_method)(class_name, "set_amount\0".as_ptr() as *const c_char );
table.get_amount = (gd_api.godot_method_bind_get_method)(class_name, "get_amount\0".as_ptr() as *const c_char );
table.set_use_sync = (gd_api.godot_method_bind_get_method)(class_name, "set_use_sync\0".as_ptr() as *const c_char );
table.is_using_sync = (gd_api.godot_method_bind_get_method)(class_name, "is_using_sync\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAdd3_set_amount(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAdd3MethodTable::get(gd_api).set_amount;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&amount) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAdd3_get_amount(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAdd3MethodTable::get(gd_api).get_amount;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAdd3_set_use_sync(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAdd3MethodTable::get(gd_api).set_use_sync;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAdd3_is_using_sync(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAdd3MethodTable::get(gd_api).is_using_sync;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeAnimationMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_animation: *mut sys::godot_method_bind,
pub get_animation: *mut sys::godot_method_bind,
pub get_playback_time: *mut sys::godot_method_bind,
}
impl AnimationNodeAnimationMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeAnimationMethodTable = AnimationNodeAnimationMethodTable {
class_constructor: None,
set_animation: 0 as *mut sys::godot_method_bind,
get_animation: 0 as *mut sys::godot_method_bind,
get_playback_time: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeAnimationMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeAnimation\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_animation = (gd_api.godot_method_bind_get_method)(class_name, "set_animation\0".as_ptr() as *const c_char );
table.get_animation = (gd_api.godot_method_bind_get_method)(class_name, "get_animation\0".as_ptr() as *const c_char );
table.get_playback_time = (gd_api.godot_method_bind_get_method)(class_name, "get_playback_time\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAnimation_set_animation(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAnimationMethodTable::get(gd_api).set_animation;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAnimation_get_animation(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAnimationMethodTable::get(gd_api).get_animation;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeAnimation_get_playback_time(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeAnimationMethodTable::get(gd_api).get_playback_time;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeTimeSeekMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_seek_pos: *mut sys::godot_method_bind,
pub get_seek_pos: *mut sys::godot_method_bind,
}
impl AnimationNodeTimeSeekMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeTimeSeekMethodTable = AnimationNodeTimeSeekMethodTable {
class_constructor: None,
set_seek_pos: 0 as *mut sys::godot_method_bind,
get_seek_pos: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeTimeSeekMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeTimeSeek\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_seek_pos = (gd_api.godot_method_bind_get_method)(class_name, "set_seek_pos\0".as_ptr() as *const c_char );
table.get_seek_pos = (gd_api.godot_method_bind_get_method)(class_name, "get_seek_pos\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTimeSeek_set_seek_pos(obj_ptr: *mut sys::godot_object, seek_pos: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTimeSeekMethodTable::get(gd_api).set_seek_pos;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&seek_pos) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTimeSeek_get_seek_pos(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTimeSeekMethodTable::get(gd_api).get_seek_pos;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeBlend3MethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_amount: *mut sys::godot_method_bind,
pub get_amount: *mut sys::godot_method_bind,
pub set_use_sync: *mut sys::godot_method_bind,
pub is_using_sync: *mut sys::godot_method_bind,
}
impl AnimationNodeBlend3MethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeBlend3MethodTable = AnimationNodeBlend3MethodTable {
class_constructor: None,
set_amount: 0 as *mut sys::godot_method_bind,
get_amount: 0 as *mut sys::godot_method_bind,
set_use_sync: 0 as *mut sys::godot_method_bind,
is_using_sync: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeBlend3MethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeBlend3\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_amount = (gd_api.godot_method_bind_get_method)(class_name, "set_amount\0".as_ptr() as *const c_char );
table.get_amount = (gd_api.godot_method_bind_get_method)(class_name, "get_amount\0".as_ptr() as *const c_char );
table.set_use_sync = (gd_api.godot_method_bind_get_method)(class_name, "set_use_sync\0".as_ptr() as *const c_char );
table.is_using_sync = (gd_api.godot_method_bind_get_method)(class_name, "is_using_sync\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlend3_set_amount(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlend3MethodTable::get(gd_api).set_amount;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&amount) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlend3_get_amount(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlend3MethodTable::get(gd_api).get_amount;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlend3_set_use_sync(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlend3MethodTable::get(gd_api).set_use_sync;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlend3_is_using_sync(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlend3MethodTable::get(gd_api).is_using_sync;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeBlend2MethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_amount: *mut sys::godot_method_bind,
pub get_amount: *mut sys::godot_method_bind,
pub set_use_sync: *mut sys::godot_method_bind,
pub is_using_sync: *mut sys::godot_method_bind,
}
impl AnimationNodeBlend2MethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeBlend2MethodTable = AnimationNodeBlend2MethodTable {
class_constructor: None,
set_amount: 0 as *mut sys::godot_method_bind,
get_amount: 0 as *mut sys::godot_method_bind,
set_use_sync: 0 as *mut sys::godot_method_bind,
is_using_sync: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeBlend2MethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeBlend2\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_amount = (gd_api.godot_method_bind_get_method)(class_name, "set_amount\0".as_ptr() as *const c_char );
table.get_amount = (gd_api.godot_method_bind_get_method)(class_name, "get_amount\0".as_ptr() as *const c_char );
table.set_use_sync = (gd_api.godot_method_bind_get_method)(class_name, "set_use_sync\0".as_ptr() as *const c_char );
table.is_using_sync = (gd_api.godot_method_bind_get_method)(class_name, "is_using_sync\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlend2_set_amount(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlend2MethodTable::get(gd_api).set_amount;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&amount) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlend2_get_amount(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlend2MethodTable::get(gd_api).get_amount;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlend2_set_use_sync(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlend2MethodTable::get(gd_api).set_use_sync;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeBlend2_is_using_sync(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeBlend2MethodTable::get(gd_api).is_using_sync;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeTimeScaleMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_scale: *mut sys::godot_method_bind,
pub get_scale: *mut sys::godot_method_bind,
}
impl AnimationNodeTimeScaleMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeTimeScaleMethodTable = AnimationNodeTimeScaleMethodTable {
class_constructor: None,
set_scale: 0 as *mut sys::godot_method_bind,
get_scale: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeTimeScaleMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeTimeScale\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_scale = (gd_api.godot_method_bind_get_method)(class_name, "set_scale\0".as_ptr() as *const c_char );
table.get_scale = (gd_api.godot_method_bind_get_method)(class_name, "get_scale\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTimeScale_set_scale(obj_ptr: *mut sys::godot_object, scale: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTimeScaleMethodTable::get(gd_api).set_scale;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&scale) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTimeScale_get_scale(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTimeScaleMethodTable::get(gd_api).get_scale;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationNodeTransitionMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_enabled_inputs: *mut sys::godot_method_bind,
pub get_enabled_inputs: *mut sys::godot_method_bind,
pub set_input_as_auto_advance: *mut sys::godot_method_bind,
pub is_input_set_as_auto_advance: *mut sys::godot_method_bind,
pub set_input_caption: *mut sys::godot_method_bind,
pub get_input_caption: *mut sys::godot_method_bind,
pub set_current: *mut sys::godot_method_bind,
pub get_current: *mut sys::godot_method_bind,
pub set_cross_fade_time: *mut sys::godot_method_bind,
pub get_cross_fade_time: *mut sys::godot_method_bind,
}
impl AnimationNodeTransitionMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationNodeTransitionMethodTable = AnimationNodeTransitionMethodTable {
class_constructor: None,
set_enabled_inputs: 0 as *mut sys::godot_method_bind,
get_enabled_inputs: 0 as *mut sys::godot_method_bind,
set_input_as_auto_advance: 0 as *mut sys::godot_method_bind,
is_input_set_as_auto_advance: 0 as *mut sys::godot_method_bind,
set_input_caption: 0 as *mut sys::godot_method_bind,
get_input_caption: 0 as *mut sys::godot_method_bind,
set_current: 0 as *mut sys::godot_method_bind,
get_current: 0 as *mut sys::godot_method_bind,
set_cross_fade_time: 0 as *mut sys::godot_method_bind,
get_cross_fade_time: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationNodeTransitionMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationNodeTransition\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_enabled_inputs = (gd_api.godot_method_bind_get_method)(class_name, "set_enabled_inputs\0".as_ptr() as *const c_char );
table.get_enabled_inputs = (gd_api.godot_method_bind_get_method)(class_name, "get_enabled_inputs\0".as_ptr() as *const c_char );
table.set_input_as_auto_advance = (gd_api.godot_method_bind_get_method)(class_name, "set_input_as_auto_advance\0".as_ptr() as *const c_char );
table.is_input_set_as_auto_advance = (gd_api.godot_method_bind_get_method)(class_name, "is_input_set_as_auto_advance\0".as_ptr() as *const c_char );
table.set_input_caption = (gd_api.godot_method_bind_get_method)(class_name, "set_input_caption\0".as_ptr() as *const c_char );
table.get_input_caption = (gd_api.godot_method_bind_get_method)(class_name, "get_input_caption\0".as_ptr() as *const c_char );
table.set_current = (gd_api.godot_method_bind_get_method)(class_name, "set_current\0".as_ptr() as *const c_char );
table.get_current = (gd_api.godot_method_bind_get_method)(class_name, "get_current\0".as_ptr() as *const c_char );
table.set_cross_fade_time = (gd_api.godot_method_bind_get_method)(class_name, "set_cross_fade_time\0".as_ptr() as *const c_char );
table.get_cross_fade_time = (gd_api.godot_method_bind_get_method)(class_name, "get_cross_fade_time\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_set_enabled_inputs(obj_ptr: *mut sys::godot_object, amount: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).set_enabled_inputs;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&amount) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_get_enabled_inputs(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).get_enabled_inputs;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_set_input_as_auto_advance(obj_ptr: *mut sys::godot_object, input: i64, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).set_input_as_auto_advance;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&input) as *const _ as *const _,
(&enable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_is_input_set_as_auto_advance(obj_ptr: *mut sys::godot_object, input: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).is_input_set_as_auto_advance;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&input) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_set_input_caption(obj_ptr: *mut sys::godot_object, input: i64, caption: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).set_input_caption;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&input) as *const _ as *const _,
caption.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_get_input_caption(obj_ptr: *mut sys::godot_object, input: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).get_input_caption;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&input) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_set_current(obj_ptr: *mut sys::godot_object, index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).set_current;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&index) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_get_current(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).get_current;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_set_cross_fade_time(obj_ptr: *mut sys::godot_object, time: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).set_cross_fade_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&time) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AnimationNodeTransition_get_cross_fade_time(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationNodeTransitionMethodTable::get(gd_api).get_cross_fade_time;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub add_track: *mut sys::godot_method_bind,
pub remove_track: *mut sys::godot_method_bind,
pub get_track_count: *mut sys::godot_method_bind,
pub track_get_type: *mut sys::godot_method_bind,
pub track_get_path: *mut sys::godot_method_bind,
pub track_set_path: *mut sys::godot_method_bind,
pub find_track: *mut sys::godot_method_bind,
pub track_move_up: *mut sys::godot_method_bind,
pub track_move_down: *mut sys::godot_method_bind,
pub track_swap: *mut sys::godot_method_bind,
pub track_set_imported: *mut sys::godot_method_bind,
pub track_is_imported: *mut sys::godot_method_bind,
pub track_set_enabled: *mut sys::godot_method_bind,
pub track_is_enabled: *mut sys::godot_method_bind,
pub transform_track_insert_key: *mut sys::godot_method_bind,
pub track_insert_key: *mut sys::godot_method_bind,
pub track_remove_key: *mut sys::godot_method_bind,
pub track_remove_key_at_position: *mut sys::godot_method_bind,
pub track_set_key_value: *mut sys::godot_method_bind,
pub track_set_key_transition: *mut sys::godot_method_bind,
pub track_get_key_transition: *mut sys::godot_method_bind,
pub track_get_key_count: *mut sys::godot_method_bind,
pub track_get_key_value: *mut sys::godot_method_bind,
pub track_get_key_time: *mut sys::godot_method_bind,
pub track_find_key: *mut sys::godot_method_bind,
pub track_set_interpolation_type: *mut sys::godot_method_bind,
pub track_get_interpolation_type: *mut sys::godot_method_bind,
pub track_set_interpolation_loop_wrap: *mut sys::godot_method_bind,
pub track_get_interpolation_loop_wrap: *mut sys::godot_method_bind,
pub transform_track_interpolate: *mut sys::godot_method_bind,
pub value_track_set_update_mode: *mut sys::godot_method_bind,
pub value_track_get_update_mode: *mut sys::godot_method_bind,
pub value_track_get_key_indices: *mut sys::godot_method_bind,
pub method_track_get_key_indices: *mut sys::godot_method_bind,
pub method_track_get_name: *mut sys::godot_method_bind,
pub method_track_get_params: *mut sys::godot_method_bind,
pub bezier_track_insert_key: *mut sys::godot_method_bind,
pub bezier_track_set_key_value: *mut sys::godot_method_bind,
pub bezier_track_set_key_in_handle: *mut sys::godot_method_bind,
pub bezier_track_set_key_out_handle: *mut sys::godot_method_bind,
pub bezier_track_get_key_value: *mut sys::godot_method_bind,
pub bezier_track_get_key_in_handle: *mut sys::godot_method_bind,
pub bezier_track_get_key_out_handle: *mut sys::godot_method_bind,
pub bezier_track_interpolate: *mut sys::godot_method_bind,
pub audio_track_insert_key: *mut sys::godot_method_bind,
pub audio_track_set_key_stream: *mut sys::godot_method_bind,
pub audio_track_set_key_start_offset: *mut sys::godot_method_bind,
pub audio_track_set_key_end_offset: *mut sys::godot_method_bind,
pub audio_track_get_key_stream: *mut sys::godot_method_bind,
pub audio_track_get_key_start_offset: *mut sys::godot_method_bind,
pub audio_track_get_key_end_offset: *mut sys::godot_method_bind,
pub animation_track_insert_key: *mut sys::godot_method_bind,
pub animation_track_set_key_animation: *mut sys::godot_method_bind,
pub animation_track_get_key_animation: *mut sys::godot_method_bind,
pub set_length: *mut sys::godot_method_bind,
pub get_length: *mut sys::godot_method_bind,
pub set_loop: *mut sys::godot_method_bind,
pub has_loop: *mut sys::godot_method_bind,
pub set_step: *mut sys::godot_method_bind,
pub get_step: *mut sys::godot_method_bind,
pub clear: *mut sys::godot_method_bind,
pub copy_track: *mut sys::godot_method_bind,
}
impl AnimationMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationMethodTable = AnimationMethodTable {
class_constructor: None,
add_track: 0 as *mut sys::godot_method_bind,
remove_track: 0 as *mut sys::godot_method_bind,
get_track_count: 0 as *mut sys::godot_method_bind,
track_get_type: 0 as *mut sys::godot_method_bind,
track_get_path: 0 as *mut sys::godot_method_bind,
track_set_path: 0 as *mut sys::godot_method_bind,
find_track: 0 as *mut sys::godot_method_bind,
track_move_up: 0 as *mut sys::godot_method_bind,
track_move_down: 0 as *mut sys::godot_method_bind,
track_swap: 0 as *mut sys::godot_method_bind,
track_set_imported: 0 as *mut sys::godot_method_bind,
track_is_imported: 0 as *mut sys::godot_method_bind,
track_set_enabled: 0 as *mut sys::godot_method_bind,
track_is_enabled: 0 as *mut sys::godot_method_bind,
transform_track_insert_key: 0 as *mut sys::godot_method_bind,
track_insert_key: 0 as *mut sys::godot_method_bind,
track_remove_key: 0 as *mut sys::godot_method_bind,
track_remove_key_at_position: 0 as *mut sys::godot_method_bind,
track_set_key_value: 0 as *mut sys::godot_method_bind,
track_set_key_transition: 0 as *mut sys::godot_method_bind,
track_get_key_transition: 0 as *mut sys::godot_method_bind,
track_get_key_count: 0 as *mut sys::godot_method_bind,
track_get_key_value: 0 as *mut sys::godot_method_bind,
track_get_key_time: 0 as *mut sys::godot_method_bind,
track_find_key: 0 as *mut sys::godot_method_bind,
track_set_interpolation_type: 0 as *mut sys::godot_method_bind,
track_get_interpolation_type: 0 as *mut sys::godot_method_bind,
track_set_interpolation_loop_wrap: 0 as *mut sys::godot_method_bind,
track_get_interpolation_loop_wrap: 0 as *mut sys::godot_method_bind,
transform_track_interpolate: 0 as *mut sys::godot_method_bind,
value_track_set_update_mode: 0 as *mut sys::godot_method_bind,
value_track_get_update_mode: 0 as *mut sys::godot_method_bind,
value_track_get_key_indices: 0 as *mut sys::godot_method_bind,
method_track_get_key_indices: 0 as *mut sys::godot_method_bind,
method_track_get_name: 0 as *mut sys::godot_method_bind,
method_track_get_params: 0 as *mut sys::godot_method_bind,
bezier_track_insert_key: 0 as *mut sys::godot_method_bind,
bezier_track_set_key_value: 0 as *mut sys::godot_method_bind,
bezier_track_set_key_in_handle: 0 as *mut sys::godot_method_bind,
bezier_track_set_key_out_handle: 0 as *mut sys::godot_method_bind,
bezier_track_get_key_value: 0 as *mut sys::godot_method_bind,
bezier_track_get_key_in_handle: 0 as *mut sys::godot_method_bind,
bezier_track_get_key_out_handle: 0 as *mut sys::godot_method_bind,
bezier_track_interpolate: 0 as *mut sys::godot_method_bind,
audio_track_insert_key: 0 as *mut sys::godot_method_bind,
audio_track_set_key_stream: 0 as *mut sys::godot_method_bind,
audio_track_set_key_start_offset: 0 as *mut sys::godot_method_bind,
audio_track_set_key_end_offset: 0 as *mut sys::godot_method_bind,
audio_track_get_key_stream: 0 as *mut sys::godot_method_bind,
audio_track_get_key_start_offset: 0 as *mut sys::godot_method_bind,
audio_track_get_key_end_offset: 0 as *mut sys::godot_method_bind,
animation_track_insert_key: 0 as *mut sys::godot_method_bind,
animation_track_set_key_animation: 0 as *mut sys::godot_method_bind,
animation_track_get_key_animation: 0 as *mut sys::godot_method_bind,
set_length: 0 as *mut sys::godot_method_bind,
get_length: 0 as *mut sys::godot_method_bind,
set_loop: 0 as *mut sys::godot_method_bind,
has_loop: 0 as *mut sys::godot_method_bind,
set_step: 0 as *mut sys::godot_method_bind,
get_step: 0 as *mut sys::godot_method_bind,
clear: 0 as *mut sys::godot_method_bind,
copy_track: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"Animation\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.add_track = (gd_api.godot_method_bind_get_method)(class_name, "add_track\0".as_ptr() as *const c_char );
table.remove_track = (gd_api.godot_method_bind_get_method)(class_name, "remove_track\0".as_ptr() as *const c_char );
table.get_track_count = (gd_api.godot_method_bind_get_method)(class_name, "get_track_count\0".as_ptr() as *const c_char );
table.track_get_type = (gd_api.godot_method_bind_get_method)(class_name, "track_get_type\0".as_ptr() as *const c_char );
table.track_get_path = (gd_api.godot_method_bind_get_method)(class_name, "track_get_path\0".as_ptr() as *const c_char );
table.track_set_path = (gd_api.godot_method_bind_get_method)(class_name, "track_set_path\0".as_ptr() as *const c_char );
table.find_track = (gd_api.godot_method_bind_get_method)(class_name, "find_track\0".as_ptr() as *const c_char );
table.track_move_up = (gd_api.godot_method_bind_get_method)(class_name, "track_move_up\0".as_ptr() as *const c_char );
table.track_move_down = (gd_api.godot_method_bind_get_method)(class_name, "track_move_down\0".as_ptr() as *const c_char );
table.track_swap = (gd_api.godot_method_bind_get_method)(class_name, "track_swap\0".as_ptr() as *const c_char );
table.track_set_imported = (gd_api.godot_method_bind_get_method)(class_name, "track_set_imported\0".as_ptr() as *const c_char );
table.track_is_imported = (gd_api.godot_method_bind_get_method)(class_name, "track_is_imported\0".as_ptr() as *const c_char );
table.track_set_enabled = (gd_api.godot_method_bind_get_method)(class_name, "track_set_enabled\0".as_ptr() as *const c_char );
table.track_is_enabled = (gd_api.godot_method_bind_get_method)(class_name, "track_is_enabled\0".as_ptr() as *const c_char );
table.transform_track_insert_key = (gd_api.godot_method_bind_get_method)(class_name, "transform_track_insert_key\0".as_ptr() as *const c_char );
table.track_insert_key = (gd_api.godot_method_bind_get_method)(class_name, "track_insert_key\0".as_ptr() as *const c_char );
table.track_remove_key = (gd_api.godot_method_bind_get_method)(class_name, "track_remove_key\0".as_ptr() as *const c_char );
table.track_remove_key_at_position = (gd_api.godot_method_bind_get_method)(class_name, "track_remove_key_at_position\0".as_ptr() as *const c_char );
table.track_set_key_value = (gd_api.godot_method_bind_get_method)(class_name, "track_set_key_value\0".as_ptr() as *const c_char );
table.track_set_key_transition = (gd_api.godot_method_bind_get_method)(class_name, "track_set_key_transition\0".as_ptr() as *const c_char );
table.track_get_key_transition = (gd_api.godot_method_bind_get_method)(class_name, "track_get_key_transition\0".as_ptr() as *const c_char );
table.track_get_key_count = (gd_api.godot_method_bind_get_method)(class_name, "track_get_key_count\0".as_ptr() as *const c_char );
table.track_get_key_value = (gd_api.godot_method_bind_get_method)(class_name, "track_get_key_value\0".as_ptr() as *const c_char );
table.track_get_key_time = (gd_api.godot_method_bind_get_method)(class_name, "track_get_key_time\0".as_ptr() as *const c_char );
table.track_find_key = (gd_api.godot_method_bind_get_method)(class_name, "track_find_key\0".as_ptr() as *const c_char );
table.track_set_interpolation_type = (gd_api.godot_method_bind_get_method)(class_name, "track_set_interpolation_type\0".as_ptr() as *const c_char );
table.track_get_interpolation_type = (gd_api.godot_method_bind_get_method)(class_name, "track_get_interpolation_type\0".as_ptr() as *const c_char );
table.track_set_interpolation_loop_wrap = (gd_api.godot_method_bind_get_method)(class_name, "track_set_interpolation_loop_wrap\0".as_ptr() as *const c_char );
table.track_get_interpolation_loop_wrap = (gd_api.godot_method_bind_get_method)(class_name, "track_get_interpolation_loop_wrap\0".as_ptr() as *const c_char );
table.transform_track_interpolate = (gd_api.godot_method_bind_get_method)(class_name, "transform_track_interpolate\0".as_ptr() as *const c_char );
table.value_track_set_update_mode = (gd_api.godot_method_bind_get_method)(class_name, "value_track_set_update_mode\0".as_ptr() as *const c_char );
table.value_track_get_update_mode = (gd_api.godot_method_bind_get_method)(class_name, "value_track_get_update_mode\0".as_ptr() as *const c_char );
table.value_track_get_key_indices = (gd_api.godot_method_bind_get_method)(class_name, "value_track_get_key_indices\0".as_ptr() as *const c_char );
table.method_track_get_key_indices = (gd_api.godot_method_bind_get_method)(class_name, "method_track_get_key_indices\0".as_ptr() as *const c_char );
table.method_track_get_name = (gd_api.godot_method_bind_get_method)(class_name, "method_track_get_name\0".as_ptr() as *const c_char );
table.method_track_get_params = (gd_api.godot_method_bind_get_method)(class_name, "method_track_get_params\0".as_ptr() as *const c_char );
table.bezier_track_insert_key = (gd_api.godot_method_bind_get_method)(class_name, "bezier_track_insert_key\0".as_ptr() as *const c_char );
table.bezier_track_set_key_value = (gd_api.godot_method_bind_get_method)(class_name, "bezier_track_set_key_value\0".as_ptr() as *const c_char );
table.bezier_track_set_key_in_handle = (gd_api.godot_method_bind_get_method)(class_name, "bezier_track_set_key_in_handle\0".as_ptr() as *const c_char );
table.bezier_track_set_key_out_handle = (gd_api.godot_method_bind_get_method)(class_name, "bezier_track_set_key_out_handle\0".as_ptr() as *const c_char );
table.bezier_track_get_key_value = (gd_api.godot_method_bind_get_method)(class_name, "bezier_track_get_key_value\0".as_ptr() as *const c_char );
table.bezier_track_get_key_in_handle = (gd_api.godot_method_bind_get_method)(class_name, "bezier_track_get_key_in_handle\0".as_ptr() as *const c_char );
table.bezier_track_get_key_out_handle = (gd_api.godot_method_bind_get_method)(class_name, "bezier_track_get_key_out_handle\0".as_ptr() as *const c_char );
table.bezier_track_interpolate = (gd_api.godot_method_bind_get_method)(class_name, "bezier_track_interpolate\0".as_ptr() as *const c_char );
table.audio_track_insert_key = (gd_api.godot_method_bind_get_method)(class_name, "audio_track_insert_key\0".as_ptr() as *const c_char );
table.audio_track_set_key_stream = (gd_api.godot_method_bind_get_method)(class_name, "audio_track_set_key_stream\0".as_ptr() as *const c_char );
table.audio_track_set_key_start_offset = (gd_api.godot_method_bind_get_method)(class_name, "audio_track_set_key_start_offset\0".as_ptr() as *const c_char );
table.audio_track_set_key_end_offset = (gd_api.godot_method_bind_get_method)(class_name, "audio_track_set_key_end_offset\0".as_ptr() as *const c_char );
table.audio_track_get_key_stream = (gd_api.godot_method_bind_get_method)(class_name, "audio_track_get_key_stream\0".as_ptr() as *const c_char );
table.audio_track_get_key_start_offset = (gd_api.godot_method_bind_get_method)(class_name, "audio_track_get_key_start_offset\0".as_ptr() as *const c_char );
table.audio_track_get_key_end_offset = (gd_api.godot_method_bind_get_method)(class_name, "audio_track_get_key_end_offset\0".as_ptr() as *const c_char );
table.animation_track_insert_key = (gd_api.godot_method_bind_get_method)(class_name, "animation_track_insert_key\0".as_ptr() as *const c_char );
table.animation_track_set_key_animation = (gd_api.godot_method_bind_get_method)(class_name, "animation_track_set_key_animation\0".as_ptr() as *const c_char );
table.animation_track_get_key_animation = (gd_api.godot_method_bind_get_method)(class_name, "animation_track_get_key_animation\0".as_ptr() as *const c_char );
table.set_length = (gd_api.godot_method_bind_get_method)(class_name, "set_length\0".as_ptr() as *const c_char );
table.get_length = (gd_api.godot_method_bind_get_method)(class_name, "get_length\0".as_ptr() as *const c_char );
table.set_loop = (gd_api.godot_method_bind_get_method)(class_name, "set_loop\0".as_ptr() as *const c_char );
table.has_loop = (gd_api.godot_method_bind_get_method)(class_name, "has_loop\0".as_ptr() as *const c_char );
table.set_step = (gd_api.godot_method_bind_get_method)(class_name, "set_step\0".as_ptr() as *const c_char );
table.get_step = (gd_api.godot_method_bind_get_method)(class_name, "get_step\0".as_ptr() as *const c_char );
table.clear = (gd_api.godot_method_bind_get_method)(class_name, "clear\0".as_ptr() as *const c_char );
table.copy_track = (gd_api.godot_method_bind_get_method)(class_name, "copy_track\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn Animation_add_track(obj_ptr: *mut sys::godot_object, _type: i64, at_position: i64) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).add_track;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&_type) as *const _ as *const _,
(&at_position) as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_remove_track(obj_ptr: *mut sys::godot_object, idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).remove_track;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_get_track_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).get_track_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_get_type(obj_ptr: *mut sys::godot_object, idx: i64) -> AnimationTrackType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_get_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret: AnimationTrackType = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_get_path(obj_ptr: *mut sys::godot_object, idx: i64) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_get_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_node_path::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_track_set_path(obj_ptr: *mut sys::godot_object, idx: i64, path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_set_path;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_find_track(obj_ptr: *mut sys::godot_object, path: NodePath) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).find_track;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_move_up(obj_ptr: *mut sys::godot_object, idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_move_up;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_move_down(obj_ptr: *mut sys::godot_object, idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_move_down;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_swap(obj_ptr: *mut sys::godot_object, idx: i64, with_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_swap;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&with_idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_set_imported(obj_ptr: *mut sys::godot_object, idx: i64, imported: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_set_imported;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&imported) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_is_imported(obj_ptr: *mut sys::godot_object, idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_is_imported;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_set_enabled(obj_ptr: *mut sys::godot_object, idx: i64, enabled: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_set_enabled;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&enabled) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_is_enabled(obj_ptr: *mut sys::godot_object, idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_is_enabled;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_transform_track_insert_key(obj_ptr: *mut sys::godot_object, idx: i64, time: f64, location: Vector3, rotation: Quat, scale: Vector3) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).transform_track_insert_key;
let mut argument_buffer : [*const libc::c_void; 5] = [
(&idx) as *const _ as *const _,
(&time) as *const _ as *const _,
(&location) as *const _ as *const _,
(&rotation) as *const _ as *const _,
(&scale) as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_insert_key(obj_ptr: *mut sys::godot_object, idx: i64, time: f64, key: Variant, transition: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_insert_key;
let mut argument_buffer : [*const libc::c_void; 4] = [
(&idx) as *const _ as *const _,
(&time) as *const _ as *const _,
key.sys() as *const _ as *const _,
(&transition) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_remove_key(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_remove_key;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_remove_key_at_position(obj_ptr: *mut sys::godot_object, idx: i64, position: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_remove_key_at_position;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&position) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_set_key_value(obj_ptr: *mut sys::godot_object, idx: i64, key: i64, value: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_set_key_value;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key) as *const _ as *const _,
value.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_set_key_transition(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64, transition: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_set_key_transition;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
(&transition) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_get_key_transition(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_get_key_transition;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_get_key_count(obj_ptr: *mut sys::godot_object, idx: i64) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_get_key_count;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_get_key_value(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_get_key_value;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = sys::godot_variant::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Variant::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_track_get_key_time(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_get_key_time;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_find_key(obj_ptr: *mut sys::godot_object, idx: i64, time: f64, exact: bool) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_find_key;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&time) as *const _ as *const _,
(&exact) as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_set_interpolation_type(obj_ptr: *mut sys::godot_object, idx: i64, interpolation: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_set_interpolation_type;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&interpolation) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_get_interpolation_type(obj_ptr: *mut sys::godot_object, idx: i64) -> AnimationInterpolationType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_get_interpolation_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret: AnimationInterpolationType = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_track_set_interpolation_loop_wrap(obj_ptr: *mut sys::godot_object, idx: i64, interpolation: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_set_interpolation_loop_wrap;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&interpolation) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_track_get_interpolation_loop_wrap(obj_ptr: *mut sys::godot_object, idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).track_get_interpolation_loop_wrap;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_transform_track_interpolate(obj_ptr: *mut sys::godot_object, idx: i64, time_sec: f64) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).transform_track_interpolate;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&time_sec) as *const _ as *const _,
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_value_track_set_update_mode(obj_ptr: *mut sys::godot_object, idx: i64, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).value_track_set_update_mode;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_value_track_get_update_mode(obj_ptr: *mut sys::godot_object, idx: i64) -> AnimationUpdateMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).value_track_get_update_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret: AnimationUpdateMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_value_track_get_key_indices(obj_ptr: *mut sys::godot_object, idx: i64, time_sec: f64, delta: f64) -> Int32Array {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).value_track_get_key_indices;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&time_sec) as *const _ as *const _,
(&delta) as *const _ as *const _,
];
let mut ret = sys::godot_pool_int_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Int32Array::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_method_track_get_key_indices(obj_ptr: *mut sys::godot_object, idx: i64, time_sec: f64, delta: f64) -> Int32Array {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).method_track_get_key_indices;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&time_sec) as *const _ as *const _,
(&delta) as *const _ as *const _,
];
let mut ret = sys::godot_pool_int_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Int32Array::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_method_track_get_name(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).method_track_get_name;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_method_track_get_params(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).method_track_get_params;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_bezier_track_insert_key(obj_ptr: *mut sys::godot_object, track: i64, time: f64, value: f64, in_handle: Vector2, out_handle: Vector2) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).bezier_track_insert_key;
let mut argument_buffer : [*const libc::c_void; 5] = [
(&track) as *const _ as *const _,
(&time) as *const _ as *const _,
(&value) as *const _ as *const _,
(&in_handle) as *const _ as *const _,
(&out_handle) as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_bezier_track_set_key_value(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64, value: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).bezier_track_set_key_value;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
(&value) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_bezier_track_set_key_in_handle(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64, in_handle: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).bezier_track_set_key_in_handle;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
(&in_handle) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_bezier_track_set_key_out_handle(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64, out_handle: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).bezier_track_set_key_out_handle;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
(&out_handle) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_bezier_track_get_key_value(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).bezier_track_get_key_value;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_bezier_track_get_key_in_handle(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).bezier_track_get_key_in_handle;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_bezier_track_get_key_out_handle(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).bezier_track_get_key_out_handle;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = sys::godot_vector2::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_bezier_track_interpolate(obj_ptr: *mut sys::godot_object, track: i64, time: f64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).bezier_track_interpolate;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&track) as *const _ as *const _,
(&time) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_audio_track_insert_key(obj_ptr: *mut sys::godot_object, track: i64, time: f64, stream: Option<Resource>, start_offset: f64, end_offset: f64) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).audio_track_insert_key;
let mut argument_buffer : [*const libc::c_void; 5] = [
(&track) as *const _ as *const _,
(&time) as *const _ as *const _,
if let Some(arg) = stream { arg.this as *const _ as *const _ } else { ptr::null() },
(&start_offset) as *const _ as *const _,
(&end_offset) as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_audio_track_set_key_stream(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64, stream: Option<Resource>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).audio_track_set_key_stream;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
if let Some(arg) = stream { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_audio_track_set_key_start_offset(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64, offset: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).audio_track_set_key_start_offset;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
(&offset) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_audio_track_set_key_end_offset(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64, offset: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).audio_track_set_key_end_offset;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
(&offset) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_audio_track_get_key_stream(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> Option<Resource> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).audio_track_get_key_stream;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Resource::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn Animation_audio_track_get_key_start_offset(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).audio_track_get_key_start_offset;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_audio_track_get_key_end_offset(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).audio_track_get_key_end_offset;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_animation_track_insert_key(obj_ptr: *mut sys::godot_object, track: i64, time: f64, animation: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).animation_track_insert_key;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&track) as *const _ as *const _,
(&time) as *const _ as *const _,
animation.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_animation_track_set_key_animation(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64, animation: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).animation_track_set_key_animation;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
animation.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_animation_track_get_key_animation(obj_ptr: *mut sys::godot_object, idx: i64, key_idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).animation_track_get_key_animation;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&idx) as *const _ as *const _,
(&key_idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn Animation_set_length(obj_ptr: *mut sys::godot_object, time_sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).set_length;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&time_sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_get_length(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).get_length;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_set_loop(obj_ptr: *mut sys::godot_object, enabled: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).set_loop;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enabled) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_has_loop(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).has_loop;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_set_step(obj_ptr: *mut sys::godot_object, size_sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).set_step;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&size_sec) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_get_step(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).get_step;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn Animation_clear(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).clear;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn Animation_copy_track(obj_ptr: *mut sys::godot_object, track: i64, to_animation: Option<Animation>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AnimationMethodTable::get(gd_api).copy_track;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&track) as *const _ as *const _,
if let Some(arg) = to_animation { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AnimationTrackEditPluginMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AnimationTrackEditPluginMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AnimationTrackEditPluginMethodTable = AnimationTrackEditPluginMethodTable {
class_constructor: None,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
AnimationTrackEditPluginMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AnimationTrackEditPlugin\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}