From 64a98c736848de6099254f23483058668273c1a5 Mon Sep 17 00:00:00 2001 From: gareth Date: Mon, 14 May 2007 03:13:47 +0000 Subject: Finished off adding the new management API to gridserver Updated VersionInfo.cs finally Updated prebuild and rebuilt nant build files Completed Management agent basics --- ExportBot/Commands/Movement/StandCommand.cs | 47 ----------------------------- 1 file changed, 47 deletions(-) delete mode 100644 ExportBot/Commands/Movement/StandCommand.cs (limited to 'ExportBot/Commands/Movement/StandCommand.cs') diff --git a/ExportBot/Commands/Movement/StandCommand.cs b/ExportBot/Commands/Movement/StandCommand.cs deleted file mode 100644 index 8a00552..0000000 --- a/ExportBot/Commands/Movement/StandCommand.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using libsecondlife; -using libsecondlife.Packets; - -namespace libsecondlife.TestClient -{ - public class StandCommand: Command - { - public StandCommand(TestClient testClient) - { - Name = "stand"; - Description = "Stand"; - } - - public override string Execute(string[] args, LLUUID fromAgentID) - { - Client.Self.Status.StandUp = true; - stand(Client); - return "Standing up."; - } - - void stand(SecondLife client) - { - SendAgentUpdate(client, (uint)MainAvatar.ControlFlags.AGENT_CONTROL_STAND_UP); - } - - const float DRAW_DISTANCE = 96.0f; - void SendAgentUpdate(SecondLife client, uint ControlID) - { - AgentUpdatePacket p = new AgentUpdatePacket(); - p.AgentData.Far = DRAW_DISTANCE; - //LLVector3 myPos = client.Self.Position; - p.AgentData.CameraCenter = new LLVector3(0, 0, 0); - p.AgentData.CameraAtAxis = new LLVector3(0, 0, 0); - p.AgentData.CameraLeftAxis = new LLVector3(0, 0, 0); - p.AgentData.CameraUpAxis = new LLVector3(0, 0, 0); - p.AgentData.HeadRotation = new LLQuaternion(0, 0, 0, 1); ; - p.AgentData.BodyRotation = new LLQuaternion(0, 0, 0, 1); ; - p.AgentData.AgentID = client.Network.AgentID; - p.AgentData.SessionID = client.Network.SessionID; - p.AgentData.ControlFlags = ControlID; - client.Network.SendPacket(p); - } - } -} -- cgit v1.1