Removes the @home command (Being replaced by nothing it sucked)

This commit is contained in:
Madpeter 2020-05-12 14:17:29 +01:00
parent 4eea539cfb
commit 91c3a54e4f
2 changed files with 0 additions and 50 deletions

View file

@ -1,25 +0,0 @@
namespace BSB.Commands.Home
{
public class AtHomeSameSimMode : CoreCommand_1arg
{
public override string[] ArgTypes { get { return new[] { "True|False"}; } }
public override string[] ArgHints { get { return new[] { "Target mode" }; } }
public override string Helpfile { get { return "Temporary change the @home systems recovery mode from position+sim (False) or Sim only (True) <br/> resets on next start up"; } }
public override bool CallFunction(string[] args)
{
if(base.CallFunction(args) == true)
{
if (bool.TryParse(args[0], out bool status) == true)
{
bot.TempUpdateAtHomeSimOnly(status);
return true;
}
else
{
return Failed("Unable to process arg 1");
}
}
return false;
}
}
}

View file

@ -1,25 +0,0 @@
namespace BSB.Commands.Home
{
public class AtHomeSameSimRange : CoreCommand_1arg
{
public override string[] ArgTypes { get { return new[] { "Float" }; } }
public override string[] ArgHints { get { return new[] { "Range" }; } }
public override string Helpfile { get { return "Temporary change the @home systems recovery max range from home (in m) [min 3] <br/> resets on next start up"; } }
public override bool CallFunction(string[] args)
{
if (base.CallFunction(args) == true)
{
if (float.TryParse(args[0], out float range) == true)
{
bot.TempUpdateAtHomeSimRange(range);
return true;
}
else
{
return Failed("Unable to process arg 1");
}
}
return false;
}
}
}