ezEngine  Release 25.03
ezVisualScriptDataType Struct Reference

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

#include <VisualScriptDataType.h>

Inheritance diagram for ezVisualScriptDataType:

Public Types

enum  Enum : ezUInt8 {
  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 = ezUInt8
 

Static Public Member Functions

static EZ_ALWAYS_INLINE bool IsNumber (Enum dataType)
 
static EZ_ALWAYS_INLINE bool IsPointer (Enum dataType)
 
static ezVariantType::Enum GetVariantType (Enum dataType)
 
static Enum FromVariantType (ezVariantType::Enum variantType)
 
static ezProcessingStream::DataType GetStreamDataType (Enum dataType)
 
static const ezRTTIGetRtti (Enum dataType)
 
static Enum FromRtti (const ezRTTI *pRtti)
 
static ezUInt32 GetStorageSize (Enum dataType)
 
static ezUInt32 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 ezVariantType.

Like with ezVariantType, 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: