Fabio Alessandrelli
25226329be
[Net] MultiplayerPeer cleanup, defaults.
2021-09-24 18:40:39 +02:00
Fabio Alessandrelli
7c81ce43ec
[Net] Bind Multiplayer to GDExtension.
2021-09-24 18:40:39 +02:00
Fabio Alessandrelli
5f61b2c797
[Net] StreamPeer GDExtension.
2021-09-24 18:40:39 +02:00
Fabio Alessandrelli
b9e6cc8f4f
[Net] Enable PacketPeer native extensions.
2021-09-24 18:40:39 +02:00
Rémi Verschelde
32ab77ef8f
Merge pull request #52430 from AnilBK/vector2-replacements
2021-09-24 13:04:42 +02:00
Hugo Locurcio
6def32d643
Replace #pragma once
by traditional include guards for consistency
...
`#pragma once` was used in a few files, yet we settled on using
traditional include guards instead.
The PooledList template comment was also moved to allow editors
such as Visual Studio Code to display the comment when hovering
PooledList.
`app.h` was renamed to `app_uwp.h` to be less generic for the
include guard.
2021-09-24 02:33:15 +02:00
Anilforextra
cc51b045da
Construct values only when necessary.
2021-09-23 22:26:07 +05:45
Fabio Alessandrelli
f9ce9a8e10
[ClassDB] Unify construct/extension retrieval.
2021-09-22 18:33:29 +02:00
Fabio Alessandrelli
f724bd1880
[Core] Add ClassDB functions to retrieve/construct extensions.
...
Calling the constructor alone is not enough if the class to be
instantiated is not a base class.
This commit adds two functions, one for retrieving the the extension
class reference, the other to construct an instance using the
constructor and the extension class reference.
2021-09-22 17:46:08 +02:00
Rémi Verschelde
ba57252bd8
Merge pull request #52878 from AnilBK/add-get-center
2021-09-21 21:30:30 +02:00
Anilforextra
90908cd67d
Add Get Center Method for Rect2/Rect2i and AABB.
2021-09-21 21:14:17 +05:45
Rémi Verschelde
61ce8b206e
Merge pull request #52877 from Calinou/add-print-verbose
...
Add `print_verbose()` built-in function to print in verbose mode only
2021-09-21 17:00:58 +02:00
Hugo Locurcio
650b1db4b8
Add print_verbose()
built-in function to print in verbose mode only
...
This can be used as a shorthand for:
if OS.is_stdout_verbose():
print("...")
Unlike `print_debug()`, this works in release builds too and can
be toggled off in debug builds.
2021-09-21 15:59:49 +02:00
Eric M
28b7c1be80
Improve implementation of builtin action overrides
2021-09-21 22:25:31 +10:00
Rémi Verschelde
0068247ab6
Merge pull request #52513 from Ev1lbl0w/fix_path_double_slash
...
Fix path with multiple slashes not being corrected on templates
2021-09-20 13:00:29 +02:00
Rémi Verschelde
89417ba75b
Merge pull request #52398 from deakcor/dev-transform
2021-09-20 08:46:51 +02:00
Vincent D
aa82cb6f35
Expose get_skew for transform2d and add new constructor
...
Expose set_scale and set_skew for transform2d
Replacing float by real_t
Adding const parameters
Updated transform2d doc
2021-09-19 17:10:05 +02:00
George Marques
262d9397fb
Allow indexing of String values in scripting languages
2021-09-17 16:24:56 -03:00
Rémi Verschelde
220b69ab56
Merge pull request #52450 from aaronfranke/they-came-from-scale
...
Replace Vector3.to_diagonal_matrix with Basis.from_scale
2021-09-17 19:38:36 +02:00
George Marques
455e142d37
Allow comparing equality between builtin types and null
2021-09-17 12:33:52 -03:00
Aaron Franke
bf0213470c
Replace Vector3.to_diagonal_matrix with Basis.from_scale
2021-09-17 10:30:30 -05:00
Rémi Verschelde
191c34eb0d
Merge pull request #52734 from lucypero/thread_override_master
2021-09-16 21:45:04 +02:00
Lucy
e9723efd34
Allow for platform Thread implementation override
2021-09-16 11:23:29 -03:00
Rémi Verschelde
104a6191fd
Merge pull request #52739 from BastiaanOlij/gdextension_array_index
2021-09-16 15:15:02 +02:00
Rémi Verschelde
46e37545b8
Merge pull request #52740 from akien-mga/os-get_locale-language
...
Implement `OS::get_locale_language()` helper method
2021-09-16 14:23:06 +02:00
Bastiaan Olij
25d0e4bb5b
Add GD extensions operator functions for arrays
2021-09-16 22:00:51 +10:00
Rémi Verschelde
ca5c28fed4
Merge pull request #52358 from kleonc/astar_error_messages
...
`AStar` Add error messages
2021-09-16 13:36:13 +02:00
Rémi Verschelde
910c7dbdb7
Merge pull request #52735 from BastiaanOlij/gdextension_property_group
...
Add property group and subgroup registration to extensions
2021-09-16 11:02:59 +02:00
Rémi Verschelde
def99c7baf
Implement OS::get_locale_language()
helper method
...
This method extracts the 2 or 3-letter language code from `OS::get_locale()`,
making it easier for users to identify the "main" language code for users
that might have different OS locales due to different OS or region, but
should be matched to the same translation (e.g. "generic" Spanish).
Fixes #40703 .
2021-09-16 09:34:58 +02:00
Juan Linietsky
e2bd0a0a73
Merge pull request #52571 from timothyqiu/expose-enum
...
Expose enum related methods in ClassDB
2021-09-15 23:43:35 -03:00
Bastiaan Olij
12868791f2
Add property group and subgroup registration to extensions
2021-09-16 12:37:43 +10:00
Aaron Franke
5d03c0e0b6
Fix String::num_real and String test cases when compiling with doubles
2021-09-15 13:41:12 -05:00
Rémi Verschelde
fbef32ab46
Merge pull request #52693 from akien-mga/fixup-inputmap-macos-override
...
InputMap: Fixup `macos` feature tag overrides after #52291
2021-09-15 13:20:40 +02:00
Rémi Verschelde
07a58230ea
InputMap: Fixup macos
feature tag overrides after #52291
...
Fixes #52691 .
2021-09-15 11:48:54 +02:00
Jacob Edie
2b292a1a2a
--single-window is passed through project manager.
...
This means you can start godot with --single-window
2021-09-15 10:20:50 +02:00
Rémi Verschelde
3705ad7d8f
Merge pull request #52123 from lightspot21/fix-placement-new-warning
...
Silence false-positive warning for malformed placement new on GCC 11.1
2021-09-15 09:31:42 +02:00
Rémi Verschelde
0e7beb183a
Merge pull request #52562 from BastiaanOlij/gd_extensions_register_drivers
...
Add driver types to GD extension initialisation levels
2021-09-15 08:46:43 +02:00
Rémi Verschelde
1201ba6649
Merge pull request #52291 from Calinou/inputmap-rename-osx-macos
...
Rename `osx` to `macos` in input map feature tag handling
2021-09-15 08:45:46 +02:00
Hugo Locurcio
9b1986fb9c
Rename osx
to macos
in input map feature tag handling
...
This follows the general feature tag rename for 4.0.
2021-09-15 03:12:18 +02:00
PouleyKetchoupp
2ca94e51e4
Clean convex hull decomposition code
...
Remove unnecessary conversion between triangle data and vertex data
whenever possible.
2021-09-14 17:14:06 -07:00
Grigoris Pavlakis
abef2b7194
Fix placement new on zero-sized region warning on GCC 11.1
...
On latest (11.1 as of this commit) GCC, the following warning is
continuously issued during build:
warning: placement new constructing an object of type
'SafeNumeric<unsigned int>' and size '4' in a region of type
'uint32_t*' {aka 'unsigned int*'} and size '0' [-Wplacement-new=]
This happens because on 98ceb60eb4
the new operator override used
was dropped and replaced with standard placement new. GCC sees the
subtraction from the pointer and complains as it thinks that the
SafeNumeric is placed outside an allocation, not knowing that the
address requested is already inside one.
After suggestions, the false positive is silenced, with no other
changes.
2021-09-15 00:07:21 +03:00
Fabio Alessandrelli
c5a979eba5
Merge pull request #52613 from V-Sekai/fix_custom_sync_commands
...
Fix custom multiplayer sync commands
2021-09-14 21:27:12 +02:00
Rémi Verschelde
1cec7057bf
Merge pull request #52535 from e8newallm/52490-type_conversion
...
Added explicit type conversion to uint32_t
2021-09-14 15:36:52 +02:00
Aaron Franke
3a902c66c4
Revert some URLs from the "Replace HTTP URLs with HTTPS" PR
2021-09-13 15:18:35 -05:00
Rémi Verschelde
70ba366743
Merge pull request #50375 from Paulb23/code_edit_unit_tests
2021-09-13 21:51:20 +02:00
Rémi Verschelde
41562b9198
Merge pull request #52049 from theraot/master
2021-09-13 16:49:24 +02:00
Matthew Newall
f048a9ad4e
Added explicit type conversions
2021-09-13 14:26:47 +00:00
Bastiaan Olij
f9849a2717
Add driver types to GD extension initialisation levels
2021-09-13 18:50:00 +10:00
SaracenOne
dace12082b
Fix custom multiplayer sync commands
2021-09-12 21:20:10 +01:00
Haoyu Qiu
d2aef4c439
Expose enum related methods in ClassDB
2021-09-11 20:33:05 +08:00