Enfusion Script API
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
Types

Enforce script essentials. More...

Classes

interface  bool
 
interface  float
 
interface  int
 
interface  ResourceName
 
interface  SharedItemRef
 
interface  StaticArray
 
interface  string
 
interface  TypeName
 
interface  vector
 
interface  Class
 Super root of all classes in Enforce script. More...
 
interface  Managed
 
interface  ScriptAndConfig
 Base class for classes which combine enf::Class and enf::BaseClass (in C++). More...
 
interface  pointer
 Plain C++ pointer, no weak pointers, no memory management. More...
 
interface  handle64
 Plain 64bit data, no weak pointers, no memory management. More...
 
interface  func
 
interface  TypeID
 Script representation for C++ RTTI types. More...
 
interface  array< Class T >
 
interface  set< Class T >
 
interface  map< Class TKey, Class TValue >
 Associative array template. More...
 

Typedefs

typedef array< stringTStringArray
 
typedef array< floatTFloatArray
 
typedef array< intTIntArray
 
typedef array< boolTBoolArray
 
typedef array< ClassTClassArray
 
typedef array< ManagedTManagedArray
 
typedef array< ref ManagedTManagedRefArray
 
typedef array< vectorTVectorArray
 
typedef array< pointerTPointerArray
 
typedef array< ResourceNameTResourceNameArray
 
typedef set< stringTStringSet
 
typedef set< floatTFloatSet
 
typedef set< intTIntSet
 
typedef set< ClassTClassSet
 
typedef set< ManagedTManagedSet
 
typedef set< ref ManagedTManagedRefSet
 
typedef set< pointerTPointerSet
 
typedef int MapIterator
 
typedef map TIntFloatMap
 
typedef map< int, intTIntIntMap
 
typedef map< int, stringTIntStringMap
 
typedef map< int, ClassTIntClassMap
 
typedef map< int, ManagedTIntManagedMap
 
typedef map< int, ref ManagedTIntManagedRefMap
 
typedef map< int, pointerTIntPointerMap
 
typedef map< int, vectorTIntVectorMap
 
typedef map< string, floatTStringFloatMap
 
typedef map< string, intTStringIntMap
 
typedef map< string, stringTStringStringMap
 
typedef map< string, ClassTStringClassMap
 
typedef map< string, ManagedTStringManagedMap
 
typedef map< string, ref ManagedTStringManagedRefMap
 
typedef map< string, pointerTStringPointerMap
 
typedef map< string, vectorTStringVectorMap
 
typedef map< Class, floatTClassFloatMap
 
typedef map< Class, intTClassIntMap
 
typedef map< Class, stringTClassStringMap
 
typedef map< Class, ClassTClassClassMap
 
typedef map< Class, ManagedTClassManagedMap
 
typedef map< Class, ref ManagedTClassManagedRefMap
 
typedef map< Class, pointerTClassPointerMap
 
typedef map< Class, vectorTClassVectorMap
 
typedef map< pointer, floatTPointerFloatMap
 
typedef map< pointer, intTPointerIntMap
 
typedef map< pointer, stringTPointerStringMap
 
typedef map< pointer, ClassTPointerClassMap
 
typedef map< pointer, ManagedTPointerManagedMap
 
typedef map< pointer, ref ManagedTPointerManagedRefMap
 
typedef map< pointer, pointerTPointerPointerMap
 
typedef map< pointer, vectorTPointerVectorMap
 
typedef map< Managed, floatTManagedFloatMap
 
typedef map< Managed, intTManagedIntMap
 
typedef map< Managed, stringTManagedStringMap
 
typedef map< Managed, ClassTManagedClassMap
 
typedef map< Managed, ManagedTManagedManagedMap
 
typedef map< Managed, ref ManagedTManagedManagedRefMap
 
typedef map< Managed, pointerTManagedPointerMap
 
typedef map< Managed, vectorTManagedVectorMap
 
typedef map< ref Managed, floatTManagedRefFloatMap
 
typedef map< ref Managed, intTManagedRefIntMap
 
typedef map< ref Managed, stringTManagedRefStringMap
 
typedef map< ref Managed, ClassTManagedRefClassMap
 
typedef map< ref Managed, ManagedTManagedRefManagedMap
 
typedef map< ref Managed, ref ManagedTManagedRefManagedRefMap
 
typedef map< ref Managed, pointerTManagedRefPointerMap
 
typedef map< ref Managed, vectorTManagedRefVectorMap
 

Functions

string String (string s)
 Helper for passing string expression to functions with void parameter.
 
proto native vector Vector (float x, float y, float z)
 Vector constructor from components.
 

Detailed Description

Enforce script essentials.

Typedef Documentation

◆ MapIterator

typedef int MapIterator

◆ TBoolArray

typedef array<bool> TBoolArray

◆ TClassArray

◆ TClassClassMap

◆ TClassFloatMap

◆ TClassIntMap

◆ TClassManagedMap

◆ TClassManagedRefMap

◆ TClassPointerMap

◆ TClassSet

typedef set<Class> TClassSet

◆ TClassStringMap

◆ TClassVectorMap

◆ TFloatArray

◆ TFloatSet

typedef set<float> TFloatSet

◆ TIntArray

typedef array<int> TIntArray

◆ TIntClassMap

◆ TIntFloatMap

typedef map TIntFloatMap

◆ TIntIntMap

typedef map<int, int> TIntIntMap

◆ TIntManagedMap

◆ TIntManagedRefMap

◆ TIntPointerMap

◆ TIntSet

typedef set<int> TIntSet

◆ TIntStringMap

◆ TIntVectorMap

◆ TManagedArray

◆ TManagedClassMap

◆ TManagedFloatMap

◆ TManagedIntMap

◆ TManagedManagedMap

◆ TManagedManagedRefMap

◆ TManagedPointerMap

◆ TManagedRefArray

◆ TManagedRefClassMap

◆ TManagedRefFloatMap

◆ TManagedRefIntMap

◆ TManagedRefManagedMap

◆ TManagedRefManagedRefMap

◆ TManagedRefPointerMap

◆ TManagedRefSet

typedef set<ref Managed> TManagedRefSet

◆ TManagedRefStringMap

◆ TManagedRefVectorMap

◆ TManagedSet

◆ TManagedStringMap

◆ TManagedVectorMap

◆ TPointerArray

◆ TPointerClassMap

◆ TPointerFloatMap

◆ TPointerIntMap

◆ TPointerManagedMap

◆ TPointerManagedRefMap

◆ TPointerPointerMap

◆ TPointerSet

◆ TPointerStringMap

◆ TPointerVectorMap

◆ TResourceNameArray

◆ TStringArray

◆ TStringClassMap

◆ TStringFloatMap

◆ TStringIntMap

◆ TStringManagedMap

◆ TStringManagedRefMap

◆ TStringPointerMap

◆ TStringSet

typedef set<string> TStringSet

◆ TStringStringMap

◆ TStringVectorMap

◆ TVectorArray

Function Documentation

◆ String()

string String ( string  s)

Helper for passing string expression to functions with void parameter.

Example:

Print(String("Hello " + var));
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
string String(string s)
Helper for passing string expression to functions with void parameter.
Definition: Types.c:14

◆ Vector()

proto native vector Vector ( float  x,
float  y,
float  z 
)

Vector constructor from components.

Parameters
xx component
yy component
zz component
Returns
resulting vector
Print( Vector(1, 2, 3) );
>> <1,2,3>
proto native vector Vector(float x, float y, float z)
Vector constructor from components.