diff --git a/OpenMetaverse/AgentManager.cs b/OpenMetaverse/AgentManager.cs index 7b6a5cd5..5475eaa0 100644 --- a/OpenMetaverse/AgentManager.cs +++ b/OpenMetaverse/AgentManager.cs @@ -501,6 +501,131 @@ namespace OpenMetaverse /// Left Mouse button in MouseLook MouseLookLeftButton = 1073741824 } + + /// + /// Currently only used to hide your group title + /// + [Flags] + public enum AgentFlags : byte + { + /// No flags set + None = 0, + /// Hide your group title + HideTitle = 0x01, + } + + /// + /// Action state of the avatar, which can currently be typing and + /// editing + /// + [Flags] + public enum AgentState : byte + { + /// + None = 0x00, + /// + Typing = 0x04, + /// + Editing = 0x10 + } + + /// + /// Current teleport status + /// + public enum TeleportStatus + { + /// Unknown status + None, + /// Teleport initialized + Start, + /// Teleport in progress + Progress, + /// Teleport failed + Failed, + /// Teleport completed + Finished, + /// Teleport cancelled + Cancelled + } + + /// + /// + /// + [Flags] + public enum TeleportFlags : uint + { + /// No flags set, or teleport failed + Default = 0, + /// Set when newbie leaves help island for first time + SetHomeToTarget = 1 << 0, + /// + SetLastToTarget = 1 << 1, + /// Via Lure + ViaLure = 1 << 2, + /// Via Landmark + ViaLandmark = 1 << 3, + /// Via Location + ViaLocation = 1 << 4, + /// Via Home + ViaHome = 1 << 5, + /// Via Telehub + ViaTelehub = 1 << 6, + /// Via Login + ViaLogin = 1 << 7, + /// Linden Summoned + ViaGodlikeLure = 1 << 8, + /// Linden Forced me + Godlike = 1 << 9, + /// + NineOneOne = 1 << 10, + /// Agent Teleported Home via Script + DisableCancel = 1 << 11, + /// + ViaRegionID = 1 << 12, + /// + IsFlying = 1 << 13, + /// + ResetHome = 1 << 14, + /// forced to new location for example when avatar is banned or ejected + ForceRedirect = 1 << 15, + /// Teleport Finished via a Lure + FinishedViaLure = 1 << 26, + /// Finished, Sim Changed + FinishedViaNewSim = 1 << 28, + /// Finished, Same Sim + FinishedViaSameSim = 1 << 29 + } + + /// + /// + /// + [Flags] + public enum TeleportLureFlags + { + /// + NormalLure = 0, + /// + GodlikeLure = 1, + /// + GodlikePursuit = 2 + } + + /// + /// + /// + [Flags] + public enum ScriptSensorTypeFlags + { + /// + Agent = 1, + /// + Active = 2, + /// + Passive = 4, + /// + Scripted = 8, + } + #endregion Enums #region Structs @@ -558,134 +683,6 @@ namespace OpenMetaverse /// public partial class AgentManager { - #region Enums - - /// - /// Currently only used to hide your group title - /// - [Flags] - public enum AgentFlags : byte - { - /// No flags set - None = 0, - /// Hide your group title - HideTitle = 0x01, - } - - /// - /// Action state of the avatar, which can currently be typing and - /// editing - /// - [Flags] - public enum AgentState : byte - { - /// - None = 0x00, - /// - Typing = 0x04, - /// - Editing = 0x10 - } - - /// - /// Current teleport status - /// - public enum TeleportStatus - { - /// Unknown status - None, - /// Teleport initialized - Start, - /// Teleport in progress - Progress, - /// Teleport failed - Failed, - /// Teleport completed - Finished, - /// Teleport cancelled - Cancelled - } - - /// - /// - /// - [Flags] - public enum TeleportFlags : uint - { - /// No flags set, or teleport failed - Default = 0, - /// Set when newbie leaves help island for first time - SetHomeToTarget = 1 << 0, - /// - SetLastToTarget = 1 << 1, - /// Via Lure - ViaLure = 1 << 2, - /// Via Landmark - ViaLandmark = 1 << 3, - /// Via Location - ViaLocation = 1 << 4, - /// Via Home - ViaHome = 1 << 5, - /// Via Telehub - ViaTelehub = 1 << 6, - /// Via Login - ViaLogin = 1 << 7, - /// Linden Summoned - ViaGodlikeLure = 1 << 8, - /// Linden Forced me - Godlike = 1 << 9, - /// - NineOneOne = 1 << 10, - /// Agent Teleported Home via Script - DisableCancel = 1 << 11, - /// - ViaRegionID = 1 << 12, - /// - IsFlying = 1 << 13, - /// - ResetHome = 1 << 14, - /// forced to new location for example when avatar is banned or ejected - ForceRedirect = 1 << 15, - /// Teleport Finished via a Lure - FinishedViaLure = 1 << 26, - /// Finished, Sim Changed - FinishedViaNewSim = 1 << 28, - /// Finished, Same Sim - FinishedViaSameSim = 1 << 29 - } - - /// - /// - /// - [Flags] - public enum TeleportLureFlags - { - /// - NormalLure = 0, - /// - GodlikeLure = 1, - /// - GodlikePursuit = 2 - } - - /// - /// - /// - [Flags] - public enum ScriptSensorTypeFlags - { - /// - Agent = 1, - /// - Active = 2, - /// - Passive = 4, - /// - Scripted = 8, - } - - #endregion Enums - #region Callbacks /// diff --git a/Programs/examples/TestClient/Commands/Movement/BackCommand.cs b/Programs/examples/TestClient/Commands/Movement/BackCommand.cs index 081e5152..7587fef1 100644 --- a/Programs/examples/TestClient/Commands/Movement/BackCommand.cs +++ b/Programs/examples/TestClient/Commands/Movement/BackCommand.cs @@ -20,8 +20,8 @@ namespace OpenMetaverse.TestClient.Commands.Movement { Client.Self.Movement.SendManualUpdate(AgentManager.ControlFlags.AGENT_CONTROL_AT_NEG, Client.Self.Movement.Camera.Position, Client.Self.Movement.Camera.AtAxis, Client.Self.Movement.Camera.LeftAxis, Client.Self.Movement.Camera.UpAxis, - Client.Self.Movement.BodyRotation, Client.Self.Movement.HeadRotation, Client.Self.Movement.Camera.Far, AgentManager.AgentFlags.None, - AgentManager.AgentState.None, true); + Client.Self.Movement.BodyRotation, Client.Self.Movement.HeadRotation, Client.Self.Movement.Camera.Far, AgentFlags.None, + AgentState.None, true); } else { diff --git a/Programs/examples/TestClient/Commands/Movement/ForwardCommand.cs b/Programs/examples/TestClient/Commands/Movement/ForwardCommand.cs index 28becdfd..59b5263e 100644 --- a/Programs/examples/TestClient/Commands/Movement/ForwardCommand.cs +++ b/Programs/examples/TestClient/Commands/Movement/ForwardCommand.cs @@ -20,8 +20,8 @@ namespace OpenMetaverse.TestClient.Commands.Movement { Client.Self.Movement.SendManualUpdate(AgentManager.ControlFlags.AGENT_CONTROL_AT_POS, Client.Self.Movement.Camera.Position, Client.Self.Movement.Camera.AtAxis, Client.Self.Movement.Camera.LeftAxis, Client.Self.Movement.Camera.UpAxis, - Client.Self.Movement.BodyRotation, Client.Self.Movement.HeadRotation, Client.Self.Movement.Camera.Far, AgentManager.AgentFlags.None, - AgentManager.AgentState.None, true); + Client.Self.Movement.BodyRotation, Client.Self.Movement.HeadRotation, Client.Self.Movement.Camera.Far, AgentFlags.None, + AgentState.None, true); } else { diff --git a/Programs/examples/TestClient/Commands/Movement/LeftCommand.cs b/Programs/examples/TestClient/Commands/Movement/LeftCommand.cs index 0d969e2e..175979f9 100644 --- a/Programs/examples/TestClient/Commands/Movement/LeftCommand.cs +++ b/Programs/examples/TestClient/Commands/Movement/LeftCommand.cs @@ -20,8 +20,8 @@ namespace OpenMetaverse.TestClient.Commands.Movement { Client.Self.Movement.SendManualUpdate(AgentManager.ControlFlags.AGENT_CONTROL_LEFT_POS, Client.Self.Movement.Camera.Position, Client.Self.Movement.Camera.AtAxis, Client.Self.Movement.Camera.LeftAxis, Client.Self.Movement.Camera.UpAxis, - Client.Self.Movement.BodyRotation, Client.Self.Movement.HeadRotation, Client.Self.Movement.Camera.Far, AgentManager.AgentFlags.None, - AgentManager.AgentState.None, true); + Client.Self.Movement.BodyRotation, Client.Self.Movement.HeadRotation, Client.Self.Movement.Camera.Far, AgentFlags.None, + AgentState.None, true); } else { diff --git a/Programs/examples/TestClient/Commands/Movement/RightCommand.cs b/Programs/examples/TestClient/Commands/Movement/RightCommand.cs index d6c62b70..8adb843d 100644 --- a/Programs/examples/TestClient/Commands/Movement/RightCommand.cs +++ b/Programs/examples/TestClient/Commands/Movement/RightCommand.cs @@ -20,8 +20,8 @@ namespace OpenMetaverse.TestClient.Commands.Movement { Client.Self.Movement.SendManualUpdate(AgentManager.ControlFlags.AGENT_CONTROL_LEFT_NEG, Client.Self.Movement.Camera.Position, Client.Self.Movement.Camera.AtAxis, Client.Self.Movement.Camera.LeftAxis, Client.Self.Movement.Camera.UpAxis, - Client.Self.Movement.BodyRotation, Client.Self.Movement.HeadRotation, Client.Self.Movement.Camera.Far, AgentManager.AgentFlags.None, - AgentManager.AgentState.None, true); + Client.Self.Movement.BodyRotation, Client.Self.Movement.HeadRotation, Client.Self.Movement.Camera.Far, AgentFlags.None, + AgentState.None, true); } else {