예제 #1
0
        public void ReadPacket(FancyStream stream)
        {
            var info = new List <byte>();

            for (int i = 0; i < 129; i++)
            {
                info.Add(stream.ReadByte());
            }
            unknown = info.ToArray();
        }
예제 #2
0
        public void ReadPacket(FancyStream stream)
        {
            unknown = stream.ReadShort();
            var len = stream.ReadShort();

            Console.WriteLine("LENGTH" + len);
            List <byte> msg = new List <byte>();

            for (int i = 0; i < len; i++)
            {
                msg.Add(stream.ReadByte());
            }
            name = Encoding.ASCII.GetString(msg.ToArray());
        }
예제 #3
0
        public void ReadPacket(FancyStream stream)
        {
            List <byte> msg = new List <byte>();

            for (int j = 0; j < (64); j++)
            {
                msg.Add(stream.ReadByte());
            }
            name     = Encoding.ASCII.GetString(msg.ToArray());
            unknown  = stream.ReadInt();
            flags    = stream.ReadInt();
            rangemin = stream.ReadFloat();
            rangemax = stream.ReadFloat();
            padding  = stream.ReadByte();
        }
예제 #4
0
        public void ReadPacket(FancyStream stream)
        {
            channelID = stream.ReadInt();
            var info = new List <byte>();

            for (int i = 0; i < 24; i++)
            {
                info.Add(stream.ReadByte());
            }
            unknown = info.ToArray();
            List <byte> msg = new List <byte>();

            for (int j = 0; j < (length - 40); j++)
            {
                msg.Add(stream.ReadByte());
            }
            message = Encoding.ASCII.GetString(msg.ToArray());
        }
예제 #5
0
 public void ReadPacket(FancyStream stream)
 {
     unknown1  = stream.ReadInt();
     unknown2  = stream.ReadInt();
     unknown3  = stream.ReadInt();
     unknown4  = stream.ReadInt();
     unknown5  = stream.ReadInt();
     unknown6  = stream.ReadInt();
     unknown7  = stream.ReadInt();
     unknown8  = stream.ReadInt();
     unknown9  = stream.ReadInt();
     unknown10 = stream.ReadInt();
     unknown11 = stream.ReadInt();
     unknown12 = stream.ReadInt();
     unknown13 = stream.ReadInt();
     unknown14 = stream.ReadInt();
     unknown15 = stream.ReadInt();
     unknown16 = stream.ReadInt();
     unknown17 = stream.ReadInt();
     unknown18 = stream.ReadInt();
     unknown19 = stream.ReadInt();
     padding   = stream.ReadByte();
 }
예제 #6
0
        public void ReadPacket(FancyStream stream)
        {
            channels = new List <Types.Channel>();
            var len = stream.ReadShort();

            for (int i = 0; i < len; i++)
            {
                var id                = stream.ReadInt();
                var unknown1          = stream.ReadInt();
                var unknown2          = stream.ReadInt();
                var verbosity_default = stream.ReadInt();
                var verbosity_current = stream.ReadInt();
                var RGBA_Override     = stream.ReadInt();

                List <byte> msg = new List <byte>();
                for (int j = 0; j < 34; j++)
                {
                    msg.Add(stream.ReadByte());
                }
                var name = Encoding.ASCII.GetString(msg.ToArray());

                channels.Add(new Types.Channel(id, unknown1, unknown2, verbosity_default, verbosity_current, RGBA_Override, name));
            }
        }