Playground

Define types and see generated TypeScript code in real-time

Interactive demonstration of MetaEngine's type analysis and code generation capabilities

Configuration
Types

TRANSFORM = 0
RENDER = 1
PHYSICS = 2
HEALTH = 3
INVENTORY = 4
Value is required

CRITICAL = 0
HIGH = 10
NORMAL = 50
LOW = 100
Value is required

entityId: String
type: ComponentType
enabled: Boolean
Type:
Custom:

name: String
priority: SystemPriority
active: Boolean
Type:
Custom:

count: Number
isReadOnly: Boolean
Type:
Custom:

Type:
Custom:
items: Any
capacity: Number
Type:
Custom:

name: String
Type:
Custom:
id: String
tags: string[]
layer: Number
createdAt: Date
Type:
Custom:

Type:
Custom:
Type:
Custom:

initialHealth: Number
Type:
Custom:
currentHealth: Number
maximumHealth: Number
regenerationRate: Number
lastDamageTime?: Date
Type:
Custom:

Type:
Custom:
value: String
Type:
Custom:

Type Arguments:
Type Arguments:
Type:
Custom:
deltaTime: Number
frameCount: Number
isRunning: Boolean
Type:
Custom:
Files (1ms)
entity.ts