- item_tooltip_view.gd: 新增 avoid_rect 属性,tooltip 与装备窗口重叠时自动推到左侧 - inventory_ui.gd: 悬停装备时传入窗口矩形作为避让区域 - 包含其他累积的功能开发和测试文件
282 lines
18 KiB
C++
282 lines
18 KiB
C++
/**************************************************************************/
|
|
/* two_bone_ik3d.cpp */
|
|
/**************************************************************************/
|
|
/* This file is part of: */
|
|
/* GODOT ENGINE */
|
|
/* https://godotengine.org */
|
|
/**************************************************************************/
|
|
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
|
|
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
|
|
/* */
|
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
|
/* a copy of this software and associated documentation files (the */
|
|
/* "Software"), to deal in the Software without restriction, including */
|
|
/* without limitation the rights to use, copy, modify, merge, publish, */
|
|
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
|
/* permit persons to whom the Software is furnished to do so, subject to */
|
|
/* the following conditions: */
|
|
/* */
|
|
/* The above copyright notice and this permission notice shall be */
|
|
/* included in all copies or substantial portions of the Software. */
|
|
/* */
|
|
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
|
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
|
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
|
|
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
|
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
/**************************************************************************/
|
|
|
|
// THIS FILE IS GENERATED. EDITS WILL BE LOST.
|
|
|
|
#include <godot_cpp/classes/two_bone_ik3d.hpp>
|
|
|
|
#include <godot_cpp/core/class_db.hpp>
|
|
#include <godot_cpp/core/engine_ptrcall.hpp>
|
|
#include <godot_cpp/core/error_macros.hpp>
|
|
|
|
namespace godot {
|
|
|
|
void TwoBoneIK3D::set_target_node(int32_t p_index, const NodePath &p_target_node) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_target_node")._native_ptr(), 2761262315);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_target_node);
|
|
}
|
|
|
|
NodePath TwoBoneIK3D::get_target_node(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_target_node")._native_ptr(), 408788394);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (NodePath()));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<NodePath>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_pole_node(int32_t p_index, const NodePath &p_pole_node) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_pole_node")._native_ptr(), 2761262315);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_pole_node);
|
|
}
|
|
|
|
NodePath TwoBoneIK3D::get_pole_node(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_pole_node")._native_ptr(), 408788394);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (NodePath()));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<NodePath>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_root_bone_name(int32_t p_index, const String &p_bone_name) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_root_bone_name")._native_ptr(), 501894301);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_bone_name);
|
|
}
|
|
|
|
String TwoBoneIK3D::get_root_bone_name(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_root_bone_name")._native_ptr(), 844755477);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (String()));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<String>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_root_bone(int32_t p_index, int32_t p_bone) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_root_bone")._native_ptr(), 3937882851);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
int64_t p_bone_encoded;
|
|
PtrToArg<int64_t>::encode(p_bone, &p_bone_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_bone_encoded);
|
|
}
|
|
|
|
int32_t TwoBoneIK3D::get_root_bone(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_root_bone")._native_ptr(), 923996154);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (0));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<int64_t>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_middle_bone_name(int32_t p_index, const String &p_bone_name) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_middle_bone_name")._native_ptr(), 501894301);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_bone_name);
|
|
}
|
|
|
|
String TwoBoneIK3D::get_middle_bone_name(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_middle_bone_name")._native_ptr(), 844755477);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (String()));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<String>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_middle_bone(int32_t p_index, int32_t p_bone) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_middle_bone")._native_ptr(), 3937882851);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
int64_t p_bone_encoded;
|
|
PtrToArg<int64_t>::encode(p_bone, &p_bone_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_bone_encoded);
|
|
}
|
|
|
|
int32_t TwoBoneIK3D::get_middle_bone(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_middle_bone")._native_ptr(), 923996154);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (0));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<int64_t>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_pole_direction(int32_t p_index, SkeletonModifier3D::SecondaryDirection p_direction) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_pole_direction")._native_ptr(), 258741388);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
int64_t p_direction_encoded;
|
|
PtrToArg<int64_t>::encode(p_direction, &p_direction_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_direction_encoded);
|
|
}
|
|
|
|
SkeletonModifier3D::SecondaryDirection TwoBoneIK3D::get_pole_direction(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_pole_direction")._native_ptr(), 377522128);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (SkeletonModifier3D::SecondaryDirection(0)));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return (SkeletonModifier3D::SecondaryDirection)::godot::internal::_call_native_mb_ret<int64_t>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_pole_direction_vector(int32_t p_index, const Vector3 &p_vector) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_pole_direction_vector")._native_ptr(), 1530502735);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_vector);
|
|
}
|
|
|
|
Vector3 TwoBoneIK3D::get_pole_direction_vector(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_pole_direction_vector")._native_ptr(), 711720468);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (Vector3()));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<Vector3>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_end_bone_name(int32_t p_index, const String &p_bone_name) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_end_bone_name")._native_ptr(), 501894301);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_bone_name);
|
|
}
|
|
|
|
String TwoBoneIK3D::get_end_bone_name(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_end_bone_name")._native_ptr(), 844755477);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (String()));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<String>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_end_bone(int32_t p_index, int32_t p_bone) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_end_bone")._native_ptr(), 3937882851);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
int64_t p_bone_encoded;
|
|
PtrToArg<int64_t>::encode(p_bone, &p_bone_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_bone_encoded);
|
|
}
|
|
|
|
int32_t TwoBoneIK3D::get_end_bone(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_end_bone")._native_ptr(), 923996154);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (0));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<int64_t>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_use_virtual_end(int32_t p_index, bool p_enabled) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_use_virtual_end")._native_ptr(), 300928843);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
int8_t p_enabled_encoded;
|
|
PtrToArg<bool>::encode(p_enabled, &p_enabled_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_enabled_encoded);
|
|
}
|
|
|
|
bool TwoBoneIK3D::is_using_virtual_end(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("is_using_virtual_end")._native_ptr(), 1116898809);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (false));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<int8_t>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_extend_end_bone(int32_t p_index, bool p_enabled) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_extend_end_bone")._native_ptr(), 300928843);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
int8_t p_enabled_encoded;
|
|
PtrToArg<bool>::encode(p_enabled, &p_enabled_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_enabled_encoded);
|
|
}
|
|
|
|
bool TwoBoneIK3D::is_end_bone_extended(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("is_end_bone_extended")._native_ptr(), 1116898809);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (false));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<int8_t>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_end_bone_direction(int32_t p_index, SkeletonModifier3D::BoneDirection p_bone_direction) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_end_bone_direction")._native_ptr(), 2838484201);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
int64_t p_bone_direction_encoded;
|
|
PtrToArg<int64_t>::encode(p_bone_direction, &p_bone_direction_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_bone_direction_encoded);
|
|
}
|
|
|
|
SkeletonModifier3D::BoneDirection TwoBoneIK3D::get_end_bone_direction(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_end_bone_direction")._native_ptr(), 1843036459);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (SkeletonModifier3D::BoneDirection(0)));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return (SkeletonModifier3D::BoneDirection)::godot::internal::_call_native_mb_ret<int64_t>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
void TwoBoneIK3D::set_end_bone_length(int32_t p_index, float p_length) {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("set_end_bone_length")._native_ptr(), 1602489585);
|
|
CHECK_METHOD_BIND(_gde_method_bind);
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
double p_length_encoded;
|
|
PtrToArg<double>::encode(p_length, &p_length_encoded);
|
|
::godot::internal::_call_native_mb_no_ret(_gde_method_bind, _owner, &p_index_encoded, &p_length_encoded);
|
|
}
|
|
|
|
float TwoBoneIK3D::get_end_bone_length(int32_t p_index) const {
|
|
static GDExtensionMethodBindPtr _gde_method_bind = ::godot::gdextension_interface::classdb_get_method_bind(TwoBoneIK3D::get_class_static()._native_ptr(), StringName("get_end_bone_length")._native_ptr(), 2339986948);
|
|
CHECK_METHOD_BIND_RET(_gde_method_bind, (0.0));
|
|
int64_t p_index_encoded;
|
|
PtrToArg<int64_t>::encode(p_index, &p_index_encoded);
|
|
return ::godot::internal::_call_native_mb_ret<double>(_gde_method_bind, _owner, &p_index_encoded);
|
|
}
|
|
|
|
} // namespace godot
|