New command: GetSimTexture
- Expect this to stop working at some point
This commit is contained in:
parent
c3e4af6658
commit
3c83d8afa7
1 changed files with 25 additions and 0 deletions
25
Core/Commands/Estate/GetSimTexture.cs
Normal file
25
Core/Commands/Estate/GetSimTexture.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
using OpenMetaverse;
|
||||||
|
|
||||||
|
namespace BSB.Commands.Estate
|
||||||
|
{
|
||||||
|
public class GetSimTexture : CoreCommand_SmartReply_2arg
|
||||||
|
{
|
||||||
|
public override string Helpfile { get { return "Fetchs a region and returns its tile texture UUID - Expect this to die at some point!"; } }
|
||||||
|
|
||||||
|
public override bool CallFunction(string[] args)
|
||||||
|
{
|
||||||
|
if (base.CallFunction(args) == true)
|
||||||
|
{
|
||||||
|
if (bot.GetClient.Grid.GetGridRegion(args[1], GridLayerType.Objects, out GridRegion region))
|
||||||
|
{
|
||||||
|
return bot.GetCommandsInterface.SmartCommandReply(true, args[0], region.MapImageID.ToString(),CommandName);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return bot.GetCommandsInterface.SmartCommandReply(false, args[0], "Unable to find region", CommandName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue