diff options
Diffstat (limited to 'OpenSim.RegionServer/world/Avatar.cs')
-rw-r--r-- | OpenSim.RegionServer/world/Avatar.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim.RegionServer/world/Avatar.cs b/OpenSim.RegionServer/world/Avatar.cs index 55e5ae4..4e90364 100644 --- a/OpenSim.RegionServer/world/Avatar.cs +++ b/OpenSim.RegionServer/world/Avatar.cs | |||
@@ -64,6 +64,14 @@ namespace OpenSim.world | |||
64 | 64 | ||
65 | this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005")); | 65 | this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005")); |
66 | 66 | ||
67 | //register for events | ||
68 | ControllingClient.OnRequestWearables += new ClientView.GenericCall(this.SendOurAppearance); | ||
69 | ControllingClient.OnSetAppearance += new ClientView.SetAppearance(this.SetAppearance); | ||
70 | ControllingClient.OnCompleteMovementToRegion += new ClientView.GenericCall2(this.CompleteMovement); | ||
71 | ControllingClient.OnCompleteMovementToRegion += new ClientView.GenericCall2(this.SendInitialPosition); | ||
72 | ControllingClient.OnAgentUpdate += new ClientView.GenericCall3(this.HandleAgentUpdate); | ||
73 | ControllingClient.OnStartAnim += new ClientView.StartAnim(this.SendAnimPack); | ||
74 | |||
67 | } | 75 | } |
68 | 76 | ||
69 | public PhysicsActor PhysActor | 77 | public PhysicsActor PhysActor |
@@ -170,7 +178,7 @@ namespace OpenSim.world | |||
170 | 178 | ||
171 | } | 179 | } |
172 | 180 | ||
173 | public void CompleteMovement(World RegionInfo) | 181 | public void CompleteMovement() |
174 | { | 182 | { |
175 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:CompleteMovement() - Constructing AgentMovementComplete packet"); | 183 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE,"Avatar.cs:CompleteMovement() - Constructing AgentMovementComplete packet"); |
176 | AgentMovementCompletePacket mov = new AgentMovementCompletePacket(); | 184 | AgentMovementCompletePacket mov = new AgentMovementCompletePacket(); |
@@ -185,6 +193,11 @@ namespace OpenSim.world | |||
185 | ControllingClient.OutPacket(mov); | 193 | ControllingClient.OutPacket(mov); |
186 | } | 194 | } |
187 | 195 | ||
196 | public void HandleAgentUpdate(Packet pack) | ||
197 | { | ||
198 | this.HandleUpdate((AgentUpdatePacket)pack); | ||
199 | } | ||
200 | |||
188 | public void HandleUpdate(AgentUpdatePacket pack) | 201 | public void HandleUpdate(AgentUpdatePacket pack) |
189 | { | 202 | { |
190 | if (((uint)pack.AgentData.ControlFlags & (uint)MainAvatar.ControlFlags.AGENT_CONTROL_FLY) != 0) | 203 | if (((uint)pack.AgentData.ControlFlags & (uint)MainAvatar.ControlFlags.AGENT_CONTROL_FLY) != 0) |