diff options
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Client/MXP')
-rw-r--r-- | OpenSim/Client/MXP/ClientStack/MXPClientView.cs | 47 |
1 files changed, 19 insertions, 28 deletions
diff --git a/OpenSim/Client/MXP/ClientStack/MXPClientView.cs b/OpenSim/Client/MXP/ClientStack/MXPClientView.cs index 39923cb..6b169bd 100644 --- a/OpenSim/Client/MXP/ClientStack/MXPClientView.cs +++ b/OpenSim/Client/MXP/ClientStack/MXPClientView.cs | |||
@@ -1038,23 +1038,6 @@ namespace OpenSim.Client.MXP.ClientStack | |||
1038 | // Need to translate to MXP somehow | 1038 | // Need to translate to MXP somehow |
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | public void SendAvatarData(SendAvatarData data) | ||
1042 | { | ||
1043 | //ScenePresence presence=((Scene)this.Scene).GetScenePresence(avatarID); | ||
1044 | UUID ownerID = data.AvatarID; | ||
1045 | MXPSendAvatarData(data.FirstName + " " + data.LastName, ownerID, UUID.Zero, data.AvatarID, data.AvatarLocalID, data.Position, data.Rotation); | ||
1046 | } | ||
1047 | |||
1048 | public void SendAvatarTerseUpdate(SendAvatarTerseData data) | ||
1049 | { | ||
1050 | MovementEventMessage me = new MovementEventMessage(); | ||
1051 | me.ObjectIndex = data.LocalID; | ||
1052 | me.Location = ToOmVector(data.Position); | ||
1053 | me.Orientation = ToOmQuaternion(data.Rotation); | ||
1054 | |||
1055 | Session.Send(me); | ||
1056 | } | ||
1057 | |||
1058 | public void SendCoarseLocationUpdate(List<UUID> users, List<Vector3> CoarseLocations) | 1041 | public void SendCoarseLocationUpdate(List<UUID> users, List<Vector3> CoarseLocations) |
1059 | { | 1042 | { |
1060 | // Minimap function, not used. | 1043 | // Minimap function, not used. |
@@ -1070,23 +1053,31 @@ namespace OpenSim.Client.MXP.ClientStack | |||
1070 | // Need to translate to MXP somehow | 1053 | // Need to translate to MXP somehow |
1071 | } | 1054 | } |
1072 | 1055 | ||
1073 | public void SendPrimitiveToClient(SendPrimitiveData data) | 1056 | public void SendAvatarDataImmediate(ISceneEntity avatar) |
1074 | { | 1057 | { |
1075 | MXPSendPrimitive(data.localID, data.ownerID, data.acc, data.rvel, data.primShape, data.pos, data.objectID, data.vel, | 1058 | //ScenePresence presence=((Scene)this.Scene).GetScenePresence(avatarID); |
1076 | data.rotation, (uint)data.flags, data.text, data.color, data.parentID, data.particleSystem, data.clickAction, | 1059 | ScenePresence presence = (ScenePresence)avatar; |
1077 | data.material, data.textureanim); | 1060 | UUID ownerID = presence.UUID; |
1061 | MXPSendAvatarData(presence.Firstname + " " + presence.Lastname, ownerID, UUID.Zero, presence.UUID, presence.LocalId, presence.AbsolutePosition, presence.Rotation); | ||
1078 | } | 1062 | } |
1079 | 1063 | ||
1080 | public void SendPrimTerseUpdate(SendPrimitiveTerseData data) | 1064 | public void SendPrimUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags) |
1081 | { | 1065 | { |
1082 | MovementEventMessage me = new MovementEventMessage(); | 1066 | //MovementEventMessage me = new MovementEventMessage(); |
1083 | me.ObjectIndex = data.LocalID; | 1067 | //me.ObjectIndex = data.LocalID; |
1084 | me.Location = ToOmVector(data.Position); | 1068 | //me.Location = ToOmVector(data.Position); |
1085 | me.Orientation = ToOmQuaternion(data.Rotation); | 1069 | //me.Orientation = ToOmQuaternion(data.Rotation); |
1086 | Session.Send(me); | 1070 | |
1071 | //MXPSendPrimitive(data.localID, data.ownerID, data.acc, data.rvel, data.primShape, data.pos, data.objectID, data.vel, | ||
1072 | // data.rotation, (uint)data.flags, data.text, data.color, data.parentID, data.particleSystem, data.clickAction, | ||
1073 | // data.material, data.textureanim); | ||
1074 | |||
1075 | //Session.Send(me); | ||
1076 | |||
1077 | throw new System.NotImplementedException(); | ||
1087 | } | 1078 | } |
1088 | 1079 | ||
1089 | public void ReprioritizeUpdates(StateUpdateTypes type, UpdatePriorityHandler handler) | 1080 | public void ReprioritizeUpdates(UpdatePriorityHandler handler) |
1090 | { | 1081 | { |
1091 | } | 1082 | } |
1092 | 1083 | ||