Command
Architecture
Data Flow
Key Concepts
Concept
Description
Quick Start
Defining a Command
public static class MyCommands
{
[Command("set-health")]
public static void SetHealth(int amount)
{
Player.Health = amount;
}
[RuntimeCommand("spawn-enemy")]
public static void SpawnEnemy(string enemyType, int count)
{
// Only available during play mode
EnemyManager.Spawn(enemyType, count);
}
}Executing a Command
Registering a Custom Parser
Files
File
Description
See Also
Last updated