Add PackedRealArray as an alias for PackedFloat(32/64)Array

pull/1340/head
Aaron Franke 2023-12-19 04:17:20 -06:00
parent 48afa82f29
commit 646c71c277
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 6 additions and 0 deletions

View File

@ -356,6 +356,12 @@ String vformat(const String &p_text, const VarArgs... p_args) {
#include <godot_cpp/variant/builtin_vararg_methods.hpp>
#ifdef REAL_T_IS_DOUBLE
using PackedRealArray = PackedFloat64Array;
#else
using PackedRealArray = PackedFloat32Array;
#endif // REAL_T_IS_DOUBLE
} // namespace godot
#endif // GODOT_VARIANT_HPP