summaryrefslogtreecommitdiff
path: root/modules/mono/csharp_script.cpp
AgeCommit message (Collapse)Author
2018-09-15Clearly deprecate sync too in favor of remotesync.Fabio Alessandrelli
NOTE: This changes the RPC_MODE_* enum values. Games should be re-exported. GDNative rebuilt.
2018-09-15Rename slave keyword to puppetFabio Alessandrelli
The slave keyword will still be available as deprecated in 3.1 but will be dropped from future releases.
2018-09-12Mono: Fix build regression due to wrong return typeIgnacio Etcheverry
2018-09-12C#: Fix explicit enum values when exporting memberIgnacio Etcheverry
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
2018-09-12Fix/workaround for issue #21667Ignacio Etcheverry
When a Reference managed instance is garbage collected and its finalizer is called, it could happen that the native instance is referenced once again before the finalizer can unreference and memdelete it. The workaround is to create a new managed instance when this happens (at least for now).
2018-09-12Cleanup of c# api files and bindings generatorIgnacio Etcheverry
- We no longer generate RID and NodePath C# classes. Both will be maintained manually. - We no longer generate C# declarations and runtime registration of internal calls for the following classes: RID, NodePath, String, GD, SignalAwaiter and Godot.Object (partial base). - We no longer auto-generate the base members of Godot.Object. They will be maintained manually as a partial class. This makes it easier to maintain these C# classes and their internal calls, as well as the bindings generator which no longer generates C# classes that don't derive from Godot Object, and it no longer generates the Godot.Object base members (which where unreadable in the bindings generator code). - Added missing 'RID(Object from)' constructor to the RID C# class. - Replaced MONO_GLUE_DISABLED constant macro with MONO_GLUE_ENABLED. - Add sources in module/mono/glue even if glue is disabled, but surround glue files with ifdef MONO_GLUE_ENABLED.
2018-08-25Merge pull request #16927 from neikeq/rework-refcount-notifyJuan Linietsky
Notify instance binding data api of refcount increment/decrement
2018-08-24Add print_verbose to print to stdout only in verbose modeRémi Verschelde
Equivalent of the cumbersome: if (OS::get_singleton()->is_stdout_verbose()) print_line(msg);
2018-08-23Notify instance binding data api of refcount increment/decrementIgnacio Etcheverry
2018-07-29Fix case where exported properties value is lostIgnacio Etcheverry
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.
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
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.
2018-07-25Fix continuous attempt to reload domain with API assemblies out of syncIgnacio Etcheverry
2018-07-25Mono: Fix domain reload never triggeringIgnacio Etcheverry
2018-07-25Fix '!valid' error spam on C# script instance createIgnacio Etcheverry
2018-07-25Mono: Fix null dereferencesIgnacio Etcheverry
2018-07-23Merge pull request #15880 from neikeq/better-collectionsIgnacio Etcheverry
Mono: Add Dictionary and Array classes
2018-07-22Mono: Default to not shipping C# scripts contentRémi Verschelde
Fixes #20053.
2018-07-20Add Array and Dictionary wrapper classes to C#Ignacio Etcheverry
2018-07-04Merge pull request #19872 from exts/export_signalsIgnacio Etcheverry
Mono: Fixes annotated signal loading in exported binaries
2018-07-03Mono: Fixes annotated signal loading in exported binaries=
2018-07-04Merge pull request #16987 from neikeq/pending-exceptionsIgnacio Etcheverry
Mono: Pending exceptions and cleanup
2018-07-04Mono: Pending exceptions and cleanupIgnacio Etcheverry
2018-07-04Changes to default C# script template (#19940)Kelly Thomas
2018-06-11Small changes to the comments in the script templates.Michael Alexsander Silva Dias
2018-06-05Merge pull request #18792 from PJB3005/18-05-11-objectdb-verbose-monoRémi Verschelde
Fixes ObjectDB leak printout with mono.
2018-05-29New sync keywords in GDScript, NativeScript, MonoFabio Alessandrelli
2018-05-29Refactor RPCMode enum and checksFabio Alessandrelli
2018-05-29Revert "RPCMode refactor, more sync modes"Max Hilbrunner
2018-05-26New sync keywords in GDScript, NativeScript, MonoFabio Alessandrelli
2018-05-26Refactor RPCMode enum and checksFabio Alessandrelli
2018-05-24Merge pull request #19149 from neikeq/xIgnacio Etcheverry
Mono: Improve 'script class not found' error
2018-05-24Mono: Improve 'script class not found' errorIgnacio Etcheverry
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
2018-05-23Capitalized comments of methods created by the Connect Signal dialog.Michael Alexsander Silva Dias
2018-05-15-New inspector.Juan Linietsky
-Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
2018-05-11Fixes ObjectDB leak printout with mono.Pieter-Jan Briers
Fixes #18767
2018-05-02Changed periods in the script templates.Michael Alexsander Silva Dias
2018-04-24Mono: Do not spam script class not found errorIgnacio Etcheverry
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.
2018-04-24Mono: Fix crash on script load if the scripts domain isn't loadedIgnacio Etcheverry
2018-03-15Mono: Avoid invalid class names.Andreas Haas
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
2018-02-25Mono: Better versioning and gracefully unloading of Godot API assembliesIgnacio Etcheverry
2018-02-25Merge pull request #16804 from Valentactive/fix_mono_template_compilingRémi Verschelde
fix template builds with mono
2018-02-22fix release builds with monoMichele Valente
"_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.
2018-02-22Mono: Add project export pluginIgnacio Etcheverry
2018-02-17implement signal related methods in csharp_script so signals can be used ↵Paul Joannon
with emit
2018-02-17add a [Signal] attribute to CSharpScriptsPaul Joannon
2018-02-01Merge pull request #16205 from neikeq/issue-15053Rémi Verschelde
Mono: Remove automatic script multilevel calls
2018-01-30Added async and await as C# keywords.Nathan Warden
2018-01-30Mono: Remove automatic script multilevel callsIgnacio Etcheverry
2018-01-27Mono: Fix build errors with tools=no and target=releaseIgnacio Etcheverry