diff options
| author | poke1024 | 2018-01-10 19:36:53 +0100 |
|---|---|---|
| committer | poke1024 | 2018-01-10 19:36:53 +0100 |
| commit | 75d69fb4ecfe3bc925bd27700782d884e88369cc (patch) | |
| tree | 29e863213b69e6d2c1fb192a0c36dae5327bb594 /core/variant_call.cpp | |
| parent | a60896869e6c17f674ff25bee87cabb54cd4403d (diff) | |
| download | godot-75d69fb4ecfe3bc925bd27700782d884e88369cc.tar.gz godot-75d69fb4ecfe3bc925bd27700782d884e88369cc.tar.zst godot-75d69fb4ecfe3bc925bd27700782d884e88369cc.zip | |
Diffstat (limited to 'core/variant_call.cpp')
| -rw-r--r-- | core/variant_call.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index e9f7af3f6..5ee7f48dd 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -490,6 +490,7 @@ struct _VariantCall { VCALL_LOCALMEM1(Array, erase); VCALL_LOCALMEM0(Array, sort); VCALL_LOCALMEM2(Array, sort_custom); + VCALL_LOCALMEM0(Array, shuffle); VCALL_LOCALMEM2R(Array, bsearch); VCALL_LOCALMEM4R(Array, bsearch_custom); VCALL_LOCALMEM0R(Array, duplicate); @@ -1634,6 +1635,7 @@ void register_variant_methods() { ADDFUNC0RNC(ARRAY, NIL, Array, pop_front, varray()); ADDFUNC0NC(ARRAY, NIL, Array, sort, varray()); ADDFUNC2NC(ARRAY, NIL, Array, sort_custom, OBJECT, "obj", STRING, "func", varray()); + ADDFUNC0NC(ARRAY, NIL, Array, shuffle, varray()); ADDFUNC2R(ARRAY, INT, Array, bsearch, NIL, "value", BOOL, "before", varray(true)); ADDFUNC4R(ARRAY, INT, Array, bsearch_custom, NIL, "value", OBJECT, "obj", STRING, "func", BOOL, "before", varray(true)); ADDFUNC0NC(ARRAY, NIL, Array, invert, varray()); |
