aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 4714bb3..ed4ac60 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -1001,6 +1001,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1001 public event DirLandQuery OnDirLandQuery; 1001 public event DirLandQuery OnDirLandQuery;
1002 public event DirPopularQuery OnDirPopularQuery; 1002 public event DirPopularQuery OnDirPopularQuery;
1003 public event DirClassifiedQuery OnDirClassifiedQuery; 1003 public event DirClassifiedQuery OnDirClassifiedQuery;
1004 public event EventInfoRequest OnEventInfoRequest;
1004 1005
1005 public event MapItemRequest OnMapItemRequest; 1006 public event MapItemRequest OnMapItemRequest;
1006 1007
@@ -6405,6 +6406,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6405 dirClassifiedQueryPacket.QueryData.QueryStart); 6406 dirClassifiedQueryPacket.QueryData.QueryStart);
6406 } 6407 }
6407 break; 6408 break;
6409 case PacketType.EventInfoRequest:
6410 EventInfoRequestPacket eventInfoRequestPacket = (EventInfoRequestPacket)Pack;
6411 if (OnEventInfoRequest != null)
6412 {
6413 OnEventInfoRequest(this, eventInfoRequestPacket.EventData.EventID);
6414 }
6415 break;
6408 6416
6409 default: 6417 default:
6410 m_log.Warn("[CLIENT]: unhandled packet " + Pack.ToString()); 6418 m_log.Warn("[CLIENT]: unhandled packet " + Pack.ToString());
@@ -7073,6 +7081,31 @@ namespace OpenSim.Region.ClientStack.LindenUDP
7073 OutPacket(packet, ThrottleOutPacketType.Task); 7081 OutPacket(packet, ThrottleOutPacketType.Task);
7074 } 7082 }
7075 7083
7084 public void SendEventInfoReply(EventData data)
7085 {
7086 EventInfoReplyPacket packet = (EventInfoReplyPacket)PacketPool.Instance.GetPacket(PacketType.EventInfoReply);
7087
7088 packet.AgentData = new EventInfoReplyPacket.AgentDataBlock();
7089 packet.AgentData.AgentID = AgentId;
7090
7091 packet.EventData = new EventInfoReplyPacket.EventDataBlock();
7092 packet.EventData.EventID = data.eventID;
7093 packet.EventData.Creator = Utils.StringToBytes(data.creator);
7094 packet.EventData.Name = Utils.StringToBytes(data.name);
7095 packet.EventData.Category = Utils.StringToBytes(data.category);
7096 packet.EventData.Desc = Utils.StringToBytes(data.description);
7097 packet.EventData.Date = Utils.StringToBytes(data.date.ToString());
7098 packet.EventData.DateUTC = data.dateUTC;
7099 packet.EventData.Duration = data.duration;
7100 packet.EventData.Cover = data.cover;
7101 packet.EventData.Amount = data.amount;
7102 packet.EventData.SimName = Utils.StringToBytes(data.simName);
7103 packet.EventData.GlobalPos = new Vector3d(data.globalPos);
7104 packet.EventData.EventFlags = data.eventFlags;
7105
7106 OutPacket(packet, ThrottleOutPacketType.Task);
7107 }
7108
7076 public void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags) 7109 public void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags)
7077 { 7110 {
7078 MapItemReplyPacket mirplk = new MapItemReplyPacket(); 7111 MapItemReplyPacket mirplk = new MapItemReplyPacket();