Commit graph

167 commits

Author SHA1 Message Date
Ruslan Mustakov
4175dbb3e5 Bump version to 0.8.2 2021-05-03 23:18:50 +07:00
7eadb07820 Move template below arrays import
Fixes #81 

Alternate workaround for https://github.com/nim-lang/Nim/issues/16462 without changing VariantType.
2021-05-03 23:17:18 +07:00
Jason
00d8ac2691 Support nim case insensitivy in pragmas 2021-03-12 11:09:55 +07:00
Arun Dilipan
388bea9205 Added moveToward for vectors. 2020-12-13 12:13:41 +07:00
ShalokShalom
f25c3c7a5d Clarify version compability
One guy in the chat just asked me, if this binding is for 3.0 only, or also for 3.2.3
2020-10-17 13:22:31 +07:00
Ruslan Mustakov
d3e5f91b40 Fix wrapping methods with Array return types 2020-08-14 01:44:48 +07:00
Ruslan Mustakov
3f46e3c648 Break reference cycle in NimGodotObject 2020-06-05 16:53:34 +07:00
Ruslan Mustakov
87707a86b4 Remove Travis badge from README
Need to fix the CI script.
2020-06-03 18:06:18 +07:00
Ruslan Mustakov
031774f54f More efficient and GC-safe conversions in API generator 2020-06-03 17:58:47 +07:00
Ruslan Mustakov
ed9ede5cb3 Up version to 0.7.27 2020-02-05 12:34:44 +07:00
Konstantin Zaitsev
a49fcbdac7 Fix variant size for 32bit platform with memory alignment 2020-02-05 11:36:42 +07:00
zetashift
157a90e4a0
add gensym in hygienic template fix thanks to demotohiro (#55)
Add gensym in hygienic template fix thanks to demotohiro
2020-02-05 11:35:50 +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
c2db807da4 Up version to 0.7.23 2019-09-20 09:20:50 +07:00
Dwana Games
7dd1b1ed5f Add self to field initialization 2019-09-20 09:20:27 +07:00
Ruslan Mustakov
2f3f4034cf Fix newVariant for nil strings and older Nim 2019-09-18 13:27:31 +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
e9d73d8ec4 Fix GDNative API procedure declarations
Earlier signature mismatch caused problems on macOS with Godot 3.1.
2018-10-11 19:06:05 +07:00
Ruslan Mustakov
859f9f04fb OrderedTable to Variant conversion support v0.7.17 2018-09-21 16:34:09 +07:00
Evgeny Zuev
ceaf66a34c Make classRegistry use hashes instead of strings as keys for faster lookup v0.7.16
Up version to 0.7.16
2018-08-29 13:44:37 +07:00
Ruslan Mustakov
fd5f77e7c2 Fix gdobj to properly handle var block v0.7.15 2018-08-14 17:59:24 +07:00
Evgeny Zuev
8d68051f23 Fix system.of being preferred over godot.of in some cases v0.7.14
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
13f5aba3fe Up version to 0.7.13 v0.7.13 2018-06-04 17:26:26 +07:00
Ruslan Mustakov
b3ad6134d9 Fix doc generation 2018-06-04 16:24:52 +07:00
Ruslan Mustakov
1e8ccfea2b Fix handling of Error as an argument in Godot API 2018-06-04 14:28:14 +07:00
Ruslan Mustakov
9e61030817 Up version to 0.7.12 v0.7.12 2018-06-04 11:50:37 +07:00
Ruslan Mustakov
66c939b9e6 Fix for latest Nim
Closes #23.
2018-06-04 11:50:37 +07:00
Ruslan Mustakov
76de026b4f Implement hash proc for Godot types 2018-06-04 11:50:37 +07:00
Ruslan Mustakov
4eb771e9be Support all the default values 2018-06-04 11:50:37 +07:00
Ruslan Mustakov
2dd0130c78 Avoid name clashes between properties and methods
Fixes #19.
2018-06-04 11:50:37 +07:00
Ruslan Mustakov
651c2d823c Handle nil object references properly
Fixes #26.
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
Jon Renner
21ca9a088b export Vector2 normalize proc 2018-05-19 14:30:02 +07:00
Ruslan Mustakov
96dfc7de90 Fix for latest Nim v0.7.11 2018-05-16 15:06:57 +07:00
Ruslan Mustakov
a1d1481967 Add a remark to thread enter warning v0.7.10 2018-05-14 21:15:11 +07:00
Ruslan Mustakov
6e014bbc01 Make godotapigen use getter return type for property types v0.7.9
Fixes #20.
2018-04-24 11:12:49 +07:00
Ruslan Mustakov
dc6ebaf575 Fix GDNative API version check v0.7.8
Fixes #18.
2018-03-31 17:45:50 +07:00
Ruslan Mustakov
be6f01e3b7 More pool array features: subarray, mitems, mpairs v0.7.7 2018-02-22 18:55:52 +07:00
Ruslan Mustakov
d11856377e Implement Vector2 and Rect2 procs v0.7.6
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 v0.7.5 2018-01-31 20:52:15 +07:00
Ruslan Mustakov
5ccf351b5a Fix Variant export 2018-01-31 20:30:13 +07:00
Ruslan Mustakov
f05eb090f7 Update after GDNative API changes v0.7.4 2018-01-25 17:52:58 +07:00
Ruslan Mustakov
e3216f09d0 Update ref types not to be var in parameters 2018-01-25 17:39:01 +07:00