Enum member isCallableAsSystem
Detect whether T
is callable as a System
.
enum isCallableAsSystem(T...)
= true;
If T
is callable as a System, use System
to construct a SystemGenerator
from the function.
Satisfaction Requirements
T
MUST satisfyisCallable
.T
MUST returnvoid
.- All of
T
's parameters MUST match one of: - Any Basic Data Type, e.g.
bool
,int
,uint
,float
,double
,char
, etc. - Any array type derived from a Basic Data Type, e.g.
int[]
,float[]
,string[]
, etc. - Any string type, e.g.
string
,char[]
,wchar[]
, etc. - Any
struct
type World
Resources
Window
or any of its derivationsteraflop
or any of its derivations.platform .input .event .InputEvent Entity
Component
or any of its derivationsSystem
, or- Any user-defined
class
type - All of
T
's parameters MUST NOT use theimmutable
Storage Class.Use
const
instead. - Certain parameters MUST use specific Storage Classes:
World
,Resources
,Window
,Entity
,Component
, andSystem
parameters MUST use thescope
Storage ClassWorld
,Resources
,Entity
, andSystem
parameters MUST use theconst
Storage Class- The
ref
Storage Class MUST NOT be used with theconst
Storage Class struct
andComponent
parameters MAY use theref
Storage Class