Commit graph

60 commits

Author SHA1 Message Date
Ruslan Mustakov
3f46e3c648 Break reference cycle in NimGodotObject 2020-06-05 16:53:34 +07:00
Ruslan Mustakov
d1b82d351c Fix unsigned int conversion to/from Variant 2019-12-23 20:53:13 +07:00
Ruslan Mustakov
78d3626fa3 Do not log error when casting fails
This allows not to perform unnecessary 'of' check before
casting, if cast failure is expected.
2019-12-04 23:58:13 +07:00
Ruslan Mustakov
1b8e7ccd98 Add variant conversion for Option[T] 2019-10-02 15:26:41 +07:00
Ruslan Mustakov
19b0c23d62 Finalize support for Nim 0.20
Closes #32, closes #41.
2019-09-15 20:11:15 +07:00
Dwana Games
0fecfdb3b8 Updated to work with nim 0.20
- Attempt to fix deprecated this:self pragma by injecting self to methods and properties (needs more testing)
- Changed import headers to use / (slash) instead of . (period)
- Fixed object branch in godotapigen.nim
- Fixed deprecated nimNode.ident with nimNode.strVal

Fix toGodotName function

Consider procCall calls as special cases, otherwise it gives problems in _init function

Fix infinite recursive call in Godot 3.2
2019-09-15 15:34:09 +07:00
zetashift
34fda99def Small changes to add 0.18.0 compatibility
Change toGodotName back to macro because that got fixed in devel

change isSome to isNone in godotapigen
2019-09-15 15:33:59 +07:00
Fabian Keller
3a935b9308 attempt to make 0.19 compatible
workaround for nim/macro/typedesc issue

work-around for nim-lang/Nim#7375

fixed more isNil usages

fixed new name of setStackBottom
2019-09-15 15:33:44 +07:00
Konstantin Zaitsev
f45281f5a0 Fix possible double free memory on exit 2019-09-12 18:59:11 +07:00
Ruslan Mustakov
db4bb91765 Fix editor crash in multithreaded mode 2019-07-09 13:48:54 +07:00
Ruslan Mustakov
859f9f04fb OrderedTable to Variant conversion support 2018-09-21 16:34:09 +07:00
Evgeny Zuev
ceaf66a34c Make classRegistry use hashes instead of strings as keys for faster lookup
Up version to 0.7.16
2018-08-29 13:44:37 +07:00
Evgeny Zuev
8d68051f23 Fix system.of being preferred over godot.of in some cases
Fix `as` fails when argument `obj` is not convertible to `T`
Up version to 0.7.14
2018-06-21 17:53:01 +07:00
Ruslan Mustakov
66c939b9e6 Fix for latest Nim
Closes #23.
2018-06-04 11:50:37 +07:00
Ruslan Mustakov
8b1ac6d835 Fix compilation with C++ backend. Fixes #25. 2018-06-04 11:50:37 +07:00
Ruslan Mustakov
a1d1481967 Add a remark to thread enter warning 2018-05-14 21:15:11 +07:00
Ruslan Mustakov
d11856377e Implement Vector2 and Rect2 procs
This allows compiler to inline/optimize them, which cannot be done if
these procs are invoked via GDNative API.
2018-02-17 23:44:07 +07:00
Ruslan Mustakov
0aab6e17ef Update license year and fix doc to have Godot 3.0 download URL 2018-01-31 20:52:15 +07:00
Ruslan Mustakov
5ccf351b5a Fix Variant export 2018-01-31 20:30:13 +07:00
Ruslan Mustakov
09326f5104 Fix Reference leak and improve gdnew performance 2018-01-11 16:52:41 +07:00
Ruslan Mustakov
d89073bac8 Do not depend on asyncdispatch
Instead, allow to register frame callbacks.
2017-12-29 11:52:00 +07:00
Ruslan Mustakov
a1c378301a Update for latest Godot 2017-11-21 02:44:32 +07:00
Ruslan Mustakov
bf5bd54356 Rename Rect3 to AABB to sync with Godot 2017-11-20 06:52:37 +07:00
Ruslan Mustakov
cc6bfa0045 Update for latest GDNative API changes 2017-11-13 10:18:25 +07:00
Ruslan Mustakov
26570707aa Fix poll loop 2017-10-18 11:47:20 +07:00
Ruslan Mustakov
d2b86a2b94 Perform poll(0) in a loop
Temporary workaround for https://github.com/nim-lang/Nim/issues/6523
2017-10-17 16:32:07 +07:00
Ruslan Mustakov
1b47dac4e9 Fix thread_enter not to use GC 2017-10-16 20:10:16 +07:00
Ruslan Mustakov
b62db02d8f Use GDNative API struct 2017-10-05 18:28:12 +07:00
Evgeny Zuev
cf75723fa1 Fix crash when passing nil seq to godot
Up version to 0.5.10
2017-09-19 18:26:55 +07:00
Ruslan Mustakov
77a8cf7815 Replace ~ with of 2017-09-14 11:04:34 +07:00
Ruslan Mustakov
99934854d0 Fix Reference handling 2017-09-14 10:49:43 +07:00
Ruslan Mustakov
fda800fd26 Avoid using godot_get_stack_bottom
It's not reliable on Android.
2017-08-23 13:29:35 +07:00
Ruslan Mustakov
f54de5cd46 Remove wrong assertion (false for references) 2017-08-17 16:52:11 +07:00
Ruslan Mustakov
fcc10071fb Fix toVariant for nil values 2017-08-08 21:58:17 +07:00
Ruslan Mustakov
daa56270e5 Fix object property export 2017-08-08 17:23:45 +07:00
Ruslan Mustakov
4cc9711d2f Handle nil in == 2017-08-07 22:13:42 +07:00
Ruslan Mustakov
8ef554501f Add nil check to tilde 2017-08-07 20:59:32 +07:00
Ruslan Mustakov
327cd0e18f Proper inheritance checks and conversion 2017-08-06 19:22:38 +07:00
Ruslan Mustakov
643c445f87 Allow conversion from Real to int types 2017-08-06 14:21:48 +07:00
Ruslan Mustakov
72b706d7fe Allow to omit type when default value is present 2017-08-06 13:43:11 +07:00
Ruslan Mustakov
fd40716b58 print can be used similar to echo 2017-08-05 22:55:27 +07:00
Ruslan Mustakov
c1c1852203 Provide type hints for standard types 2017-08-05 21:08:28 +07:00
Ruslan Mustakov
0062568dbc Add nativescript frame callback, deprecate NimRuntime 2017-08-04 12:02:55 +07:00
Ruslan Mustakov
988b9e1f11 Documentation & Travis & Refactoring 2017-08-02 22:14:41 +07:00
Ruslan Mustakov
be02bdfd9c Put internal types in their modules 2017-07-31 19:00:15 +07:00
Ruslan Mustakov
7185682025 Dont import with '..' 2017-07-31 13:52:16 +07:00
Ruslan Mustakov
04c97656d8 gdnew via creating NativeScript 2017-07-28 23:11:59 +07:00
Ruslan Mustakov
f5769045fc No destructors 2017-07-28 17:56:28 +07:00
Ruslan Mustakov
2fd1efcc4e Remove dependency on headers 2017-07-27 18:48:57 +07:00
Ruslan Mustakov
69cb828750 Fix enum toGodot 2017-07-27 16:58:22 +07:00