internal static AgentPutMessage FromAgentData(AgentData data) { AgentPutMessage message = new AgentPutMessage { ActiveGroupID = data.ActiveGroupID.Guid, AgentAccess = data.AgentAccess, AgentId = data.AgentID.Guid, AgentPrefs = PackedAgentPrefs.FromAgentPrefs(data.AgentPrefs), AlwaysRun = data.AlwaysRun, Anims = PackedAnimation.FromAnimations(data.Anims), Appearance = PackedAppearance.FromAppearance(data.Appearance), Aspect = data.Aspect, AtAxis = data.AtAxis, BodyRotation = data.BodyRotation, CallbackURI = data.CallbackURI, Center = data.Center, CircuitCode = data.CircuitCode, ControlFlags = data.ControlFlags, EnergyLevel = data.EnergyLevel, Far = data.Far, GodLevel = data.GodLevel, Groups = PackedGroupMembership.FromGroups(data.Groups), HeadRotation = data.HeadRotation, LeftAxis = data.LeftAxis, LocomotionState = data.LocomotionState, LocomotionFlags = (int)data.LocomotionFlags, Position = data.Position, PreyAgent = data.PreyAgent.Guid, RegionHandle = data.RegionHandle, SatOnGroup = data.SatOnGroup.Guid, SatOnPrim = data.SatOnPrim.Guid, SatOnPrimOffset = data.SatOnPrimOffset, SerializedAttachments = data.SerializedAttachments, SessionId = data.SessionID.Guid, Size = data.Size, Throttles = data.Throttles, UpAxis = data.UpAxis, Velocity = data.Velocity, RemoteAgents = data.RemoteAgents, ConstantForces = data.ConstantForces, ConstantForcesAreLocal = data.ConstantForcesAreLocal, PresenceFlags = data.PresenceFlags, AvatarAsAPrim = data.AvatarAsAPrim }; return message; }
internal static AgentPutMessage FromAgentData(AgentData data) { AgentPutMessage message = new AgentPutMessage { ActiveGroupID = data.ActiveGroupID.Guid, AgentAccess = data.AgentAccess, AgentId = data.AgentID.Guid, AlwaysRun = data.AlwaysRun, Anims = PackedAnimation.FromAnimations(data.Anims), Appearance = PackedAppearance.FromAppearance(data.Appearance), Aspect = data.Aspect, AtAxis = data.AtAxis, BodyRotation = data.BodyRotation, CallbackURI = data.CallbackURI, Center = data.Center, CircuitCode = data.CircuitCode, ControlFlags = data.ControlFlags, EnergyLevel = data.EnergyLevel, Far = data.Far, GodLevel = data.GodLevel, Groups = PackedGroupMembership.FromGroups(data.Groups), HeadRotation = data.HeadRotation, LeftAxis = data.LeftAxis, LocomotionState = data.LocomotionState, LocomotionFlags = (int)data.LocomotionFlags, Position = data.Position, PreyAgent = data.PreyAgent.Guid, RegionHandle = data.RegionHandle, SatOnGroup = data.SatOnGroup.Guid, SatOnPrim = data.SatOnPrim.Guid, SatOnPrimOffset = data.SatOnPrimOffset, SerializedAttachments = data.SerializedAttachments, SessionId = data.SessionID.Guid, Size = data.Size, Throttles = data.Throttles, UpAxis = data.UpAxis, Velocity = data.Velocity, RemoteAgents = data.RemoteAgents, ConstantForces = data.ConstantForces, ConstantForcesAreLocal = data.ConstantForcesAreLocal, AvatarAsAPrim = data.AvatarAsAPrim }; return message; }