Age | Commit message (Collapse) | Author |
|
Complain if casting a freed object in a debug session
|
|
The idea is to give the user a chance to realize a mistake that will cause a crash in a release build (or with no debugger attached).
|
|
|
|
GDScript: Do not complete lambda arguments from parent class
|
|
Disallow class names to be the same as global names
|
|
Fix loading of interdependent autoloads
|
|
|
|
GDScript: Allow access to outer constant and enum values
|
|
Fix parse error on statement-less files with only newlines, add a warning for empty files.
|
|
Also forbid autoloads to have the same name as global script class.
|
|
add an empty file warning,
add relevant tests.
|
|
Variable->assignment needs to be incremented when assigned a value.
Also fixed and improved unit test 'variable_declaration.gd'.
Fixes #52551
|
|
Fix crash with consecutive commas in Dictionary
|
|
Fix crash when writing $. in the editor
|
|
Call _init on base class if one does not exist.
|
|
|
|
Prevent crash when awaiting in a getter/setter
|
|
Fix gdscript pattern matching expressions
|
|
Show help for built-in functions (@GlobalScope)
|
|
Move multiplayer classes to "core/multiplayer" subdir.
Move the RPCConfig and enums (TransferMode, RPCMode) to a separate
file (multiplayer.h), and bind them to the global namespace.
Move the RPC handling code to its own class (RPCManager).
Renames "get_rpc_sender_id" to "get_remote_sender_id".
|
|
ZuBsPaCe/gdscript-unused-private-class-variable-fix
GDScript: Fix for UNUSED_PRIVATE_CLASS_VARIABLE
|
|
Otherwise private member variables will always lead to UNUSED_PRIVATE_CLASS_VARIABLE.
|
|
|
|
Since lambdas are not overriding methods from the parent class, they
should not try to check inheritance for signature matching.
|
|
|
|
Move the autoload resolution to runtime by loading it into the stack
with an extra instruction. This allows an autoload to use another
autoload singleton independent of load order.
|
|
Rename `String::is_rel_path` to `String::is_relative_path`
|
|
|
|
|
|
The strings no longer needs to be in order.
The last parameter (channel), still requires all the other parameters to
be present.
|
|
This commit completely removes the RPC_MODE_MASTER ("master" keyword),
and renames the RPC_MODE_PUPPET to RPC_MODE_AUTHORITY ("auth" keyword).
This commit also renames the "Node.[get|set]_network_master" methods to
"Node.[get|set]_network_authority".
This commit also renames the RPC_MODE_REMOTE constant to RPC_MODE_ANY.
RPC_MODE_MASTER in Godot 3.x meant that a given RPC would be callable by
any puppet peer on the master, while RPC_MODE_PUPPET meant that it would
be callable by the master on any puppet.
Beside proving to be very confusing to the user (referring to where it
could be called instead of who can call it) the RPC_MODE_MASTER is quite
useless. It is almost the same as RPC_MODE_REMOTE (anyone can call) with
the exception that the network master cannot. While this could be useful
to check in some case, in such a function you would anyway need to check
in code who is the caller via get_rpc_sender_id(), so adding the check
there for those rare cases does not warrants a dedicated mode.
|
|
Print error message when await is not followed by signal or coroutine
|
|
GDScript test style fix
|
|
When await was not followed by a signal or coroutine the GDScript parser would
crash.
This fix will check if await is followed by a signal or coroutine in case that
isn't true (element == nullptr) then an error message is printed.
|
|
Use sorted map for autoloads in ProjectSettings to preserve order.
|
|
|
|
Correct null and boolean values being capitalised by the str command
|
|
|
|
|
|
|
|
Resolves #51620.
|
|
This makes the documentation about creating and running GDScript
integration tests more discoverable.
|
|
|
|
|
|
Replace HTTP URLs with HTTPS for sites with HTTPS versions
|
|
[cppcheck] Remove some redundant assignments.
|
|
|
|
* New syntax is type safe.
* New syntax allows for type safe virtuals in native extensions.
* New syntax permits extremely fast calling.
Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`.
These will require API rework on a separate PR as they work different than the rest of the functions.
Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
|
|
Use used_in_transfer instead of used_in_compute twice.
|
|
GDScript: Fix inner classes and preloaded scripts as types
|