Module godotinternaltypes

Types

GodotArray = object
  data: array[sizeof(int), byte]
  Source Edit
GodotDictionary = object
  data: array[sizeof(int), byte]
  Source Edit
GodotNodePath = object
  data: array[sizeof(int), byte]
  Source Edit
GodotObject = object
  Source Edit
GodotPoolByteArray = object
  data: array[sizeof(int), byte]
  Source Edit
GodotPoolByteArrayReadAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolByteArrayWriteAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolIntArray = object
  data: array[sizeof(int), byte]
  Source Edit
GodotPoolIntArrayReadAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolIntArrayWriteAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolRealArray = object
  data: array[sizeof(int), byte]
  Source Edit
GodotPoolRealArrayReadAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolRealArrayWriteAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolStringArray = object
  data: array[sizeof(int), byte]
  Source Edit
GodotPoolStringArrayReadAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolStringArrayWriteAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolVector2Array = object
  data: array[sizeof(int), byte]
  Source Edit
GodotPoolVector2ArrayReadAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolVector2ArrayWriteAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolVector3Array = object
  data: array[sizeof(int), byte]
  Source Edit
GodotPoolVector3ArrayReadAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolVector3ArrayWriteAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolColorArray = object
  data: array[sizeof(int), byte]
  Source Edit
GodotPoolColorArrayReadAccess = object
  data: array[1, byte]
  Source Edit
GodotPoolColorArrayWriteAccess = object
  data: array[1, byte]
  Source Edit
GodotString = object
  data: array[sizeof(int), byte]
  Source Edit
GodotCharString = object
  data: array[sizeof(int), byte]
  Source Edit
VariantType = enum
  Nil,                        ## atomic types
  Bool, Int, Real, String, Vector2, ## 5
  Rect2, Vector3, Transform2D, Plane, Quat, ## 10
  AABB, Basis, Transform,       ## misc types
  Color, NodePath,             ## 15
  RID, Object, Dictionary, Array, ## 20
  PoolByteArray, PoolIntArray, PoolRealArray, PoolStringArray, PoolVector2Array, ## 25
  PoolVector3Array, PoolColorArray
  Source Edit
VariantCallErrorType = enum
  OK, InvalidMethod, InvalidArgument, TooManyArguments, TooFewArguments,
  InstanceIsNull
  Source Edit
VariantCallError = object
  error*: VariantCallErrorType
  argument*: cint
  expected*: VariantType
  Source Edit
GodotVariant = object
  data: array[4 + 2, float32]
  Source Edit
GodotMethodBind = object
  Source Edit
GDNativeAPIVersion = object
  major*: cuint
  minor*: cuint
  Source Edit
GDNativeInitOptions = object
  inEditor*: bool
  coreApiHash*: uint64
  editorApiHash*: uint64
  noApiHash*: uint64
  reportVersionMismatch*: proc (library: ptr GodotObject; extension: cstring;
                              want: GDNativeAPIVersion; have: GDNativeAPIVersion) {.
noconv
.} reportLoadingError*: proc (library: ptr GodotObject; what: cstring) {.
noconv
.} gdNativeLibrary*: ptr GodotObject gdNativeAPIStruct*: pointer activeLibraryPath*: ptr GodotString
  Source Edit
GDNativeTerminateOptions = object
  inEditor*: bool
  Source Edit
GodotMethodRPCMode = enum
  Disabled, Remote, Sync, Master, Slave
  Source Edit
GodotMethodAttributes = object
  rpcMode*: GodotMethodRPCMode
  Source Edit
GodotPropertyHint = enum
  None,                       ## no hint provided.
  Range,                      ## hint_text = "min,max,step,slider; // slider is optional"
  ExpRange,                   ## hint_text = "min,max,step", exponential edit
  Enum,                       ## hint_text= "val1,val2,val3,etc"
  ExpEasing,                  ## exponential easing funciton (Math::ease)
  Length,                     ## hint_text= "length" (as integer)
  SpriteFrame, KeyAccel,       ## hint_text= "length" (as integer)
  Flags,                      ## hint_text= "flag1,flag2,etc" (as bit flags)
  Layers2DRender, Layers2DPhysics, Layers3DRender, Layers3DPhysics, File, ## a file path must be passed, hint_text 
                                                                     ## (optionally)
                                                                     ## is a filter 
                                                                     ## "*.png,*.wav,*.doc,"
  Dir,                        ## a directort path must be passed
  GlobalFile, ## a file path must be passed, hint_text (optionally) is a
             ## filter "*.png,*.wav,*.doc,"
  GlobalDir,                  ## a directort path must be passed
  ResourceType,               ## a resource object type
  MultilineText,              ## used for string properties that can contain multiple lines
  ColorNoAlpha,               ## used for ignoring alpha component when editing a color
  ImageCompressLossy, ImageCompressLossless, ObjectId, TypeString, ## a type string, the hint is the base type to choose
  NodePathToEditedNode,       ## so something else can provide this
                       ## (used in scripts)
  MethodOfVariantType,        ## a method of a type
  MethodOfBaseType,           ## a method of a base type
  MethodOfInstance,           ## a method of an instance
  MethodOfScript,             ## a method of a script & base
  PropertyOfVariantType,      ## a property of a type
  PropertyOfBaseType,         ## a property of a base type
  PropertyOfInstance,         ## a property of an instance
  PropertyOfScript,           ## a property of a script & base
  PropertyHintMax
  Source Edit
GodotPropertyUsage = enum
  Storage = GODOT_PROPERTY_USAGE_STORAGE_VALUE,
  Editor = GODOT_PROPERTY_USAGE_EDITOR_VALUE,
  Network = GODOT_PROPERTY_USAGE_NETWORK_VALUE,
  NoEditor = GODOT_PROPERTY_USAGE_NOEDITOR_VALUE,
  Default = GODOT_PROPERTY_USAGE_DEFAULT_VALUE,
  EditorHelper = GODOT_PROPERTY_USAGE_EDITOR_HELPER_VALUE, Checkable = GODOT_PROPERTY_USAGE_CHECKABLE_VALUE, ## used for editing global variables
  Checked = GODOT_PROPERTY_USAGE_CHECKED_VALUE, ## used for editing global variables
  Internationalized = GODOT_PROPERTY_USAGE_INTERNATIONALIZED_VALUE, ## hint for internationalized strings
  DefaultIntl = GODOT_PROPERTY_USAGE_DEFAULT_INTL_VALUE, Group = GODOT_PROPERTY_USAGE_GROUP_VALUE, ## used for grouping props in the editor
  Category = GODOT_PROPERTY_USAGE_CATEGORY_VALUE, NonZero = GODOT_PROPERTY_USAGE_STORE_IF_NONZERO_VALUE, ## only store if nonzero
  NonOne = GODOT_PROPERTY_USAGE_STORE_IF_NONONE_VALUE, ## only store if false
  NoInstanceState = GODOT_PROPERTY_USAGE_NO_INSTANCE_STATE_VALUE,
  RestartIfChanged = GODOT_PROPERTY_USAGE_RESTART_IF_CHANGED_VALUE,
  ScriptVariable = GODOT_PROPERTY_USAGE_SCRIPT_VARIABLE_VALUE,
  StoreIfNull = GODOT_PROPERTY_USAGE_STORE_IF_NULL_VALUE,
  AnimateAsTrigger = GODOT_PROPERTY_USAGE_ANIMATE_AS_TRIGGER_VALUE,
  UpdateAllIfModified = GODOT_PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED_VALUE
  Source Edit
GodotPropertyAttributes = object
  rsetType*: GodotMethodRPCMode
  typ*: cint
  hint*: GodotPropertyHint
  hintString*: GodotString
  usage*: cint
  defaultValue*: GodotVariant
  Source Edit
GodotInstanceCreateFunc = object
  createFunc*: proc (obj: ptr GodotObject; methodData: pointer): pointer {.
noconv
.} methodData*: pointer freeFunc*: proc (a2: pointer) {.
noconv
.}
returns user data   Source Edit
GodotInstanceDestroyFunc = object
  destroyFunc*: proc (obj: ptr GodotObject; methodData: pointer; userData: pointer) {.
noconv
.} methodData*: pointer freeFunc*: proc (a2: pointer) {.
noconv
.}
  Source Edit
GodotInstanceMethod = object
  meth*: proc (obj: ptr GodotObject; methodData: pointer; userData: pointer;
             numArgs: cint; args: var array[MAX_ARG_COUNT, ptr GodotVariant]): GodotVariant {.
noconv
.} methodData*: pointer freeFunc*: proc (a2: pointer) {.
noconv
.}
  Source Edit
GodotPropertySetFunc = object
  setFunc*: proc (obj: ptr GodotObject; methodData: pointer; userData: pointer;
                value: GodotVariant) {.
noconv
.} methodData*: pointer freeFunc*: proc (a2: pointer) {.
noconv
.}
  Source Edit
GodotPropertyGetFunc = object
  getFunc*: proc (obj: ptr GodotObject; methodData: pointer; userData: pointer): GodotVariant {.
noconv
.} methodData*: pointer freeFunc*: proc (a2: pointer) {.
noconv
.}
  Source Edit
GodotSignalArgument = object
  name*: GodotString
  typ*: cint
  hint*: GodotPropertyHint
  hintString*: GodotString
  usage*: cint
  defaultValue*: GodotVariant
  Source Edit
GodotSignal = object
  name*: GodotString
  numArgs*: cint
  args*: ptr GodotSignalArgument
  numDefaultArgs*: cint
  defaultArgs*: ptr GodotVariant
  Source Edit
GodotClassConstructor = proc (): ptr GodotObject {.
noconv, gcsafe, locks: 0, raises: [], tags: []
.}
  Source Edit

Consts

MAX_ARG_COUNT = 256
  Source Edit