Age | Commit message (Collapse) | Author |
|
Co-authored-by: Dmitrii Maganov <vonagam@gmail.com>
|
|
|
|
GDScript enum fixes & refactor
|
|
|
|
This prevents that the NIL address is filled with another value, which
causes problems for some instructions that read from NIL.
|
|
|
|
|
|
|
|
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.
It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).
We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).
Also fixed "cf." Frenchism - it's meant as "refer to / see".
|
|
GDScript: Error when assigning return value of void function
|
|
Inner classes get their docs back
|
|
This also makes built-in method calls empty the return value when the
method is void, to avoid keeping returning a garbage value in such case.
|
|
|
|
|
|
GDScript: Fix cast producing null
|
|
|
|
|
|
|
|
|
|
GDScript: Fix subclass script path issues
|
|
GDScript: Unify StringName and String
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
change warnings=all to use /W4.
|
|
Looking at the original PR, I believe this is the original intent, but it now means that previously dead code is now executed.
|
|
- RPC configurations are now dictionaries.
- Script.get_rpc_methods renamed to Script.get_rpc_config.
- Node.rpc[_id] and Callable.rpc now return an Error.
- Refactor MultiplayerAPI to allow extension.
- New MultiplayerAPI.rpc method with Array argument (for scripts).
- Move the default MultiplayerAPI implementation to a module.
|
|
|
|
|
|
|
|
GDScript: Fix setter being called in chains for shared types
|
|
When a type is shared (i.e. passed by reference) it doesn't need to be
called in a setter chain (e.g. `a.b.c = 0`) since it will be updated in
place.
This commit adds an instruction that jumps when the value is shared so
it can be used to skip those cases and avoid redundant calls of setters.
It also solves issues when assigning to sub-properties of read-only
properties.
|
|
Initialize them with the implicit method so they're not related to the
overriding of the `_ready` method of the script but instead are always
set.
|
|
So it's not shown on docs or when listing the methods. This also avoids
being able to call it using the `call()` function.
|
|
|
|
Fix logic errors in match-statement Array & Dictionary patterns
|
|
The `%` is used in scene unique nodes. Now `%` can also be used instead
of `$` for the shorthand, besides being allowed generally anywhere in
the path as the prefix for a node name.
|
|
|
|
* Map is unnecessary and inefficient in almost every case.
* Replaced by the new HashMap.
* Renamed Map to RBMap and Set to RBSet for cases that still make sense
(order matters) but use is discouraged.
There were very few cases where replacing by HashMap was undesired because
keeping the key order was intended.
I tried to keep those (as RBMap) as much as possible, but might have missed
some. Review appreciated!
|
|
Adds a new, cleaned up, HashMap implementation.
* Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing).
* Keeps elements in a double linked list for simpler, ordered, iteration.
* Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much
for performance vs keeping the key, but helps replace old code).
* Uses a more modern C++ iterator API, deprecates the old one.
* Supports custom allocator (in case there is a wish to use a paged one).
This class aims to unify all the associative template usage and replace it by this one:
* Map<> (whereas key order does not matter, which is 99% of cases)
* HashMap<>
* OrderedHashMap<>
* OAHashMap<>
|
|
These typedefs don't save much typing compared to the full `Ref<Resource>`
and `Ref<RefCounted>`, yet they sometimes introduce confusion among
new contributors.
|
|
|
|
|
|
|