summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #16927 from neikeq/rework-refcount-notifyJuan Linietsky2018-08-251-4/+71
|\ | | | | Notify instance binding data api of refcount increment/decrement
| * Notify instance binding data api of refcount increment/decrementIgnacio Etcheverry2018-08-231-4/+71
| |
* | Add print_verbose to print to stdout only in verbose modeRémi Verschelde2018-08-241-5/+1
| | | | | | | | | | | | Equivalent of the cumbersome: if (OS::get_singleton()->is_stdout_verbose()) print_line(msg);
* | Fix case where exported properties value is lostIgnacio Etcheverry2018-07-291-16/+59
| | | | | | | | | | | | | | | | | | | | Fixes exported property modified values lost when creating a placeholder script instance with a failed script compilation - Object set/get will call PlaceHolderScriptInstance's new fallback set/get methods as a last resort. This way, placeholder script instances can keep the values for storage or until the script is compiled successfuly. - Script::can_instance() will only return true if a real script instance can be created. Otherwise, in the case of placeholder script instances, it will return false. - Object::set_script(script) is now in charge of requesting the creation of placeholder script instances. It's no longer Script::instance_create(owner)'s duty. - PlaceHolderScriptInstance has a new method set_build_failed(bool) to determine whether it should call into its script methods or not. - Fixed a few problems during reloading of C# scripts.
* | Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
* | Fix continuous attempt to reload domain with API assemblies out of syncIgnacio Etcheverry2018-07-251-20/+26
| |
* | Mono: Fix domain reload never triggeringIgnacio Etcheverry2018-07-251-0/+2
| |
* | Fix '!valid' error spam on C# script instance createIgnacio Etcheverry2018-07-251-6/+6
| |
* | Mono: Fix null dereferencesIgnacio Etcheverry2018-07-251-0/+3
| |
* | Merge pull request #15880 from neikeq/better-collectionsIgnacio Etcheverry2018-07-231-1/+1
|\ \ | | | | | | Mono: Add Dictionary and Array classes
| * | Add Array and Dictionary wrapper classes to C#Ignacio Etcheverry2018-07-201-1/+1
| | |
* | | Mono: Default to not shipping C# scripts contentRémi Verschelde2018-07-221-1/+1
|/ / | | | | | | Fixes #20053.
* | Merge pull request #19872 from exts/export_signalsIgnacio Etcheverry2018-07-041-32/+25
|\ \ | | | | | | Mono: Fixes annotated signal loading in exported binaries
| * | Mono: Fixes annotated signal loading in exported binaries=2018-07-031-32/+25
| | |
* | | Merge pull request #16987 from neikeq/pending-exceptionsIgnacio Etcheverry2018-07-041-21/+23
|\ \ \ | | | | | | | | Mono: Pending exceptions and cleanup
| * | | Mono: Pending exceptions and cleanupIgnacio Etcheverry2018-07-041-21/+23
| |/ /
* | | Changes to default C# script template (#19940)Kelly Thomas2018-07-041-10/+10
| | |
* | | Small changes to the comments in the script templates.Michael Alexsander Silva Dias2018-06-111-8/+6
|/ /
* | Merge pull request #18792 from PJB3005/18-05-11-objectdb-verbose-monoRémi Verschelde2018-06-051-0/+6
|\ \ | | | | | | Fixes ObjectDB leak printout with mono.
| * | Fixes ObjectDB leak printout with mono.Pieter-Jan Briers2018-05-111-0/+6
| | | | | | | | | | | | Fixes #18767
* | | New sync keywords in GDScript, NativeScript, MonoFabio Alessandrelli2018-05-291-3/+9
| | |
* | | Refactor RPCMode enum and checksFabio Alessandrelli2018-05-291-10/+10
| | |
* | | Revert "RPCMode refactor, more sync modes"Max Hilbrunner2018-05-291-19/+13
| | |
* | | New sync keywords in GDScript, NativeScript, MonoFabio Alessandrelli2018-05-261-3/+9
| | |
* | | Refactor RPCMode enum and checksFabio Alessandrelli2018-05-261-10/+10
| | |
* | | Merge pull request #19149 from neikeq/xIgnacio Etcheverry2018-05-241-5/+12
|\ \ \ | | | | | | | | Mono: Improve 'script class not found' error
| * | | Mono: Improve 'script class not found' errorIgnacio Etcheverry2018-05-241-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
* | | | Capitalized comments of methods created by the Connect Signal dialog.Michael Alexsander Silva Dias2018-05-231-1/+1
|/ / /
* / / -New inspector.Juan Linietsky2018-05-151-1/+1
|/ / | | | | | | | | | | | | -Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
* | Changed periods in the script templates.Michael Alexsander Silva Dias2018-05-021-1/+1
| |
* | Mono: Do not spam script class not found errorIgnacio Etcheverry2018-04-241-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.
* | Mono: Fix crash on script load if the scripts domain isn't loadedIgnacio Etcheverry2018-04-241-6/+14
| |
* | Mono: Avoid invalid class names.Andreas Haas2018-03-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
* | Mono: Better versioning and gracefully unloading of Godot API assembliesIgnacio Etcheverry2018-02-251-1/+1
| |
* | Merge pull request #16804 from Valentactive/fix_mono_template_compilingRémi Verschelde2018-02-251-5/+0
|\ \ | | | | | | fix template builds with mono
| * | fix release builds with monoMichele Valente2018-02-221-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.
* / Mono: Add project export pluginIgnacio Etcheverry2018-02-221-0/+2
|/
* implement signal related methods in csharp_script so signals can be used ↵Paul Joannon2018-02-171-5/+63
| | | | with emit
* add a [Signal] attribute to CSharpScriptsPaul Joannon2018-02-171-1/+49
|
* Merge pull request #16205 from neikeq/issue-15053Rémi Verschelde2018-02-011-20/+9
|\ | | | | Mono: Remove automatic script multilevel calls
| * Mono: Remove automatic script multilevel callsIgnacio Etcheverry2018-01-301-20/+9
| |
* | Added async and await as C# keywords.Nathan Warden2018-01-301-3/+7
|/
* 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
|