From 83df5e02ad3d7a4e5eca99295b54b227f9bdfea0 Mon Sep 17 00:00:00 2001 From: Michael Cortez Date: Wed, 8 Nov 2006 19:08:55 +0000 Subject: [PATCH] Added OwnerID and Position to the OnChat handler/delegate/event thingy. git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@536 52acb1d6-8a22-11de-b505-999d5b087335 --- applications/SLIRC/frmSLIRC.cs | 2 +- libsecondlife-cs/Avatar.cs | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/applications/SLIRC/frmSLIRC.cs b/applications/SLIRC/frmSLIRC.cs index b35ab249..3a21d3c5 100644 --- a/applications/SLIRC/frmSLIRC.cs +++ b/applications/SLIRC/frmSLIRC.cs @@ -121,7 +121,7 @@ namespace SLIRC Invoke(new SingleStringDelegate(AddToAllowedList), new object[] { name }); } } - void Avatar_OnChat(string message, byte audible, byte type, byte sourcetype, string name, LLUUID id) + void Avatar_OnChat(string message, byte audible, byte type, byte sourcetype, string name, LLUUID id, LLUUID ownerid, LLVector3 position) { if (message.Equals("addme")) { diff --git a/libsecondlife-cs/Avatar.cs b/libsecondlife-cs/Avatar.cs index 8c6e37b9..e5ef84b8 100644 --- a/libsecondlife-cs/Avatar.cs +++ b/libsecondlife-cs/Avatar.cs @@ -42,7 +42,7 @@ namespace libsecondlife /// /// public delegate void ChatCallback(string message, byte audible, byte type, byte sourcetype, - string fromName, LLUUID id); + string fromName, LLUUID id, LLUUID ownerid, LLVector3 position); /// /// Triggered when the L$ account balance for this avatar changes @@ -738,8 +738,15 @@ namespace libsecondlife if (OnChat != null) { - OnChat(Helpers.FieldToString(chat.ChatData.Message), chat.ChatData.Audible, chat.ChatData.ChatType, - chat.ChatData.SourceType, Helpers.FieldToString(chat.ChatData.FromName), chat.ChatData.SourceID); + OnChat(Helpers.FieldToString(chat.ChatData.Message) + , chat.ChatData.Audible + , chat.ChatData.ChatType + , chat.ChatData.SourceType + , Helpers.FieldToString(chat.ChatData.FromName) + , chat.ChatData.SourceID + , chat.ChatData.OwnerID + , chat.ChatData.Position + ); } } }