Files
Blake Bourque 0bb2dff347 Initial commit
I wish I could figure out how to have PlexVie be out of the LibOMV tree but its just not working die to a DLL not found exception about libopenjpeg. (Yes the dll is in the bin folder)
This will do for now
2015-06-18 22:15:24 -04:00

31 lines
942 B
C#

using System;
using OpenMetaverse;
namespace OpenMetaverse.TestClient
{
public class GridLayerCommand : Command
{
public GridLayerCommand(TestClient testClient)
{
Name = "gridlayer";
Description = "Downloads all of the layer chunks for the grid object map";
Category = CommandCategory.Simulator;
testClient.Grid.GridLayer += Grid_GridLayer;
}
void Grid_GridLayer(object sender, GridLayerEventArgs e)
{
Console.WriteLine(String.Format("Layer({0}) Bottom: {1} Left: {2} Top: {3} Right: {4}",
e.Layer.ImageID.ToString(), e.Layer.Bottom, e.Layer.Left, e.Layer.Top, e.Layer.Right));
}
public override string Execute(string[] args, UUID fromAgentID)
{
Client.Grid.RequestMapLayer(GridLayerType.Objects);
return "Sent.";
}
}
}