private void InitializeCommands() { // Fix Grid Atmos command. _consoleHost.RegisterCommand("fixgridatmos", "Makes every tile on a grid have a roundstart gas mix.", "fixgridatmos <grid Ids>", FixGridAtmosCommand); }
public override void Initialize() { SubscribeLocalEvent <PlayerAttachSysMessage>(OnAttachedEntityChanged); _conHost.RegisterCommand("incmd", "Inserts an input command into the simulation", "incmd <KeyFunction> <d|u KeyState> <wxPos> <wyPos>", GenerateInputCommand); }
/// <inheritdoc/> public override void Initialize() { SubscribeLocalEvent <StaticPriceComponent, PriceCalculationEvent>(CalculateStaticPrice); SubscribeLocalEvent <StackPriceComponent, PriceCalculationEvent>(CalculateStackPrice); SubscribeLocalEvent <MobPriceComponent, PriceCalculationEvent>(CalculateMobPrice); _consoleHost.RegisterCommand("appraisegrid", "Calculates the total value of the given grids.", "appraisegrid <grid Ids>", AppraiseGridCommand); }
public override void Initialize() { base.Initialize(); _conHost.RegisterCommand("playglobalsound", Loc.GetString("play-global-sound-command-description"), Loc.GetString("play-global-sound-command-help"), PlayGlobalSoundCommand); }