diff --git a/master/arrays.html b/master/arrays.html
index 7833272..5a86320 100644
--- a/master/arrays.html
+++ b/master/arrays.html
@@ -1298,6 +1298,8 @@ function main() {
title="len*(self: Array): int">
proc `$`*(self: Array): string
proc `$`*(self: Dictionary): string
proc isPressed*(self: BaseButton): bool {.gcsafe, locks: 0.}
proc pressed*(self: BaseButton): bool {.gcsafe, locks: 0.}
proc `isPressed =`*(self: BaseButton; val: bool) {.gcsafe, locks: 0.}
proc `pressed =`*(self: BaseButton; val: bool) {.gcsafe, locks: 0.}
StyleBoxFlat* = ref object of StyleBox +
GradientTexture* = ref object of Texture
GradientTexture* = ref object of Texture +
StyleBoxFlat* = ref object of StyleBox
ARVRPositionalTracker* = ref object of Object -
AudioEffectNotchFilter* = ref object of AudioEffectFilter
ProceduralSky* = ref object of Sky +
ARVRPositionalTracker* = ref object of Object +
CylinderMesh* = ref object of PrimitiveMesh
CylinderMesh* = ref object of PrimitiveMesh +
ProceduralSky* = ref object of Sky
HSlider* = ref object of Slider -
AudioStreamPlayer3D* = ref object of Spatial -
AudioEffectDistortion* = ref object of AudioEffect
HSlider* = ref object of Slider +
Curve3D* = ref object of Resource
Path* = ref object of Spatial +
AudioStreamPlayer3D* = ref object of Spatial
LineEdit* = ref object of Control +
Path* = ref object of Spatial
LineEdit* = ref object of Control +
VisualScriptYieldSignal* = ref object of VisualScriptNode
RectangleShape2D* = ref object of Shape2D -
ARVRCamera* = ref object of Camera
EditorImportPlugin* = ref object of Reference +
RayShape* = ref object of Shape
EditorImportPlugin* = ref object of Reference +
RectangleShape2D* = ref object of Shape2D
LineShape2D* = ref object of Shape2D +
Polygon2D* = ref object of Node2D
MultiMeshInstance* = ref object of GeometryInstance @@ -3879,10 +3879,10 @@ singleton: false instanciable: true is_reference: true singleton: false instanciable: true is_reference: false -
Polygon2D* = ref object of Node2D +
LineShape2D* = ref object of Shape2D
VisualScriptIndexGet* = ref object of VisualScriptNode @@ -4310,18 +4310,18 @@ singleton: false instanciable: true is_reference: true
CapsuleShape2D* = ref object of Shape2D -
Sprite3D* = ref object of SpriteBase3D
CapsuleShape2D* = ref object of Shape2D +
StreamTexture* = ref object of Texture
PanoramaSky* = ref object of Sky -
ResourcePreloader* = ref object of Node
PanoramaSky* = ref object of Sky +
GDNativeLibrary* = ref object of Resource
DynamicFont* = ref object of Font -
Generic6DOFJoint* = ref object of Joint
DynamicFont* = ref object of Font +
EditorFileSystem* = ref object of Node
Label* = ref object of Control +
AudioEffectStereoEnhance* = ref object of AudioEffect
Label* = ref object of Control -
proc scale*(self: Node2D; ratio: Vector2) {.gcsafe, locks: 0.}
proc applyScale*(self: Node2D; ratio: Vector2) {.gcsafe, locks: 0.}
proc len*(self: GodotArray): cint {.noSideEffect, importc: "godot_array_size".}
proc initGodotArray*(dest: var GodotArray) {.importc: "godot_array_new".}
proc initGodotArray*(dest: var GodotArray; pca: GodotPoolColorArray) {.@@ -1364,9 +1375,9 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc initGodotArray*(dest: var GodotArray; pv3a: GodotPoolVector3Array) {.@@ -1374,9 +1385,9 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/nodepaths.html b/master/nodepaths.html index 36a7c52..0f2dd50 100644 --- a/master/nodepaths.html +++ b/master/nodepaths.html @@ -1284,7 +1284,7 @@ function main() {- Source -Edit +Edit
proc initGodotArray*(dest: var GodotArray; pv2a: GodotPoolVector2Array) {.@@ -1384,9 +1395,9 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc initGodotArray*(dest: var GodotArray; psa: GodotPoolStringArray) {.@@ -1394,9 +1405,9 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/index.html b/master/index.html index c8d37b5..73f63d6 100644 --- a/master/index.html +++ b/master/index.html @@ -1273,7 +1273,7 @@ scons platform=<your_platform>- Source -Edit +Edit
proc initGodotArray*(dest: var GodotArray; pra: GodotPoolRealArray) {.@@ -1404,9 +1415,9 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc initGodotArray*(dest: var GodotArray; pia: GodotPoolIntArray) {.@@ -1414,9 +1425,9 @@ class="link-seesrc" target="_blank">Source@@ -2084,7 +2095,7 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc initGodotArray*(dest: var GodotArray; pba: GodotPoolByteArray) {.@@ -1424,9 +1435,9 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotvariants.html b/master/godotvariants.html index 664cd1c..666dea0 100644 --- a/master/godotvariants.html +++ b/master/godotvariants.html @@ -1376,6 +1376,8 @@ function main() { title="hashCompare*(self, other: GodotVariant): bool">- Source -Edit +Edit
proc iniGodotArray*(dest: var GodotArray; src: GodotArray) {.@@ -1434,18 +1445,18 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc deinit*(self: var GodotArray) {.importc: "godot_array_destroy".}- Source -Edit +Edit
proc `[]=`*(self: var GodotArray; idx: cint; value: GodotVariant) {.noSideEffect, @@ -1453,9 +1464,9 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotstrings.html b/master/godotstrings.html index f869c95..8cc9dd5 100644 --- a/master/godotstrings.html +++ b/master/godotstrings.html @@ -1259,7 +1259,7 @@ function main() {- Source -Edit +Edit
proc `[]`*(self: GodotArray; idx: cint): GodotVariant {.noSideEffect, @@ -1463,9 +1474,9 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc mget*(self: var GodotArray; idx: cint): ptr GodotVariant {.@@ -1473,9 +1484,9 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotpoolarrays.html b/master/godotpoolarrays.html index 4a29403..8c86e7c 100644 --- a/master/godotpoolarrays.html +++ b/master/godotpoolarrays.html @@ -1518,7 +1518,7 @@ function main() {- Source -Edit +Edit
proc add*(self: var GodotArray; value: GodotVariant) {.noSideEffect, @@ -1483,18 +1494,18 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc clear*(self: var GodotArray) {.importc: "godot_array_clear".}- Source -Edit +Edit
proc count*(self: GodotArray; value: GodotVariant): cint {.noSideEffect, @@ -1502,27 +1513,27 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotobjects.html b/master/godotobjects.html index 3a34414..64f65aa 100644 --- a/master/godotobjects.html +++ b/master/godotobjects.html @@ -1232,7 +1232,7 @@ function main() {- Source -Edit +Edit
proc isEmpty*(self: GodotArray): bool {.noSideEffect, importc: "godot_array_empty".}- Source -Edit +Edit
proc erase*(self: var GodotArray; value: GodotVariant) {.importc: "godot_array_erase".}- Source -Edit +Edit
proc first*(self: GodotArray): GodotVariant {.noSideEffect, @@ -1530,9 +1541,9 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc last*(self: GodotArray): GodotVariant {.noSideEffect, @@ -1540,9 +1551,9 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotnim.html b/master/godotnim.html index 2add412..6080c8a 100644 --- a/master/godotnim.html +++ b/master/godotnim.html @@ -1222,8 +1222,14 @@ function main() {- Source -Edit +Edit
proc find*(self: GodotArray; what: GodotVariant; f: cint): cint {.noSideEffect, @@ -1550,9 +1561,9 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc findLast*(self: GodotArray; what: GodotVariant): cint {.noSideEffect, @@ -1560,9 +1571,9 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotmacros.html b/master/godotmacros.html index 73badf7..4c46402 100644 --- a/master/godotmacros.html +++ b/master/godotmacros.html @@ -1247,12 +1247,12 @@ Generates Godot type. Self-documenting example:- Source -Edit +Edit
proc contains*(self: GodotArray; value: GodotVariant): bool {.noSideEffect, @@ -1570,27 +1581,27 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc godotHash*(self: GodotArray): cint {.noSideEffect, importc: "godot_array_hash".}- Source -Edit +Edit
proc hash*(self: GodotArray): Hash {.inline.}- Source -Edit +Edit
proc insert*(self: var GodotArray; pos: cint; value: GodotVariant) {.@@ -1598,36 +1609,36 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotinternal.html b/master/godotinternal.html index ec2b8e3..5f8d353 100644 --- a/master/godotinternal.html +++ b/master/godotinternal.html @@ -1427,7 +1427,7 @@ function main() {- Source -Edit +Edit
proc reverse*(self: var GodotArray) {.importc: "godot_array_invert".}- Source -Edit +Edit
proc popLast*(self: var GodotArray): GodotVariant {.importc: "godot_array_pop_back".}- Source -Edit +Edit
proc popFirst*(self: var GodotArray): GodotVariant {.importc: "godot_array_pop_front".}- Source -Edit +Edit
proc addLast*(self: var GodotArray; value: GodotVariant) {.@@ -1635,9 +1646,9 @@ class="link-seesrc" target="_blank">Source- Source -Edit +Edit
proc addFirst*(self: var GodotArray; value: GodotVariant) {.@@ -1645,27 +1656,27 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotdictionaries.html b/master/godotdictionaries.html index 1d69296..c0e6057 100644 --- a/master/godotdictionaries.html +++ b/master/godotdictionaries.html @@ -1286,7 +1286,7 @@ function main() {- Source -Edit +Edit
proc delete*(self: var GodotArray; idx: cint) {.importc: "godot_array_remove".}- Source -Edit +Edit
proc setLen*(self: var GodotArray; size: cint) {.importc: "godot_array_resize".}- Source -Edit +Edit
proc rfind*(self: GodotArray; what: GodotVariant; f: cint): cint {.noSideEffect, @@ -1673,16 +1684,7 @@ class="link-seesrc" target="_blank">Source- Source -Edit - -
-- -
proc len*(self: GodotArray): cint {.noSideEffect, importc: "godot_array_size".}- - - Source Edit @@ -1691,9 +1693,9 @@ class="link-seesrc" target="_blank">Source
- Source -Edit +Edit
proc sortCustom*(self: var GodotArray; obj: var GodotObject; funcName: GodotString) {.@@ -1701,9 +1703,18 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotbase.html b/master/godotbase.html index f2b86bb..f249f94 100644 --- a/master/godotbase.html +++ b/master/godotbase.html @@ -1311,7 +1311,7 @@ function main() {- Source -Edit +Edit + +
+- +
proc `$`*(self: GodotArray): string- + + Source +Edit
@@ -1711,40 +1722,40 @@ class="link-seesrc" target="_blank">SourceIterators
-
- +
iterator items*(arr: GodotArray): GodotVariant iterator items*(self: GodotArray): GodotVariant- Source -Edit +Edit
-- +
iterator mitems*(arr: var GodotArray): var GodotVariant iterator mitems*(self: var GodotArray): var GodotVariant- Source -Edit +Edit
-- +
iterator pairs*(arr: GodotArray): tuple[key: cint, val: GodotVariant] iterator pairs*(self: GodotArray): tuple[key: cint, val: GodotVariant]- Source -Edit +Edit
-- +
iterator mpairs*(arr: var GodotArray): tuple[key: cint, val: var GodotVariant] iterator mpairs*(self: var GodotArray): tuple[key: cint, val: var GodotVariant]- Source -Edit +Edit
@@ -1757,7 +1768,7 @@ class="link-seesrc" target="_blank">Source- Source Edit @@ -1325,7 +1325,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1334,7 +1334,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1343,7 +1343,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1352,7 +1352,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1361,7 +1361,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1370,7 +1370,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1385,7 +1385,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1301,7 +1301,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1310,7 +1310,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1320,7 +1320,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1329,7 +1329,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1338,7 +1338,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1347,7 +1347,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1357,7 +1357,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1367,7 +1367,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1377,7 +1377,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1386,7 +1386,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1395,7 +1395,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1404,7 +1404,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1414,7 +1414,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1424,7 +1424,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1434,7 +1434,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1444,7 +1444,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1454,7 +1454,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1469,7 +1469,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1442,7 +1442,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1453,7 +1453,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1463,7 +1463,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1474,7 +1474,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1514,7 +1514,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1540,7 +1540,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1556,7 +1556,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1569,7 +1569,7 @@ class="link-seesrc" target="_blank">Source
- returns user data Source Edit @@ -1583,7 +1583,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1598,7 +1598,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1612,7 +1612,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1626,7 +1626,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1642,7 +1642,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1657,7 +1657,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1671,7 +1671,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1686,7 +1686,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1697,7 +1697,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1709,7 +1709,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1721,7 +1721,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1733,7 +1733,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1746,7 +1746,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1759,7 +1759,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1770,7 +1770,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1780,7 +1780,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1790,7 +1790,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1799,7 +1799,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1808,7 +1808,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1818,7 +1818,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1828,7 +1828,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1837,7 +1837,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1846,7 +1846,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1856,7 +1856,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1865,7 +1865,7 @@ class="link-seesrc" target="_blank">Source
- Allocates the specified number of bytes. Using this instead of stdlib proc will help Godot track how much memory is in use in debug mode. Source Edit @@ -1874,7 +1874,7 @@ class="link-seesrc" target="_blank">Source
- Reallocates the pointer for the specified number of bytes. Using this instead of stdlib proc will help Godot track how much memory is in use in debug mode. Source Edit @@ -1883,7 +1883,7 @@ class="link-seesrc" target="_blank">Source
- Frees the memory pointed to by the pointer. Using this instead of stdlib proc will help Godot track how much memory is in use in debug mode. Source Edit @@ -1898,7 +1898,7 @@ class="link-seesrc" target="_blank">Source
var myField: int ## Not exported to Godot (i.e. editor will not see this field). - var myString* {.gdExport, hint: Length, tip: "20".}: string + var myString* {.gdExport, hint: Length, hintStr: "20".}: string ## Exported to Godot as ``my_string``. ## Editor will limit this string to length 20. ## ``hint` is a value of ``GodotPropertyHint`` enum. - ## ``tip`` depends on the value of ``hint``, its format is described - ## in ``GodotPropertyHint`` documentation. + ## ``hintStr`` depends on the value of ``hint``, its format is + ## described in ``GodotPropertyHint`` documentation. method ready*() = ## Exported methods are exported to Godot by default, @@ -1272,9 +1272,9 @@ Generates Godot type. Self-documenting example:print("MyTool initialized!")Objects can be instantiated by invoking gdnew or by using load or any other way that you can find in Godot API.
Source -Edit +Edit @@ -1287,7 +1287,7 @@ class="link-seesrc" target="_blank">Source- + linkedObject: NimGodotObject ## Wrapper around native object that is the container of the Nim "script" + ## This is needed for `of` checks and `as` conversions to work as + ## expected. For example, Nim type may inherit from ``Spatial``, but the + ## script is attached to ``Particles``. In this case conversion to + ## ``Particles`` is valid, but Nim type system is not aware of that. + ## This works in both directions - for linked native object this + ## reference points to Nim object. + isExternalRef: bool">
Nim Godot Object Nim Godot Object - +
Call Error Godot Type Info - Vars @@ -1246,16 +1262,17 @@ function main() {
- Procs
-
- -
- +
get Class Name - -
deinit - +
as Nim Godot Object - +
nim Godot Object Finalizer as Nim Godot Object new Variant as Object - `
+as` - `
~` get Singleton new Conversion Error - -
set Godot Object - +
set Own set Native Object - +
remove Godot Object - `
==` - -
godot Object - +
variant Type godot Type Info to Variant - -
from Variant - -
variant Type - -
to Variant from Variant to Variant - -
from Variant - -
variant Type - +
godot Type Info - +
godot Type Info - -
to Variant - +
from Variant - +
godot Type Info - +
to Variant from Variant from Variant - -
from Variant - +
variant Type godot Type Info to Variant - -
from Variant - -
variant Type - +
variant Type - +
godot Type Info godot Type Info to Variant from Variant - -
from Variant - +
variant Type godot Type Info to Variant This module defines NimGodotObject and toVariant/fromVariant converters for Nim types. The converters are used by gdobj macro to import/export values from/to Godot (editor, GDScript).
You can also allow conversion of any custom type MyType by implementing:
-proc variantType*(T: typedesc[MyType]): VariantType +proc godotTypeInfo*(T: typedesc[MyType]): GodotTypeInfo proc toVariant*(self: MyType): Variant -proc fromVariant*(self: var MyType, val: Variant): ConversionResult+proc fromVariant*(self: var MyType, val: Variant): ConversionResultImplementing godotTypeInfo is optional and is necessary only if you want the type to be editable from the editor.
+Imports
@@ -1366,15 +1390,21 @@ function main() {
NimGodotObject* = ref object of RootObj godotObject: ptr GodotObject + linkedObject: NimGodotObject ## Wrapper around native object that is the container of the Nim "script" + ## This is needed for `of` checks and `as` conversions to work as + ## expected. For example, Nim type may inherit from ``Spatial``, but the + ## script is attached to ``Particles``. In this case conversion to + ## ``Particles`` is valid, but Nim type system is not aware of that. + ## This works in both directions - for linked native object this + ## reference points to Nim object. isExternalRef: bool - isOwn: bool- -The base type all Godot types inherit from. Manages lifecycle of the wrapped GodotObject. +The base type all Godot types inherit from. Manages lifecycle of the wrapped GodotObject. Source -Edit +Edit
ConversionResult* {.pure.} = enum @@ -1384,9 +1414,9 @@ class="link-seesrc" target="_blank">Source- Conversion result to return from fromVariant procedure. Source -Edit +Edit
CallError* = object of Exception @@ -1395,9 +1425,25 @@ class="link-seesrc" target="_blank">Source- Raised by wrappers in case of an incorrect dynamic invocation. For example, if incorrect number of arguments were passed or they had unexpected types. Source -Edit +Edit + +
+- +
GodotTypeInfo* = object + variantType*: VariantType + hint*: GodotPropertyHint + hintStr*: string ## Format depends on the type and the hint. + ## For example, for Enum ``hint`` this is a comma separated list of + ## values. + ## See documentation of ``GodotPropertyHint`` for description of formats. +- +Type information provided to Godot editor + Source +Edit
@@ -1405,13 +1451,22 @@ class="link-seesrc" target="_blank">Sourcediff --git a/master/godotnodepaths.html b/master/godotnodepaths.html index 3bdd05e..6425ab2 100644 --- a/master/godotnodepaths.html +++ b/master/godotnodepaths.html @@ -1274,7 +1274,7 @@ function main() {Vars
+
- +
classRegistryStatic* {.compileTime.}: TableRef[cstring, ObjectInfo]- +Compile-time variable used for implementation of several procedures and macros + Source +Edit + +
refClasses* {.compileTime.} = newSeq[string]()- Source -Edit +Edit
@@ -1419,76 +1474,77 @@ class="link-seesrc" target="_blank">SourceProcs
-
- +
proc print*(message: string) {.inline.} proc print*(parts: varargs[string, `$`])- -Prints message to Godot log. +Prints concatenated parts to Godot log. Source -Edit - -
-- -
proc print*(message: cstring) {.inline.}- -Prints message to Godot log. - Source -Edit +Edit
proc getClassName*(o: NimGodotObject): string- Source -Edit +Edit
proc deinit*(obj: NimGodotObject)- Destroy the object. You only need to call this for objects not inherited from Reference, where manual lifecycle control is necessary. Source -Edit +Edit
-- +
proc asNimGodotObject*[T: NimGodotObject](godotObject: ptr GodotObject): T- +
proc nimGodotObjectFinalizer*[T: NimGodotObject](obj: T)- + + Source +Edit + +
+ proc asNimGodotObject*[T: NimGodotObject](godotObject: ptr GodotObject; + noRef: bool = false): T- Wraps godotObject into Nim type T. This is used by godotapigen and should rarely be used by anything else. Source -Edit +Edit
proc newVariant*(obj: NimGodotObject): Variant {.inline.}- Source -Edit +Edit
proc asObject*[T: NimGodotObject](v: Variant): T {.inline.}- Converts v to object of type T. Returns nil if the conversion cannot be performed (v's type is not an Object or it's an object of an incompatible type) Source -Edit +Edit
proc asObject*(v: Variant; T: typedesc[NimGodotObject]): T {.inline.}- Converts v to object of type T. Returns nil if the conversion cannot be performed (v's type is not an Object or it's an object of an incompatible type) Source -Edit +Edit
- @@ -1497,306 +1553,333 @@ class="link-seesrc" target="_blank">Source
proc `as`*[T: NimGodotObject](obj: NimGodotObject; t: typedesc[T]): TThis can be used either in dot notation (node.as(Button)) or infix notation (node as Button).
Source -Edit +Edit + + +- +
proc `~`*[T: NimGodotObject](obj: NimGodotObject; t: typedesc[T]): bool- +Godot-specific inheritance check. You must use this over Nim's standard of operator, because Nim does not know which object your script is attached to in runtime. For example, if you create a gdobj Bullet of Spatial and the Bullet is attached to a MeshInstance, myBullet of MeshInstance will return false, but myBullet ~ MeshInstance will return true. This is going to be changed to of in later versions, when Nim starts supporting overloading of operator. + Source +Edit
proc getSingleton*[T: NimGodotObject](): T- Returns singleton of type T. Normally, this should not be used, because godotapigen wraps singleton methods so that singleton objects don't have to be provided as parameters. Source -Edit +Edit
proc gdnew*[T: NimGodotObject](): T- Instantiates new object of type T. Source -Edit +Edit
proc newCallError*(err: VariantCallError): ref CallError- Instantiates CallError from Godot err. Source -Edit +Edit
proc newConversionError*(err: ConversionResult): ref ValueError- Instantiates error raised by godotapigen generated code in case of a conversion error. Source -Edit +Edit
proc setGodotObject*(nimObj: NimGodotObject; obj: ptr GodotObject) {.inline.}- -Used from Godot constructor. Don't call this. +Used from Godot constructor produced by gdobj macro. Do not call. Source -Edit +Edit
-- +
proc setOwn*(nimObj: NimGodotObject) {.inline.} proc setNativeObject*(nimObj: NimGodotObject; nativeObj: NimGodotObject) {.inline.}- -Used from Godot constructor. Don't call this. +Used from Godot constructor produced by gdobj macro. Do not call. Source -Edit +Edit
proc removeGodotObject*(nimObj: NimGodotObject) {.inline.}- -Used from Godot destructor. Don't call this. +Used from Godot destructor produced by gdobj macro. Do not call. Source -Edit +Edit + +
+- +
proc `==`*(self, other: NimGodotObject): bool {.inline.}- +Compares objects by referential equality. + Source +Edit
proc godotObject*(nimObj: NimGodotObject): ptr GodotObject {.inline.}- -Returns internal poitner to GodotObject. Use only if you know what you are doing. +Returns raw poitner to GodotObject. Use only if you know what you are doing. Source -Edit +Edit
-- +
proc variantType*(T: typedesc[NimGodotObject]): VariantType {.inline.} proc godotTypeInfo*(T: typedesc[NimGodotObject]): GodotTypeInfo {.inline.}- Source -Edit +Edit
proc toVariant*(self: NimGodotObject): Variant {.inline.}- Source -Edit +Edit
proc fromVariant*[T: NimGodotObject](self: var T; val: Variant): ConversionResult- Source -Edit - -
-- -
proc variantType*(T: typedesc[enum]): VariantType {.inline.}- - - Source -Edit - -
-- -
proc toVariant*[T: enum](self: T): Variant {.inline.}- - - Source -Edit - -
-- -
proc fromVariant*[T: enum](self: var T; val: Variant): ConversionResult {.inline.}- - - Source -Edit +Edit
proc toVariant*(self: Variant): Variant {.inline.}- Source -Edit +Edit
proc fromVariant*(self: var Variant; val: Variant): ConversionResult {.inline.}- Source -Edit +Edit
-- +
proc variantType*(T: typedesc[SomeGodotOrNum]): VariantType {.inline.} proc godotTypeInfo*(T: typedesc[SomeGodotOrNum]): GodotTypeInfo {.inline.}- Source -Edit +Edit
-- +
proc toVariant*[T: SomeGodotOrNum](val: T): Variant {.inline.} proc godotTypeInfo*(T: typedesc[range]): VariantType {.inline.}- Source -Edit +Edit
-- +
proc fromVariant*[T: SomeSignedInt or SomeUnsignedInt](self: var T; val: Variant): ConversionResult proc toVariant*[T: SomeGodotOrNum](val: T): Variant {.inline.}- Source -Edit +Edit + +
+- +
proc fromVariant*[T: SomeSignedInt or SomeUnsignedInt](self: var T; val: Variant): ConversionResult- + + Source +Edit + +
+- +
proc godotTypeInfo*(T: typedesc[enum]): GodotTypeInfo- + + Source +Edit + +
+- +
proc toVariant*[T: enum](self: T): Variant {.inline.}- + + Source +Edit + +
+- +
proc fromVariant*[T: enum](self: var T; val: Variant): ConversionResult {.inline.}- + + Source +Edit
proc fromVariant*[T: SomeFloat](self: var T; val: Variant): ConversionResult- Source -Edit +Edit
proc fromVariant*[T: SomeGodot](self: var T; val: Variant): ConversionResult- Source -Edit +Edit
-- +
proc variantType*(T: typedesc[string]): VariantType {.inline.} proc godotTypeInfo*(T: typedesc[string]): GodotTypeInfo {.inline.}- Source -Edit +Edit
proc toVariant*(s: string): Variant {.inline.}- Source -Edit +Edit
proc fromVariant*(s: var string; val: Variant): ConversionResult- Source -Edit +Edit
-- +
proc variantType*(T: typedesc[seq]): VariantType proc godotTypeInfo*(T: typedesc[seq]): GodotTypeInfo- Source -Edit +Edit
-- +
proc variantType*(T: typedesc[array]): VariantType proc godotTypeInfo*(T: typedesc[array]): GodotTypeInfo- Source -Edit +Edit
proc toVariant*[T](s: openarray[T]): Variant- Source -Edit +Edit
proc fromVariant*[T](s: var seq[T]; val: Variant): ConversionResult- Source -Edit +Edit
proc fromVariant*[T: array](s: var T; val: Variant): ConversionResult- Source -Edit +Edit
-- +
proc variantType*(T: typedesc[Table | TableRef]): VariantType {.inline.} proc godotTypeInfo*(T: typedesc[Table | TableRef]): GodotTypeInfo {.inline.}- Source -Edit +Edit
proc toVariant*[T: Table or TableRef](t: T): Variant- Source -Edit +Edit
proc fromVariant*[T: Table or TableRef](t: var T; val: Variant): ConversionResult- Source -Edit +Edit
proc getNativeLibHandle*(): pointer- -Returns NativeScript library handle used to register type information in Godot. Use only if you know what you are doing. +Returns NativeScript library handle used to register type information in Godot. Source -Edit +Edit
@@ -1808,27 +1891,27 @@ class="link-seesrc" target="_blank">Source- Prints warning to Godot log, adding filename and line information. Source -Edit +Edit
template printError*(error: typed)- Prints error to Godot log, adding filename and line information. Source -Edit +Edit
template registerClass*(T: typedesc; godotClassName: cstring; native: bool)- Registers the specified Godot type. Used by gdobj macro and godotapigen. Source -Edit +Edit
@@ -1841,7 +1924,7 @@ class="link-seesrc" target="_blank">Source- Source Edit @@ -1289,7 +1289,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1298,7 +1298,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1308,7 +1308,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1318,7 +1318,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1328,7 +1328,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1338,7 +1338,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1348,7 +1348,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1358,7 +1358,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1368,7 +1368,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1378,7 +1378,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1388,7 +1388,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1403,7 +1403,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1247,7 +1247,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1529,7 +1529,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1540,7 +1540,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1551,7 +1551,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1562,7 +1562,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1573,7 +1573,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1584,7 +1584,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1599,7 +1599,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1609,7 +1609,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1619,7 +1619,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1629,7 +1629,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1639,7 +1639,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1649,7 +1649,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1659,7 +1659,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1669,7 +1669,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1679,7 +1679,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1689,7 +1689,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1699,7 +1699,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1709,7 +1709,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1719,7 +1719,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1729,7 +1729,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1739,7 +1739,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1749,7 +1749,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1759,7 +1759,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1768,7 +1768,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1778,7 +1778,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1788,7 +1788,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1798,7 +1798,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1808,7 +1808,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1818,7 +1818,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1827,7 +1827,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1837,7 +1837,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1847,7 +1847,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1857,7 +1857,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1867,7 +1867,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1877,7 +1877,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1887,7 +1887,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1897,7 +1897,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1907,7 +1907,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1917,7 +1917,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1927,7 +1927,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1937,7 +1937,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1947,7 +1947,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1957,7 +1957,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1967,7 +1967,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1977,7 +1977,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1987,7 +1987,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1997,7 +1997,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2007,7 +2007,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2017,7 +2017,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2028,7 +2028,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2038,7 +2038,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2048,7 +2048,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2057,7 +2057,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2066,7 +2066,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2076,7 +2076,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2086,7 +2086,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2096,7 +2096,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2106,7 +2106,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2116,7 +2116,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2126,7 +2126,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2136,7 +2136,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2146,7 +2146,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2156,7 +2156,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2166,7 +2166,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2176,7 +2176,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2187,7 +2187,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2197,7 +2197,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2207,7 +2207,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2216,7 +2216,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2225,7 +2225,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2235,7 +2235,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2245,7 +2245,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2255,7 +2255,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2265,7 +2265,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2275,7 +2275,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2285,7 +2285,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2295,7 +2295,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2305,7 +2305,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2315,7 +2315,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2325,7 +2325,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2335,7 +2335,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2346,7 +2346,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2356,7 +2356,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2366,7 +2366,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2375,7 +2375,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2384,7 +2384,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2394,7 +2394,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2404,7 +2404,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2414,7 +2414,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2424,7 +2424,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2434,7 +2434,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2444,7 +2444,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2454,7 +2454,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2464,7 +2464,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2474,7 +2474,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2484,7 +2484,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2494,7 +2494,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2505,7 +2505,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2515,7 +2515,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2525,7 +2525,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2534,7 +2534,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2543,7 +2543,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2553,7 +2553,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2563,7 +2563,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2573,7 +2573,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2583,7 +2583,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2593,7 +2593,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2603,7 +2603,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2613,7 +2613,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2623,7 +2623,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2633,7 +2633,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2643,7 +2643,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2657,7 +2657,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2666,7 +2666,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2675,7 +2675,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2684,7 +2684,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2693,7 +2693,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2702,7 +2702,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2711,7 +2711,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2720,7 +2720,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2729,7 +2729,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2738,7 +2738,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2747,7 +2747,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2756,7 +2756,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2765,7 +2765,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2774,7 +2774,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2789,7 +2789,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1273,7 +1273,7 @@ class="link-seesrc" target="_blank">Source
- Returns the length of string in bytes if it is represented as UTF-8. Source Edit @@ -1282,7 +1282,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1291,7 +1291,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1300,7 +1300,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1309,7 +1309,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1318,7 +1318,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1327,7 +1327,7 @@ class="link-seesrc" target="_blank">Source
- Converts the GodotString into Nim string Source Edit @@ -1336,7 +1336,7 @@ class="link-seesrc" target="_blank">Source
- Converts the Nim string into GodotString Source Edit @@ -1345,7 +1345,7 @@ class="link-seesrc" target="_blank">Source
- Converts the cstring into GodotString Source Edit @@ -1360,7 +1360,7 @@ class="link-seesrc" target="_blank">Source
hash Compare - +
booleanize - `
@@ -1406,7 +1408,7 @@ function main() {$` - Source Edit @@ -1417,7 +1419,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1430,7 +1432,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1441,7 +1443,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1455,7 +1457,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1464,7 +1466,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1474,7 +1476,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1484,7 +1486,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1494,7 +1496,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1504,7 +1506,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1514,7 +1516,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1524,7 +1526,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1534,7 +1536,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1544,7 +1546,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1554,7 +1556,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1564,7 +1566,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1574,7 +1576,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1584,7 +1586,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1594,7 +1596,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1604,7 +1606,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1614,7 +1616,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1624,7 +1626,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1634,7 +1636,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1644,7 +1646,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1654,7 +1656,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1664,7 +1666,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1674,7 +1676,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1684,7 +1686,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1694,7 +1696,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1704,7 +1706,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1714,7 +1716,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1724,7 +1726,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1734,7 +1736,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1744,7 +1746,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1753,7 +1755,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1762,7 +1764,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1771,7 +1773,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1780,7 +1782,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1789,7 +1791,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1799,7 +1801,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1808,7 +1810,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1817,7 +1819,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1826,7 +1828,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1836,7 +1838,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1845,7 +1847,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1854,7 +1856,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1863,7 +1865,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1872,7 +1874,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1882,7 +1884,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1891,7 +1893,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1901,7 +1903,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1910,7 +1912,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1920,7 +1922,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1930,7 +1932,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1940,7 +1942,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1950,7 +1952,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1960,7 +1962,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1970,7 +1972,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1980,7 +1982,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1990,7 +1992,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2000,7 +2002,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2010,7 +2012,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2021,7 +2023,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2031,7 +2033,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2040,7 +2042,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2049,7 +2051,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2059,7 +2061,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -2069,10 +2071,19 @@ class="link-seesrc" target="_blank">Source
- Source Edit +
+- +
proc `$`*(self: GodotVariant): string- + + Source +Edit +
where
- godotbase Defines Error type and few common math procedures missing in Nim's standard library.
-Godot API
This is an auto-generated list of Godot API modules. It's built from Godot changeset 211dfa6602cff8605acfd29986dcf33f3c3176cc.
+Godot API
This is an auto-generated list of Godot API modules. It's built from Godot changeset 475e8b28b28962a24b783597f9a3cabf4a370dee.
- a_star
- accept_dialog
- animated_sprite
@@ -1726,7 +1726,7 @@ scons platform=<your_platform>where
- Source Edit @@ -1298,7 +1298,7 @@ class="link-seesrc" target="_blank">Source
- Moves the GodotNodePath into Nim wrapper. The path will be destroyed automatically when the result is no longer referenced. Source Edit @@ -1307,7 +1307,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1316,7 +1316,7 @@ class="link-seesrc" target="_blank">Source
- WARNING: do not keep the returned value for longer than the lifetime of path Source Edit @@ -1325,7 +1325,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1334,7 +1334,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1343,7 +1343,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1352,7 +1352,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1361,7 +1361,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1370,7 +1370,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1379,7 +1379,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1388,7 +1388,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1397,7 +1397,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1411,7 +1411,7 @@ class="link-seesrc" target="_blank">Source
- Source Edit @@ -1426,7 +1426,7 @@ class="link-seesrc" target="_blank">Source
proc addFirst*(self: var PoolStringArray; data: string)
proc insert*(self: var PoolStringArray; idx: int; data: string): Error
proc `[]=`*(self: var PoolStringArray; idx: int; data: string)
proc `[]`*(self: PoolStringArray; idx: int): string
iterator pairs*(arr: PoolStringArray): tuple[key: int, val: string]
proc `$`*(self: RID): string
proc `==`*(a, b: RID): bool {.importc: "godot_rid_operator_equal".}
proc `<`*(a, b: RID): bool {.importc: "godot_rid_operator_less".}
proc `$`*(self: Variant): string {.inline.}
proc newVariant*(): Variant {.inline.}
proc newVariant*(v: Variant): Variant {.inline.}
proc newVariant*(v: GodotVariant): Variant {.inline.}
proc newVariant*(b: bool): Variant {.inline.}
proc newVariant*(r: cdouble): Variant {.inline.}
proc newVariant*(s: string): Variant {.inline.}
proc newVariant*(v2: Vector2): Variant {.inline.}
proc newVariant*(rect2: Rect2): Variant {.inline.}
proc newVariant*(v3: Vector3): Variant {.inline.}
proc newVariant*(t2d: Transform2D): Variant {.inline.}
proc newVariant*(plane: Plane): Variant {.inline.}
proc newVariant*(quat: Quat): Variant {.inline.}
proc newVariant*(rect3: Rect3): Variant {.inline.}
proc newVariant*(basis: Basis): Variant {.inline.}
proc newVariant*(trans: Transform): Variant {.inline.}
proc newVariant*(color: Color): Variant {.inline.}
proc newVariant*(nodePath: NodePath): Variant {.inline.}
proc newVariant*(godotNodePath: GodotNodePath): Variant {.inline.}
proc newVariant*(rid: RID): Variant {.inline.}
proc newVariant*(obj: ptr GodotObject): Variant {.inline.}
proc newVariant*(arr: Array): Variant {.inline.}
proc newVariant*(pba: PoolByteArray): Variant {.inline.}
proc newVariant*(pia: PoolIntArray): Variant {.inline.}
proc newVariant*(pra: PoolRealArray): Variant {.inline.}
proc newVariant*(psa: PoolStringArray): Variant {.inline.}
proc newVariant*(pv2a: PoolVector2Array): Variant {.inline.}
proc newVariant*(pv3a: PoolVector3Array): Variant {.inline.}
proc newVariant*(pca: PoolColorArray): Variant {.inline.}
proc asBool*(self: Variant): bool {.inline.}
proc asUInt*(self: Variant): uint64
proc asInt*(self: Variant): int64
proc asReal*(self: Variant): cdouble
proc asString*(self: Variant): string
proc asVector2*(self: Variant): Vector2
proc asRect2*(self: Variant): Rect2
proc asVector3*(self: Variant): Vector3
proc asTransform2D*(self: Variant): Transform2D
proc asPlane*(self: Variant): Plane
proc asQuat*(self: Variant): Quat
proc asRect3*(self: Variant): Rect3
proc asBasis*(self: Variant): Basis
proc asTransform*(self: Variant): Transform
proc asColor*(self: Variant): Color
proc asNodePath*(self: Variant): NodePath
proc asRID*(self: Variant): RID
proc asGodotObject*(self: Variant): ptr GodotObject
proc asArray*(self: Variant): Array
proc asPoolByteArray*(self: Variant): PoolByteArray
proc asPoolIntArray*(self: Variant): PoolIntArray
proc asPoolRealArray*(self: Variant): PoolRealArray
proc asPoolStringArray*(self: Variant): PoolStringArray
proc asPoolVector2Array*(self: Variant): PoolVector2Array
proc asPoolVector3Array*(self: Variant): PoolVector3Array
proc asPoolColorArray*(self: Variant): PoolColorArray
proc hasMethod*(self: Variant; meth: string): bool
proc `==`*(self, other: Variant): bool
proc `<`*(self, other: Variant): bool
proc hashCompare*(self, other: Variant): bool
proc booleanize*(self: Variant; isValid: var bool): bool