summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement CSharpScript::is_valid()Ignacio Etcheverry2018-11-301-4/+0
|
* Merge pull request #24091 from neikeq/iiIgnacio Etcheverry2018-11-301-288/+295
|\ | | | | C#: Improve tool script support and fix reloading issues
| * C#: Improve tool script support and fix reloading issuesIgnacio Etcheverry2018-11-301-288/+295
| |
* | Allow signal connecting even if script is invalid (only when compiled with ↵Juan Linietsky2018-11-271-0/+4
|/ | | | tools), fixes #17070
* Improve the C# API projects generationIgnacio Etcheverry2018-11-081-1/+2
| | | | | | - Now there is only one solution that contains both GodotSharp and GodotSharpEditor project. Previously we had one solution for each project - GodotSharpEditor reference GodotShatp with a 'ProjectReference'. Previously it was a 'Reference' to the assembly - This also simplifies the command line option to generate this solution: 'godot --generate-cs-api <OutputDir>'
* Merge pull request #23162 from neikeq/ccIgnacio Etcheverry2018-10-251-42/+92
|\ | | | | Proper support for namespaces and other enhancement/fixes
| * Parse C# script namespace and classIgnacio Etcheverry2018-10-251-42/+92
| | | | | | | | - Added a very simple parser that can extract the namespace and class name of a C# script.
* | C#: Fix crash when disposing Reference on domain finalizeIgnacio Etcheverry2018-10-251-0/+2
|/
* Remove redundant "== false" codeAaron Franke2018-10-061-1/+1
| | | | | | Some of this code has been re-organized. f
* Remove redundant "== true" codeAaron Franke2018-10-061-2/+2
| | | If it can be compared to a boolean, it can be evaluated as one in-place.
* Mono: Fix not creating generic Array or Dictionary where expectedIgnacio Etcheverry2018-09-271-1/+1
|
* Clearly deprecate sync too in favor of remotesync.Fabio Alessandrelli2018-09-151-2/+2
| | | | | NOTE: This changes the RPC_MODE_* enum values. Games should be re-exported. GDNative rebuilt.
* Rename slave keyword to puppetFabio Alessandrelli2018-09-151-3/+5
| | | | | The slave keyword will still be available as deprecated in 3.1 but will be dropped from future releases.
* Mono: Fix build regression due to wrong return typeIgnacio Etcheverry2018-09-121-2/+2
|
* C#: Fix explicit enum values when exporting memberIgnacio Etcheverry2018-09-121-31/+86
|
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-4/+4
| | | | | | 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.
* Fix/workaround for issue #21667Ignacio Etcheverry2018-09-121-80/+262
| | | | 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).
* Cleanup of c# api files and bindings generatorIgnacio Etcheverry2018-09-121-1/+1
| | | | | | | | | | | | - 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.
* 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
| |