mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* 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.
This commit is contained in:
@@ -245,7 +245,15 @@ namespace SimpleApp
|
||||
{
|
||||
if (OnChatFromViewer != null)
|
||||
{
|
||||
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);
|
||||
ChatFromViewerArgs args = new ChatFromViewerArgs();
|
||||
args.Message = "Kinda quiet around here, isn't it?";
|
||||
args.Channel = 0;
|
||||
args.From = this.FirstName + " " + this.LastName;
|
||||
args.Position = new LLVector3(128, 128, 26);
|
||||
args.Sender = this;
|
||||
args.Type = ChatTypeEnum.Shout;
|
||||
|
||||
this.OnChatFromViewer(this, args);
|
||||
}
|
||||
count = -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user