From 5b6afeafbc249ba88dcc20d1fbc98ce12418b21b Mon Sep 17 00:00:00 2001 From: gareth Date: Tue, 8 May 2007 00:10:04 +0000 Subject: Brought in TestClient code for teh fork --- ExportBot/Commands/Movement/LocationCommand.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ExportBot/Commands/Movement/LocationCommand.cs (limited to 'ExportBot/Commands/Movement/LocationCommand.cs') diff --git a/ExportBot/Commands/Movement/LocationCommand.cs b/ExportBot/Commands/Movement/LocationCommand.cs new file mode 100644 index 0000000..2fd62bb --- /dev/null +++ b/ExportBot/Commands/Movement/LocationCommand.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text; +using libsecondlife; +using libsecondlife.Packets; + +namespace libsecondlife.TestClient +{ + public class LocationCommand: Command + { + public LocationCommand(TestClient testClient) + { + Name = "location"; + Description = "Show the location."; + } + + public override string Execute(string[] args, LLUUID fromAgentID) + { + return "CurrentSim: '" + Client.Network.CurrentSim.ToString() + "' Position: " + + Client.Self.Position.ToString(); + } + } +} -- cgit v1.1