summaryrefslogtreecommitdiffstats
path: root/modules/mono
Commit message (Collapse)AuthorAgeFilesLines
* Remove more deprecated methods and codeRémi Verschelde2020-02-134-61/+0
|
* Remove deprecated sync and slave networking keywordsRémi Verschelde2020-02-134-18/+2
| | | | | | Those keywords were deprecated for 3.1 in #22087. Also fix token name for `TK_REMOTE`, should be "remote" like the keyword.
* Fix Mono and GDNative builds after changes to ObjectIDRémi Verschelde2020-02-122-9/+4
| | | | | | | | | | Issues caused by cf8c679a23b21d6c6f29cba6a54eaa2eed88bf92. The Mono change is actually a bugfix (used the int instead of ObjectID by mistake). The GDNative change is a temporary revert until a more exhaustive approach is taken to make 'godot_int' 64-bit, is confirmed wanted by GDNative users.
* Optmized data sent during RPC and RSet calls.Andrea Catania2020-02-122-51/+192
| | | | | | | | | | - Now is sent the method ID rather the full function name. - The passed IDs (Node and Method) are compressed so to use less possible space. - The variant (INT and BOOL) is now encoded and compressed so to use much less data. - Optimized RPCMode retrieval for GDScript functions. - Added checksum to assert the methods are the same across peers. This work has been kindly sponsored by IMVU.
* [Mono] Basis/Transforms Array operator comments and improvementsAaron Franke2020-02-105-74/+109
| | | | The behavior for Basis and Transform2D is unchanged, and Transform gets new behavior. All of the behavior is identical to GDScript's behavior.
* Merge pull request #35649 from aaronfranke/color-unsignedRémi Verschelde2020-02-091-14/+14
|\ | | | | Use uint/ulong for Color in C#
| * Use uint/ulong for Color in C#Aaron Franke2020-01-291-14/+14
| |
* | Merge pull request #36013 from raulsntos/fix-issubsequenceofRémi Verschelde2020-02-091-2/+2
|\ \ | | | | | | Avoid going out of bounds in IsSubsequenceOf
| * | Avoid going out of bounds in IsSubsequenceOfRaul Santos2020-02-081-2/+2
| | | | | | | | | | | | Closes #35598
* | | Remove do{ } while(0) wrapper around error macros.Marcel Admiraal2020-02-081-2/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As pointed out by Faless, a do{ } while(0) wrapper around a continue or break just ends the do{ } while(0) loop. The do{ } while(0) loop exists to enable the macro to be used as a function which requires a semicolon. The alternative approach is to use an if(1) { } else ((void)0) wrapper. Since the macro already has an if(unlikely(m_cond)) { } this patch simply adds the else ((void)0) to this if statement instead. For consistency all the macros have been updated in the same way, and trailing else warnings corrected. However, the wrappers around ERR_PRINT and WARN_PRINT were removed, because they generated too many ambiguous trailing else warnings. They are also single line macros so a wrapper is not needed.
* | Remove the last ERR_PRINTS that was missed by #33391unknown2020-02-071-1/+1
| |
* | Remove duplicate WARN_PRINT macro.Marcel Admiraal2020-02-054-11/+11
| |
* | Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-058-40/+40
| |
* | Fixed GetNodeOrNull<T>Fabián L2020-01-291-1/+1
|/ | | GetNodeOrNull<T> was using GetNode instead of GetNodeOrNull
* Merge pull request #35527 from neikeq/issue-35259Rémi Verschelde2020-01-241-1/+4
|\ | | | | Mono/C#: Fix _update_exports possible crash with Reference types
| * Mono/C#: Fix _update_exports possible crash with Reference typesIgnacio Etcheverry2020-01-241-1/+4
| | | | | | | | | | | | | | | | | | The code was attempting to dynamic cast the native instance to Reference after the managed instance was disposed. As the managed instance acts as a Ref, the native instance was freed during that disposal. This made the dynamic cast fail and we attempted to memdelete a second time. The fix is to make the dynamic cast before disposal.
* | Merge pull request #35524 from neikeq/issue-35496Rémi Verschelde2020-01-241-10/+9
|\ \ | | | | | | Fix C# preprocessor infinite loop and incorrect parsing of `#if!`
| * | Fix C# preprocessor infinite loop and incorrect parsing of `#if!`Ignacio Etcheverry2020-01-241-10/+9
| |/
* | Merge pull request #35491 from neikeq/issue-35450Rémi Verschelde2020-01-232-7/+25
|\ \ | | | | | | Mono/C#: Lighten up unsafe reference checks
| * | Mono/C#: Lighten up unsafe reference checksIgnacio Etcheverry2020-01-232-7/+25
| |/ | | | | | | Because of the weird case with multi-threading and ResourceLoader, it can be the case that a resource is GCed while being referenced again in the main thread. In such cases, a new unsafe reference is created before the finalizer thread removes the previous one.
* | Merge pull request #35478 from neikeq/issue-32260Rémi Verschelde2020-01-231-0/+49
|\ \ | |/ |/| Mono/C#: Add setting to include I18N assemblies in the exported game
| * Mono/C#: Add setting to include I18N assemblies in the exported gameIgnacio Etcheverry2020-01-231-0/+49
| |
* | Merge pull request #35473 from neikeq/default-to-net47Rémi Verschelde2020-01-236-10/+10
|\ \ | | | | | | Mono/C#: Default to net47 for new projects
| * | Mono/C#: Default to net47 for new projectsIgnacio Etcheverry2020-01-236-10/+10
| |/
* / Mono/C#: Add Basis.Slerp, update Quat.Xform and add some math checksIgnacio Etcheverry2020-01-233-7/+49
|/
* Make script class parser errors to not abort the buildIgnacio Etcheverry2020-01-212-4/+14
| | | | | As our script class parser is error prone, we should not impede the build from continuing because of a parsing error. This should be reverted in the future once we switch to Roslyn.
* Add dummy preprocessor for the C# script class parserIgnacio Etcheverry2020-01-211-0/+81
| | | | No attempts are made at conditional compilation. The main if branch is always assumed to be true.
* Mono/C#: Fix error when parsing nested genericsIgnacio Etcheverry2020-01-203-6/+15
| | | | Also fixed the editor not including the parse error message in the error.
* Fix ClassDB API portability with some android and editor classesIgnacio Etcheverry2020-01-192-1/+8
| | | | | | | | | | | | | | | | | | - `EditorNavigationMeshGenerator` was being registered as part of the Core API, even after d3f48f88bb84d22b7805ce971ac86cf1953a29fd. We must make sure to set Editor as the current ClassDB API type before creating an instance. - The `VisualScriptEngineSingleton.constant` property has a property hint string that's different between tools and non-tools builds. This commit makes the hint string to no longer be set in `_bind_methods`, and to instead set it in `_validate_property`. This way it's ignored when calculating the API hash. - `JavaClassWrapper` is now registered in ClassDB on all platforms, using a dummy implementation on platforms other than Android. This fixes API portability between Android and other platforms. - Updated `--class-db-json` command to ignore non-virtual methods that start with an underscore (see: 4be87c6016a5893cbde897924e540df4c988cee5).
* Merge pull request #35208 from neikeq/mono-lazy-thread-attachIgnacio Roldán Etcheverry2020-01-163-42/+128
|\ | | | | Mono/C#: Script interface calls now attach the current thread
| * Mono/C#: Script interface calls now attach the current threadIgnacio Etcheverry2020-01-163-42/+128
| | | | | | | | | | | | | | | | | | Added guards to all C# script interface calls to attach the current thread for the current scope if the thread is not already attached. This is far from ideal, as attaching the thread is not cheap and all managed thread local storage is lost when we detach the thread at the end of the calls. However, it's the best we can do for now to avoid crashing when an unattached thread tries to interact with C# code.
* | Mono/C#: Fix false positive in unsafe reference checksIgnacio Etcheverry2020-01-151-2/+15
|/
* Mono: Fix parsing assembly names as UTF-8Rémi Verschelde2020-01-151-3/+3
| | | | Fixes #27185.
* Mono/C#: Add error checks to detect possible Reference leaksIgnacio Etcheverry2020-01-135-4/+51
|
* Mono/C#: Fix _update_exports() leaking temporary Object/Node instancesIgnacio Etcheverry2020-01-131-0/+13
|
* [Mono]: the C# script icon is now visible in the editor.dankan18902020-01-031-0/+0
|
* Merge pull request #34784 from neikeq/fix-hintpath-godottoolsRémi Verschelde2020-01-031-1/+1
|\ | | | | Mono/C#: Fix wrong HintPath for package in GodotTools
| * Mono/C#: Fix wrong HintPath for package in GodotToolsIgnacio Etcheverry2020-01-031-1/+1
| |
* | [Mono] Color arithmetic operatorsAaron Franke2020-01-031-1/+69
| |
* | [Mono] Make Sign methods consistent with GDScript and System.MathAaron Franke2020-01-021-2/+4
|/
* Mono/C#: Fix comment generation for non-constant param defaultIgnacio Etcheverry2020-01-021-3/+6
| | | | | - Generate the comment for the param, even if the method has no description. - Generate the comment outside the <summary> element.
* Mono/C#: Fix bindings generator with void vararg methodsIgnacio Etcheverry2020-01-021-3/+5
| | | | | | Commit 4d727f1ee6b970298a7c1752ba19b49d7060c405 made it possible for vararg methods to return void. This broke the C# bindings generator which was assuming in one place that vararg methods always return Variant.
* Mono/C#: Make 'GD.Print' and its variants fallback to 'ToString()'Ignacio Etcheverry2020-01-023-33/+153
| | | | | | | | | | Up until now, 'GD.Print' would convert parameters first to Variant and only then to String. This meant parameters that cannot be converted to Variant would be printed as "Null". This commit makes 'GD.Print' fallback to 'System.Object.ToString()' if the parameter could not be converted to Variant. The same applies to all 'GD.Print' variants: 'GD.PrintS', 'GD.PrintT', 'GD.PrintErr' and 'GD.PrintRaw'.
* Mono/C#: Fix GD.PrintErr now showing in the Output panelIgnacio Etcheverry2020-01-021-1/+1
|
* Update copyright statements to 2020Rémi Verschelde2020-01-0179-158/+158
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Merge pull request #34699 from van800/godot-guidIgnacio Roldán Etcheverry2019-12-311-0/+2
|\ | | | | Custom property for Godot generated project
| * add custom property to csproj, which identifies that project is generated by ↵Ivan Shakhov2019-12-301-0/+2
| | | | | | | | Godot
* | Merge pull request #34582 from timothyqiu/forward-declRémi Verschelde2019-12-302-0/+2
|\ \ | | | | | | Cleans up headers included in editor_node.h
| * | Cleans up headers included in editor_node.hHaoyu Qiu2019-12-242-0/+2
| |/
* | Fix msbuild target argumentDan Kramer2019-12-291-1/+1
| |