Commit Graph

85 Commits

Author SHA1 Message Date
Wojciech Figat
3ede538fcb Add support for non-const ref parameters with conversion (eg. string or array) in scripting api function parameters 2022-10-26 15:59:34 +02:00
Wojciech Figat
19f1c4251c Fix scripting api bindings for types with changed scripting name (other than native type name) 2022-10-26 15:00:29 +02:00
Wojciech Figat
e115aa2c4e Merge remote-tracking branch 'origin/master' into 1.5
# Conflicts:
#	Source/Engine/Content/JsonAsset.cpp
2022-10-19 13:36:46 +02:00
Wojciech Figat
5c24f8c365 Add ScriptingTypeHandle support for scripting bindings as System.Type 2022-10-13 13:35:15 +02:00
Wojtek Figat
3c9d9cd8d6 Add support for deserialization of deprecated properties in scripting types 2022-10-12 20:39:40 +02:00
Wojciech Figat
09e50bb0e1 Simplify code in bindings generator 2022-10-11 11:38:35 +02:00
Wojciech Figat
4c71f40bc2 Add Module tags feature for build config in custom plugins 2022-10-10 15:02:52 +02:00
Wojtek Figat
e6996ff22f Fix missing virtual C++ function override in C# if the thunk points to vtable index at offset=0 2022-09-14 22:14:25 +02:00
Wojtek Figat
1d7ba2210a Fix crash on API event in C# after Editor hot-reload 2022-09-01 22:55:29 +02:00
Wojtek Figat
bdb69d57dd Refactor Plugins system to support plugins in C++ scripts 2022-07-28 21:05:03 +02:00
Wojtek Figat
2bd3c0f74f Add support for constexpr fields in Scripting API 2022-06-16 21:56:48 +02:00
Wojciech Figat
4cabf9de53 Merge remote-tracking branch 'origin/master' into gi 2022-06-14 12:03:28 +02:00
Wojciech Figat
c6e909c867 Refactor API_INJECT_CPP_CODE into API_INJECT_CODE to support code injection in other languages 2022-06-14 11:53:31 +02:00
Wojtek Figat
b815ba51a5 Fix build issues 2022-06-13 23:37:11 +02:00
Wojtek Figat
a881c90b2e Refactor engine to support double-precision vectors 2022-06-13 00:40:32 +02:00
Wojtek Figat
b70bce1746 Add support for generic types in Scripting API with Template flag 2022-05-23 19:43:34 +02:00
Wojtek Figat
4a9c746bed Add SoftAssetReference type 2022-02-28 23:15:35 +01:00
Wojtek Figat
56491569df Optimize C# bindings in Engine code to static functions that native ABI matches managed signature 2022-02-19 00:29:09 +01:00
Wojciech Figat
0cfb7e8cee Fix passing Span<byte> to C# method thunk in generated bindings code 2022-01-26 16:56:27 +01:00
Wojtek Figat
37e11a4b1f Merge remote-tracking branch 'origin/master'
# Conflicts:
#	Source/Engine/Physics/Physics.Queries.cpp
#	Source/Engine/Physics/Utilities.h
2022-01-20 23:29:59 +01:00
Wojtek Figat
a400568b51 Fix generated wrapper for classes with value types 2022-01-20 23:29:05 +01:00
Wojciech Figat
8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
Wojciech Figat
e9557352a0 Update copyright year in some source files 2021-12-08 09:44:10 +01:00
Wojciech Figat
23303802ec Add support for passing back value via reference to C# scripting event 2021-12-06 16:46:16 +01:00
Wojciech Figat
f3d93a4133 Add ScriptingEnum utility with useful features for C++ scripting 2021-11-19 16:48:04 +01:00
Wojciech Figat
31bbd586db Add scripting enums as ScriptingType 2021-11-19 16:43:02 +01:00
Wojciech Figat
3648f8bef2 Add Hidden attribute to scripting fields/properties/methods/events 2021-11-15 16:39:13 +01:00
Wojtek Figat
5bd3032f78 Add support for passing the object reference as scripting function output result 2021-11-05 11:46:40 +01:00
Wojtek Figat
8938f13a0b Add support for compiling and running engine without C# scripting
(configurable via `EngineConfiguration.UseCSharp` in Flax.Build)
2021-10-23 16:43:15 +02:00
Wojtek Figat
5dbbfed654 PS5 support progress 2021-10-20 15:35:12 +02:00
Wojtek Figat
05ebf60dba Add PRAGMA_DISABLE_DEPRECATION_WARNINGS and PRAGMA_ENABLE_DEPRECATION_WARNINGS macros 2021-10-14 11:07:12 +02:00
Wojtek Figat
4e6fa25877 Add support for using DEPRECATED to mark scripting API as obsolete 2021-10-12 23:48:47 +02:00
Wojtek Figat
cc29e97fa3 Fix automatic properties serialization bug 2021-10-07 09:29:50 +02:00
Wojtek Figat
32794f89c7 Fix auto-serialization for interfaces to skip it (not supported to save interface pointer) 2021-10-04 14:22:09 +02:00
Wojtek Figat
c3c0a4ef0d Add support for interfaces in scripting API (cross language support C++/C#/VS) 2021-10-04 12:26:08 +02:00
Wojtek Figat
151f551bc9 Merge branch 'fixing-strigview-gettext-uses' of git://github.com/Zbyl/FlaxEngine into Zbyl-fixing-strigview-gettext-uses 2021-08-13 13:57:02 +02:00
Wojtek Figat
bc634e9d37 Refactor Tracy source locations to be static
#597
2021-08-13 13:44:29 +02:00
Zbigniew Skowron
bd70e53806 Fixed StringView::GetText() related issued pointed out in review. 2021-08-09 22:21:38 +02:00
Zbigniew Skowron
aecc81f5e5 Fixed many invalid uses of StringView::GetText(), where a null-terminated string was required.
Renamed GetText() to GetNonTerminatedText() to reduce chance of same bugs appearing in the future.
2021-08-09 00:29:19 +02:00
Wojtek Figat
d0eed29f31 Fix rare crash when passing array to managed world with object refs inside structures 2021-07-16 11:02:49 +02:00
Wojtek Figat
121b08801a Fix calling base class of overridden scripting object via vtable entry for method that has multiple parameters 2021-07-12 16:38:39 +02:00
Wojtek Figat
4de3d134c9 Fix generating includes list in c++ glue code for script (non-pod and variant wrappers can produce additional includes) 2021-06-16 17:40:00 +02:00
Wojtek Figat
2068a58414 Fix using custom allocator on array field in scripting class 2021-06-16 11:23:12 +02:00
Wojtek Figat
9fd62cf9aa Add support for using references in scripting API events 2021-06-10 10:26:57 +02:00
Wojtek Figat
05d095b35e Add support for using pointers in scripting API events 2021-06-09 17:15:32 +02:00
Wojtek Figat
3a6b7ea80b Add support for Function<> as method parameter in scripting 2021-06-03 15:19:00 +02:00
Wojtek Figat
b3d9ec687d Refactor base types initialization to be done during API processing 2021-05-27 23:34:55 +02:00
Wojtek Figat
9a617c630b Fix api error 2021-05-16 18:54:40 +02:00
Wojtek Figat
a89d5d1817 Add skipping generating structure fields accessors for private fields in scripting 2021-05-15 23:21:16 +02:00
Wojtek Figat
67aa41afb1 Fix base method calls handling in scripting vtable overrides
#507
2021-05-14 16:07:46 +02:00