public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            ExtName = reader.ReadString();
            Version = reader.ReadInt();

            return(this);
        }
Beispiel #2
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            AppName        = reader.ReadString();
            ExtensionCount = reader.ReadShort();

            return(this);
        }
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            EntityID  = reader.ReadByte();
            ModelName = reader.ReadString();

            return(this);
        }
Beispiel #4
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            Coordinates = Position.FromReaderShort(reader);
            BlockType   = reader.ReadByte();

            return(this);
        }
Beispiel #5
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            PlayerID       = reader.ReadSByte();
            ChangeLocation = Position.FromReaderSByte(reader);

            return(this);
        }
Beispiel #6
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            PlayerID = reader.ReadSByte();
            Message  = reader.ReadString();

            return(this);
        }
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            BlockToHold   = reader.ReadByte();
            PreventChange = (PreventChange)reader.ReadByte();

            return(this);
        }
Beispiel #8
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            PlayerID = reader.ReadSByte();
            Yaw      = reader.ReadByte();
            Pitch    = reader.ReadByte();

            return(this);
        }
Beispiel #9
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            ChunkLength     = reader.ReadShort();
            ChunkData       = reader.ReadByteArray(1024);
            PercentComplete = reader.ReadByte();

            return(this);
        }
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            BlockType      = reader.ReadByte();
            AllowPlacement = (AllowPlacement)reader.ReadByte();
            AllowDeletion  = (AllowDeletion)reader.ReadByte();;

            return(this);
        }
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            PlayerID    = reader.ReadSByte();
            Coordinates = Position.FromReaderShort(reader);
            Yaw         = reader.ReadByte();
            Pitch       = reader.ReadByte();

            return(this);
        }
        public IPacket ReadPacket(IProtocolDataReader reader)
        {
            EntityID = reader.ReadInt();
            reader.ReadString(); // Unused
            Seed      = reader.ReadLong();
            Dimension = (Dimension)reader.ReadSByte();

            return(this);
        }
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            ProtocolVersion = reader.ReadByte();
            Username        = reader.ReadString();
            VerificationKey = reader.ReadString();
            UnUsed          = reader.ReadByte();

            return(this);
        }
        public IPacket ReadPacket(IProtocolDataReader reader)
        {
            ProtocolVersion = reader.ReadInt();
            Username        = reader.ReadString();
            reader.ReadLong(); // Unused
            reader.ReadByte(); // Unused

            return(this);
        }
Beispiel #15
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            PlayerID = reader.ReadByte();
            Position = Vector3.FromReaderShort(reader);
            Yaw      = reader.ReadByte();
            Pitch    = reader.ReadByte();

            return(this);
        }
Beispiel #16
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            ProtocolVersion = reader.ReadByte();
            ServerName      = reader.ReadString();
            ServerMOTD      = reader.ReadString();
            UserType        = (UserType)reader.ReadByte();

            return(this);
        }
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            Variable = (EnvironmentalVariable)reader.ReadByte();
            Red      = reader.ReadShort();
            Green    = reader.ReadShort();
            Blue     = reader.ReadShort();

            return(this);
        }
Beispiel #18
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            TextureURL = reader.ReadString();
            SideBlock  = reader.ReadByte();
            EdgeBlock  = reader.ReadByte();
            SideLevel  = reader.ReadShort();

            return(this);
        }
Beispiel #19
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            Label   = reader.ReadString();
            Action  = reader.ReadString();
            KeyCode = reader.ReadInt();
            KeyMods = (KeyMods)reader.ReadByte();

            return(this);
        }
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            NameID     = reader.ReadShort();
            PlayerName = reader.ReadString();
            ListName   = reader.ReadString();
            GroupName  = reader.ReadString();
            GroupRank  = reader.ReadByte();

            return(this);
        }
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            Flying          = (Flying)reader.ReadByte();
            NoClip          = (NoClip)reader.ReadByte();
            Speeding        = (Speeding)reader.ReadByte();
            SpawnControl    = (SpawnControl)reader.ReadByte();
            ThirdPersonView = (ThirdPersonView)reader.ReadByte();
            JumpHeight      = reader.ReadShort();

            return(this);
        }
Beispiel #22
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            EntityID   = reader.ReadByte();
            InGameName = reader.ReadString();
            SkinName   = reader.ReadString();
            Spawn      = Position.FromReaderShort(reader);
            SpawnYaw   = reader.ReadByte();
            SpawnPitch = reader.ReadByte();

            return(this);
        }
Beispiel #23
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            Button              = (Button)reader.ReadByte();
            Action              = (Action)reader.ReadByte();
            Yaw                 = reader.ReadShort();
            Pitch               = reader.ReadShort();
            TargetEntityID      = reader.ReadByte();
            TargetBlockLocation = Position.FromReaderShort(reader);
            TargetBlockFace     = (TargetBlockFace)reader.ReadByte();

            return(this);
        }
Beispiel #24
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            SelectionID   = reader.ReadByte();
            Label         = reader.ReadString();
            StartLocation = Position.FromReaderShort(reader);
            EndLocation   = Position.FromReaderShort(reader);
            Red           = reader.ReadShort();
            Green         = reader.ReadShort();
            Blue          = reader.ReadShort();
            Opacity       = reader.ReadShort();

            return(this);
        }
 IPacket IPacket.ReadPacket(IProtocolDataReader reader)
 {
     return(ReadPacket(reader));
 }
Beispiel #26
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            SupportLevel = reader.ReadByte();

            return(this);
        }
Beispiel #27
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            SelectionID = reader.ReadByte();

            return(this);
        }
 public IPacket ReadPacket(IProtocolDataReader reader)
 {
     // This space intentionally left blank
     return(this);
 }
Beispiel #29
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            Reason = reader.ReadString();

            return(this);
        }
Beispiel #30
0
        public IPacketWithSize ReadPacket(IProtocolDataReader reader)
        {
            WeatherType = (WeatherType)reader.ReadByte();

            return(this);
        }