mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Restore numeric from String constructors
This commit is contained in:
parent
63c0dc690e
commit
a43319b6c9
4 changed files with 74 additions and 0 deletions
|
|
@ -68,11 +68,13 @@ void Variant::_register_variant_constructors() {
|
|||
add_constructor<VariantConstructor<int64_t, int64_t>>(sarray("from"));
|
||||
add_constructor<VariantConstructor<int64_t, double>>(sarray("from"));
|
||||
add_constructor<VariantConstructor<int64_t, bool>>(sarray("from"));
|
||||
add_constructor<VariantConstructorFromString<int64_t>>(sarray("from"));
|
||||
|
||||
add_constructor<VariantConstructNoArgs<double>>(sarray());
|
||||
add_constructor<VariantConstructor<double, double>>(sarray("from"));
|
||||
add_constructor<VariantConstructor<double, int64_t>>(sarray("from"));
|
||||
add_constructor<VariantConstructor<double, bool>>(sarray("from"));
|
||||
add_constructor<VariantConstructorFromString<double>>(sarray("from"));
|
||||
|
||||
add_constructor<VariantConstructNoArgs<String>>(sarray());
|
||||
add_constructor<VariantConstructor<String, String>>(sarray("from"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue