corrade-vassal – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 vero 1 using System;
2 using OpenMetaverse;
3  
4 namespace OpenMetaverse.TestClient
5 {
6 public class GridLayerCommand : Command
7 {
8 public GridLayerCommand(TestClient testClient)
9 {
10 Name = "gridlayer";
11 Description = "Downloads all of the layer chunks for the grid object map";
12 Category = CommandCategory.Simulator;
13  
14 testClient.Grid.GridLayer += Grid_GridLayer;
15 }
16  
17 void Grid_GridLayer(object sender, GridLayerEventArgs e)
18 {
19 Console.WriteLine(String.Format("Layer({0}) Bottom: {1} Left: {2} Top: {3} Right: {4}",
20 e.Layer.ImageID.ToString(), e.Layer.Bottom, e.Layer.Left, e.Layer.Top, e.Layer.Right));
21 }
22  
23 public override string Execute(string[] args, UUID fromAgentID)
24 {
25 Client.Grid.RequestMapLayer(GridLayerType.Objects);
26  
27 return "Sent.";
28 }
29 }
30 }