Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
    /// <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);
    }
Exemple #4
0
 public override void Initialize()
 {
     base.Initialize();
     _conHost.RegisterCommand("playglobalsound", Loc.GetString("play-global-sound-command-description"), Loc.GetString("play-global-sound-command-help"), PlayGlobalSoundCommand);
 }