aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples
diff options
context:
space:
mode:
authorAdam Frisby2007-10-19 22:02:07 +0000
committerAdam Frisby2007-10-19 22:02:07 +0000
commit1313544ac7761ec7d84c14009fc95d5d7316004d (patch)
tree39a7bd27f07bb96859f5d09436d7e81e99f951a9 /OpenSim/Region/Examples
parentenable IRC bridge via runtime configuration (diff)
downloadopensim-SC-1313544ac7761ec7d84c14009fc95d5d7316004d.zip
opensim-SC-1313544ac7761ec7d84c14009fc95d5d7316004d.tar.gz
opensim-SC-1313544ac7761ec7d84c14009fc95d5d7316004d.tar.bz2
opensim-SC-1313544ac7761ec7d84c14009fc95d5d7316004d.tar.xz
* Major structural change: Begun converting Events to use (caller, args) syntax to conform with .NET guidelines.
* OnChatFromViewer has been converted as an example. * Bug: SimpleApp's NPC client does not implement a Scene property and will likely crash with a NullReferenceException when it attempts to chat.
Diffstat (limited to 'OpenSim/Region/Examples')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
index c9c663e..1460b81 100644
--- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
@@ -245,7 +245,15 @@ namespace SimpleApp
245 { 245 {
246 if (OnChatFromViewer != null) 246 if (OnChatFromViewer != null)
247 { 247 {
248 this.OnChatFromViewer(enc.GetBytes("Kind of quiet around here, isn't it! \0"), 2, 0, new LLVector3(128, 128, 26), this.FirstName + " " + this.LastName, this.AgentId); 248 ChatFromViewerArgs args = new ChatFromViewerArgs();
249 args.Message = "Kinda quiet around here, isn't it?";
250 args.Channel = 0;
251 args.From = this.FirstName + " " + this.LastName;
252 args.Position = new LLVector3(128, 128, 26);
253 args.Sender = this;
254 args.Type = ChatTypeEnum.Shout;
255
256 this.OnChatFromViewer(this, args);
249 } 257 }
250 count = -1; 258 count = -1;
251 259