XII Release 0.1.0
Loading...
Searching...
No Matches
xiiVisualScriptDataType Struct Reference

Data types that are available in visual script. These are a subset of xiiVariantType. More...

#include <VisualScriptDataType.h>

Inheritance diagram for xiiVisualScriptDataType:
[legend]

Public Types

enum  Enum : StorageType {
  Invalid = 0 , Bool , Byte , Int ,
  Int64 , Float , Double , Color ,
  Vector3 , Quaternion , Transform , Time ,
  Angle , String , HashedString , GameObject ,
  Component , TypedPointer , Variant , Array ,
  Map , Coroutine , Count , EnumValue ,
  BitflagValue , ExtendedCount , AnyPointer = 0xFE , Any = 0xFF ,
  Default = Invalid
}
 
using StorageType = xiiUInt8
 

Static Public Member Functions

static XII_ALWAYS_INLINE bool IsNumber (Enum dataType)
 
static XII_ALWAYS_INLINE bool IsPointer (Enum dataType)
 
static xiiVariantType::Enum GetVariantType (Enum dataType)
 
static Enum FromVariantType (xiiVariantType::Enum variantType)
 
static xiiProcessingStream::DataType GetStreamDataType (Enum dataType)
 
static const xiiRTTIGetRtti (Enum dataType)
 
static Enum FromRtti (const xiiRTTI *pRtti)
 
static xiiUInt32 GetStorageSize (Enum dataType)
 
static xiiUInt32 GetStorageAlignment (Enum dataType)
 
static const char * GetName (Enum dataType)
 
static bool CanConvertTo (Enum sourceDataType, Enum targetDataType)
 

Detailed Description

Data types that are available in visual script. These are a subset of xiiVariantType.

Like with xiiVariantType, the order of these types is important as they are used to determine if a type is "bigger" during type deduction. Also the enum values are serialized in visual script files.


The documentation for this struct was generated from the following files: