Plasma Engine  2.0
Loading...
Searching...
No Matches
plVisualScriptDataType Struct Reference

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

#include <VisualScriptDataType.h>

Inheritance diagram for plVisualScriptDataType:

Public Types

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

Static Public Member Functions

static PL_ALWAYS_INLINE bool IsNumber (Enum dataType)
 
static PL_ALWAYS_INLINE bool IsPointer (Enum dataType)
 
static plVariantType::Enum GetVariantType (Enum dataType)
 
static Enum FromVariantType (plVariantType::Enum variantType)
 
static plProcessingStream::DataType GetStreamDataType (Enum dataType)
 
static const plRTTIGetRtti (Enum dataType)
 
static Enum FromRtti (const plRTTI *pRtti)
 
static plUInt32 GetStorageSize (Enum dataType)
 
static plUInt32 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 plVariantType.

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