From 921692a15f7b793da55cd4ddc4d85eae4393964e Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 27 Nov 2008 05:16:47 +0000 Subject: Thank you kindly, Nlin for a patch that: Adds a new method to IClientAPI to allow adding message handlers for GenericMessages (of which "autopilot" is one). Part 2 adds a specific autopilot handler in ScenePresence.cs. 2) Removing unused variables and functions. 3) Simplifying the navigation logic in ScenePresence.cs. The original patch was somewhat complex because it included orientation logic for a future enhancement of orienting the avatar to point towards the direction being walked. Currently this isn't working, though, so I removed the orientation code, which leaves just the smaller and hopefully simpler-to-understand movement code. --- OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/Examples/SimpleModule') diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index b5ab1ac..89b3bf6 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs @@ -991,5 +991,15 @@ namespace OpenSim.Region.Examples.SimpleModule public void SendTerminateFriend(UUID exFriendID) { } + + #region IClientAPI Members + + + public bool AddGenericPacketHandler(string MethodName, GenericMessage handler) + { + throw new NotImplementedException(); + } + + #endregion } } -- cgit v1.1