aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/csharp_script.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Mono: Improve 'script class not found' errorIgnacio Etcheverry2018-06-011-5/+12
| | | | | | | No longer printed when using using placeholder script instances (for non-tool scripts in the editor). Print different error if the project assembly is not loaded (cherry picked from commit c8945fe7d81c6168e300375d2e6d2a9b01612496)
* Mono: Do not spam script class not found errorIgnacio Etcheverry2018-04-281-10/+9
| | | | | | Print this error only when trying to instantiate the script. This way we prevent errors being printed for source files which are not meant to be used as scripts. (cherry picked from commit f8ce412560ed3061340f4b0b9e0457a1249fb528)
* Mono: Fix crash on script load if the scripts domain isn't loadedIgnacio Etcheverry2018-04-281-6/+14
| | | | (cherry picked from commit 89e84185e8cbd08531ae33554cf78ffba692cf7a)
* Mono: Avoid invalid class names.Andreas Haas2018-04-151-2/+24
| | | | | | | | | Disallow reserved keywords as class names and prefix base class with the Godot namespace if it's the same as the class name. Fixes #12483 (cherry picked from commit 700d07cf7cae4e28de107e0c274b27c857d98450)
* Mono: Add project export pluginIgnacio Etcheverry2018-04-151-0/+2
| | | | (cherry picked from commit 9fd606c549ac53ba2ab1a877be564b1fb56531db)
* fix release builds with monoMichele Valente2018-02-271-5/+0
| | | | | | | | "_signals" and "signals_invalidated" were moved out of the "TOOLS_ENABLED" directive. Updated also the two "update_signals" and "_update_signals" methods so it makes sense. (cherry picked from commit 3c7d9001bc9591368d743e9bd6cc29a74c7bddd5)
* Mono: Better versioning and gracefully unloading of Godot API assembliesIgnacio Etcheverry2018-02-261-1/+1
| | | | (cherry picked from commit f37090ccf4f699800a43878273b8b94b5906f4bc)
* implement signal related methods in csharp_script so signals can be used ↵Paul Joannon2018-02-191-5/+63
| | | | | | with emit (cherry picked from commit cfbd7fd21e6630cc513ac3a36849c0f796d142c3)
* add a [Signal] attribute to CSharpScriptsPaul Joannon2018-02-191-1/+49
| | | | (cherry picked from commit efd52cd1725145dc9c8038477dbe133b23868e99)
* Added async and await as C# keywords.Nathan Warden2018-02-051-3/+7
| | | | (cherry picked from commit 3dcf0567a11887a460aefc76b3bce8636d688019)
* Mono: Remove automatic script multilevel callsIgnacio Etcheverry2018-02-051-20/+9
| | | | (cherry picked from commit 84437b48645ac688bd182eb9f5f58896e46a752f)
* Mono: Fix build errors with tools=no and target=releaseIgnacio Etcheverry2018-01-271-0/+8
|
* Merge pull request #16016 from neikeq/issue-13316Ignacio Etcheverry2018-01-241-2/+7
|\ | | | | Fix CSharpInstance::call not initializing CallError
| * Fix CSharpInstance::call not initializing CallErrorIgnacio Etcheverry2018-01-241-2/+7
| |
* | fix marshalling when a function is returning an object from c#Paul Joannon2018-01-181-4/+4
|/
* Mono: Some StackTrace to StackInfo[] fixesIgnacio Etcheverry2018-01-121-1/+5
| | | | | | - Sometimes `StackFrame.GetMethod()` returns null (e.g.: latest frame of a `MissingMethodException`). Still not sure what to do with that frame (maybe skip it), but at least it no longer fails. - Skip `CSharpLanguage::debug_get_current_stack_info()` if an error is printed from `GDMonoUtils::update_corlib_cache()`. - Fix crash when calling `GDMonoUtils::print_unhandled_exception(exc)` if there is no ScriptDebugger attached.
* Bind many more properties to scriptsBojidar Marinov2018-01-121-1/+1
| | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* Mono: Some fixes for #15463Ignacio Etcheverry2018-01-091-1/+1
|
* Mono: Implement stack info for errors and exceptionsIgnacio Etcheverry2018-01-091-3/+69
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Mono: Add properties support in scriptsIgnacio Etcheverry2018-01-041-84/+167
|
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Mono: Change BindingsGenerator singleton to avoid StringName leaksIgnacio Etcheverry2018-01-011-0/+8
|
* Mono: Script lifetime fixesIgnacio Etcheverry2018-01-011-23/+61
| | | | | | - alloc_language_binding: Use strong GC handle as well for references. Fixes #15138 - Set the native instance field of Godot.Object to IntPtr.Zero when it's freed. - Create weak handles without tracking resurrection (that was causing trouble). This means we have to call notification predelete before queueing a native Object for deletion, and use the MonoObject* passed by the finalizer because the weak GC handle target will return NULL at this point.
* Mono: Make the bindings generator output enumsIgnacio Etcheverry2017-12-241-1/+1
| | | | - Switch to PascalCase for constants names
* Style: Apply new clang-format 5.0 style to all filesRémi Verschelde2017-12-071-2/+2
|
* Exported variables now show in the correct order.Nathan Warden2017-12-021-2/+2
|
* Rename Rect3 to AABB.Ferenc Arn2017-11-171-1/+1
| | | | Fixes #12973.
* Merge pull request #12549 from neikeq/seriously-do-theyIgnacio Etcheverry2017-11-011-0/+11
|\ | | | | Mono cleanup fixes
| * Make sure gchandle bindings are released before cleanupIgnacio Etcheverry2017-11-011-0/+11
| |
* | Mono: support custom script templates.Andreas Haas2017-10-311-0/+62
|/ | | | Also fixes a bug that prevented methods like `duplicate()` from copying the source code. (Copied from GDScript implementation)
* Mono: Add build project button and reload intervalIgnacio Etcheverry2017-10-291-0/+4
|
* Mono: Use "UnnamedProject" if application/config/name is emptyUnknown2017-10-271-4/+7
|
* Merge pull request #12405 from Jerome67000/clean_getnodetypeRémi Verschelde2017-10-261-5/+0
|\ | | | | | | | | Removes Script::get_node_type() [ci skip]
| * Removes Script::get_node_type()Jerome670002017-10-251-5/+0
| | | | | | | | used before GDScript, with squirrel apparently
* | Fix default C# scriptPrzmk2017-10-251-1/+1
|/
* Merge pull request #12365 from neikeq/pRémi Verschelde2017-10-241-2/+9
|\ | | | | Add ScriptLanguage::supports_builtin_mode and improve ScriptCreateDialog
| * Add ScriptLanguage::supports_builtin_mode and improve ScriptCreateDialogIgnacio Etcheverry2017-10-241-2/+9
| | | | | | | | | | - Make ScriptCreateDialog disable the built-in script checked button if the language does not support it. - ScriptLanguage's get_template and make_template now receive the script path as class name if the the script language does not have named classes.
* | Add _process(delta) to new script templates. Closes #11994.mhilbrunner2017-10-221-1/+8
|/
* Mono: Fix warning about exported static fieldsIgnacio Etcheverry2017-10-181-1/+2
|
* Mono: Fix build with tools=no or target=releaseIgnacio Etcheverry2017-10-181-0/+2
|
* Export attribute fixes and improvementsIgnacio Etcheverry2017-10-171-17/+31
| | | | | | - Allow non-public fields to be exported as well (to avoid confusion). - Set PROPERTY_HINT_RESOURCE_TYPE for resource derived fields. - Support enums and automatically fill PROPERTY_HINT_ENUM's hint_string for enum fields.
* Merge pull request #12138 from neikeq/iRémi Verschelde2017-10-161-6/+9
|\ | | | | Avoid adding built-in script path to csproj
| * Avoid adding built-in script path to csprojIgnacio Etcheverry2017-10-161-6/+9
| |
* | Improve signature of signal target generated functionIgnacio Etcheverry2017-10-161-4/+73
|/
* Merge pull request #12135 from neikeq/gIgnacio Etcheverry2017-10-161-42/+2
|\ | | | | Re-write SignalAwaiter implementation
| * Re-write SignalAwaiter implementationIgnacio Etcheverry2017-10-161-42/+2
| | | | | | | | Old implementation had issues where you could only await on the same signal of the same source once.
* | Merge pull request #11954 from neikeq/dIgnacio Etcheverry2017-10-111-0/+7
|\ \ | |/ |/| Added 'exposed' field to ClassInfo for registered classes
| * Mono: Make use of ClassInfo's exposed APIIgnacio Etcheverry2017-10-091-0/+7
| | | | | | | | | | - BindingsGenerator only generates exposed classes. - Fix creation of managed instances of non-exposed classes.
* | Fixed IntPtr unboxing (#11949)Ignacio Etcheverry2017-10-091-1/+1
| | | | | | | | | | - Fix boolean never reset to false - Fix IntPtr unboxing and cleanup