aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs23
1 files changed, 9 insertions, 14 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs b/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs
index 5091793..a80c1f0 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs
@@ -36,14 +36,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
36 /// </summary> 36 /// </summary>
37 class KillPacket : Packet 37 class KillPacket : Packet
38 { 38 {
39 private Header header;
40
41 public override int Length 39 public override int Length
42 { 40 {
43 get { return 0; } 41 get { return 0; }
44 } 42 }
45 43
46 public override void FromBytes(Header header, byte[] bytes, ref int i, ref int packetEnd, byte[] zeroBuffer) 44 public override void FromBytes(Header header, byte[] bytes, ref int i, ref int packetEnd)
47 { 45 {
48 } 46 }
49 47
@@ -51,26 +49,23 @@ namespace OpenSim.Region.ClientStack.LindenUDP
51 { 49 {
52 } 50 }
53 51
54 public override Header Header { get { return header; } set { header = value; }}
55
56 public override byte[] ToBytes() 52 public override byte[] ToBytes()
57 { 53 {
58 return new byte[0]; 54 return new byte[0];
59 } 55 }
60 56
61 public KillPacket() 57 public override byte[][] ToBytesMultiple()
62 { 58 {
63 Header = new LowHeader(); 59 return new byte[][] { new byte[0] };
64 Header.ID = 65531;
65 Header.Reliable = true;
66 } 60 }
67 61
68 public override PacketType Type 62 public KillPacket()
69 { 63 {
70 get 64 Type = PacketType.UseCircuitCode;
71 { 65 Header = new Header();
72 return PacketType.UseCircuitCode; 66 Header.Frequency = OpenMetaverse.PacketFrequency.Low;
73 } 67 Header.ID = 65531;
68 Header.Reliable = true;
74 } 69 }
75 } 70 }
76} 71}