Module type
Type Helper module to do easy type checking for Concord types
Functions
Type.isEntity (t) | Returns if object is an Entity. |
Type.isComponentClass (t) | Returns if object is a ComponentClass. |
Type.isComponent (t) | Returns if object is a Component. |
Type.isSystemClass (t) | Returns if object is a SystemClass. |
Type.isSystem (t) | Returns if object is a System. |
Type.isWorld (t) | Returns if object is a World. |
Type.isFilter (t) | Returns if object is a Filter. |
Functions
- Type.isEntity (t)
-
Returns if object is an Entity.
Parameters:
- t Object to check
Returns:
-
boolean
- Type.isComponentClass (t)
-
Returns if object is a ComponentClass.
Parameters:
- t Object to check
Returns:
-
boolean
- Type.isComponent (t)
-
Returns if object is a Component.
Parameters:
- t Object to check
Returns:
-
boolean
- Type.isSystemClass (t)
-
Returns if object is a SystemClass.
Parameters:
- t Object to check
Returns:
-
boolean
- Type.isSystem (t)
-
Returns if object is a System.
Parameters:
- t Object to check
Returns:
-
boolean
- Type.isWorld (t)
-
Returns if object is a World.
Parameters:
- t Object to check
Returns:
-
boolean
- Type.isFilter (t)
-
Returns if object is a Filter.
Parameters:
- t Object to check
Returns:
-
boolean