Commit graph

43 commits

Author SHA1 Message Date
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
Arun Dilipan
388bea9205 Added moveToward for vectors. 2020-12-13 12:13:41 +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
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
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
b3ad6134d9 Fix doc generation 2018-06-04 16:24:52 +07:00
Ruslan Mustakov
76de026b4f Implement hash proc for Godot types 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 2018-05-16 15:06:57 +07:00
Ruslan Mustakov
be6f01e3b7 More pool array features: subarray, mitems, mpairs 2018-02-22 18:55:52 +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
e3216f09d0 Update ref types not to be var in parameters 2018-01-25 17:39:01 +07:00
Ruslan Mustakov
ae3171cb98 Fix Vector2 += 2018-01-15 11:01:48 +07:00
Ruslan Mustakov
c06792df8d Add vec2(). Closes #12 2017-12-08 16:07:23 +07:00
Ruslan Mustakov
4e24244c48 Update for latest Godot 2017-11-22 12:28:54 +07:00
Ruslan Mustakov
bf5bd54356 Rename Rect3 to AABB to sync with Godot 2017-11-20 06:52:37 +07:00
Ruslan Mustakov
7f73a89878 Fix $ for core types 2017-10-12 21:26:36 +07:00
Ruslan Mustakov
b62db02d8f Use GDNative API struct 2017-10-05 18:28:12 +07:00
Konstantin Zaitsev
2db2e413a9 Fix transform xform methods for rect3 2017-09-04 12:22:35 +07:00
Konstantin Zaitsev
d43b10bc76 Fix nil pointer exception for variant from arrays 2017-08-11 12:22:16 +07:00
Ruslan Mustakov
fcc10071fb Fix toVariant for nil values 2017-08-08 21:58:17 +07:00
Ruslan Mustakov
a7d9aaef95 Fix initTransform 2017-08-08 21:58:03 +07:00
Ruslan Mustakov
6549d90c3b Remove commented code from poolarrays 2017-08-06 13:59:33 +07:00
Ruslan Mustakov
6aaeed4dca Add missing $ to standard types 2017-08-06 13:58:54 +07:00
Ruslan Mustakov
fedd04229a Add varargs and openarray constructors for Array 2017-08-04 12:21:22 +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
fb8c42a2cc Fix circular imports 2017-07-31 18:16:42 +07:00
Ruslan Mustakov
7185682025 Dont import with '..' 2017-07-31 13:52:16 +07:00
Ruslan Mustakov
25a21072be Move alloc procs to godotinternal module 2017-07-29 22:00:21 +07:00
Ruslan Mustakov
360be5759e Define Variant and Array in their own modules 2017-07-29 21:50:11 +07:00
Ruslan Mustakov
7d91c2b5cb Fix ambiguous calls when creating Variant from ints 2017-07-28 18:26:36 +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
4a5e0fe95f Convert nil strings to empty GodotString 2017-07-27 12:49:09 +07:00
Ruslan Mustakov
de89df71ad Fix varargs calls 2017-07-27 00:06:45 +07:00
Ruslan Mustakov
3a6acbbe92 Add thread enter/exit callbacks 2017-07-26 17:50:36 +07:00
Ruslan Mustakov
b41a37681f Migrate to NativeScript+GDNative 2017-07-25 12:37:05 +07:00
Ruslan Mustakov
1e6646713f Rearrangements 2017-07-25 11:03:55 +07:00
Ruslan Mustakov
f1c7e80c51 Initial version 2017-07-21 13:05:04 +07:00