예제 #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);
 }
예제 #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);
        }
예제 #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);
    }
예제 #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);
 }