Exemplo n.º 1
0
 public KillPacket()
 {
     Type = PacketType.UseCircuitCode;
     Header = new Header();
     Header.Frequency = OpenMetaverse.PacketFrequency.Low;
     Header.ID = 65531;
     Header.Reliable = true;
 }
 public ClearFrustumPacket()
 {
     HasVariableBlocks = false;
     Type = PacketType.ClearFollowCamProperties;
     Header = new Header();
     Header.Frequency = PacketFrequency.Low;
     Header.ID = 430;
     Header.Reliable = true;
     ObjectData = new ObjectDataBlock();
 }
Exemplo n.º 3
0
 public MuteAudioPacket()
 {
     HasVariableBlocks = false;
     //Type = PacketType.ClearFollowCamProperties;
     Header = new Header();
     Header.Frequency = PacketFrequency.Low;
     Header.ID = 435;
     Header.Reliable = true;
     Mute = new MuteBlock();
 }
Exemplo n.º 4
0
 public SetCameraPacket()
 {
     HasVariableBlocks = false;
     //Type = PacketType.SetFollowCamProperties;
     Header = new Header();
     Header.Frequency = PacketFrequency.Low;
     Header.ID = 427;
     Header.Reliable = true;
     Camera = new CameraBlock();
 }
 public RemoteControlPacket()
 {
     HasVariableBlocks = false;
     //Type = PacketType.SetFollowCamProperties;
     Header = new Header();
     Header.Frequency = PacketFrequency.Low;
     Header.ID = 432;
     Header.Reliable = true;
     Delta = new DeltaBlock();
 }
 public SetFrustumPacket()
 {
     HasVariableBlocks = false;
     //Type = PacketType.SetFollowCamProperties;
     Header = new Header();
     Header.Frequency = PacketFrequency.Low;
     Header.ID = 429;
     Header.Reliable = true;
     Frustum = new FrustumBlock();
 }
Exemplo n.º 7
0
 public SetWindowPacket()
 {
     HasVariableBlocks = false;
     //Type = PacketType.SetFollowCamProperties;
     Header = new Header();
     Header.Frequency = PacketFrequency.Low;
     Header.ID = 431;
     Header.Reliable = true;
     Frustum = new SetFrustumPacket.FrustumBlock();
     Camera = new SetCameraPacket.CameraBlock();
 }
 public override void FromBytes(Header header, byte[] bytes, ref int i, ref int packetEnd)
 {
     Header = header;
     ObjectData.FromBytes(bytes, ref i);
 }
 public ClearFrustumPacket(Header head, byte[] bytes, ref int i)
     : this()
 {
     int packetEnd = bytes.Length - 1;
     FromBytes(head, bytes, ref i, ref packetEnd);
 }
 public ClearRemoteControlPacket(Header head, byte[] bytes, ref int i)
     : this()
 {
     int packetEnd = bytes.Length - 1;
     FromBytes(head, bytes, ref i, ref packetEnd);
 }
Exemplo n.º 11
0
 public override void FromBytes(Header header, byte[] bytes, ref int i, ref int packetEnd)
 {
 }
Exemplo n.º 12
0
 public SetCameraPacket(Header head, byte[] bytes, ref int i)
     : this()
 {
     int packetEnd = bytes.Length - 1;
     FromBytes(head, bytes, ref i, ref packetEnd);
 }
 public CloseBrowserPacket(Header head, byte[] bytes, ref int i)
     : this()
 {
     int packetEnd = bytes.Length - 1;
     FromBytes(head, bytes, ref i, ref packetEnd);
 }
Exemplo n.º 14
0
 public override void FromBytes(Header header, byte[] bytes, ref int i, ref int packetEnd)
 {
     Header = header;
     Frustum.FromBytes(bytes, ref i);
     Camera.FromBytes(bytes, ref i);
 }
Exemplo n.º 15
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="header"></param>
        /// <param name="bytes"></param>
        /// <param name="packetEnd"></param>
        static void CreateAckList(ref Header header, byte[] bytes, ref int packetEnd)
        {
            if (header.AppendedAcks)
            {
                int count = bytes[packetEnd--];
                header.AckList = new uint[count];
                
                for (int i = 0; i < count; i++)
                {
                    header.AckList[i] = (uint)(
                        (bytes[(packetEnd - i * 4) - 3] << 24) |
                        (bytes[(packetEnd - i * 4) - 2] << 16) |
                        (bytes[(packetEnd - i * 4) - 1] <<  8) |
                        (bytes[(packetEnd - i * 4)    ]));
                }

                packetEnd -= (count * 4);
            }
        }
Exemplo n.º 16
0
 public static string InterpretOptions(Header header)
 {
     return "["
          + (header.AppendedAcks ? "Ack" : "   ")
          + " "
          + (header.Resent ? "Res" : "   ")
          + " "
          + (header.Reliable ? "Rel" : "   ")
          + " "
          + (header.Zerocoded ? "Zer" : "   ")
          + "]"
          ;
 }
Exemplo n.º 17
0
 public MuteAudioPacket(Header head, byte[] bytes, ref int i)
     : this()
 {
     int packetEnd = bytes.Length - 1;
     FromBytes(head, bytes, ref i, ref packetEnd);
 }