diff options
author | Homer Horwitz | 2008-10-12 16:29:29 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-10-12 16:29:29 +0000 |
commit | f52c5febd3b87af795b8eb2a909d332ba8cddbff (patch) | |
tree | a707769d7b10051a0f5d6d7ec7b6b155e4fdeba6 /OpenSim/Region/ClientStack | |
parent | removed some more extraneous hidden faces (diff) | |
download | opensim-SC_OLD-f52c5febd3b87af795b8eb2a909d332ba8cddbff.zip opensim-SC_OLD-f52c5febd3b87af795b8eb2a909d332ba8cddbff.tar.gz opensim-SC_OLD-f52c5febd3b87af795b8eb2a909d332ba8cddbff.tar.bz2 opensim-SC_OLD-f52c5febd3b87af795b8eb2a909d332ba8cddbff.tar.xz |
Add EventInfoRequest and EventInfoReply packets.
Note: New file, run prebuild.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 33 |
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(); |