Ejemplo n.º 1
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte((byte)Variable);
            stream.WriteShort(Red);
            stream.WriteShort(Green);
            stream.WriteShort(Blue);

            return(this);
        }
Ejemplo n.º 2
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte((byte)Button);
            stream.WriteByte((byte)Action);
            stream.WriteShort(Yaw);
            stream.WriteShort(Pitch);
            stream.WriteByte(TargetEntityID);
            TargetBlockLocation.ToStreamShort(stream);
            stream.WriteByte((byte)TargetBlockFace);

            return(this);
        }
Ejemplo n.º 3
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(SelectionID);
            stream.WriteString(Label);
            StartLocation.ToStreamShort(stream);
            EndLocation.ToStreamShort(stream);
            stream.WriteShort(Red);
            stream.WriteShort(Green);
            stream.WriteShort(Blue);
            stream.WriteShort(Opacity);

            return(this);
        }
Ejemplo n.º 4
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(AppName);
            stream.WriteShort(ExtensionCount);

            return(this);
        }
Ejemplo n.º 5
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteShort(ChunkLength);
            stream.WriteByteArray(ChunkData);
            stream.WriteByte(PercentComplete);

            return(this);
        }
Ejemplo n.º 6
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(TextureURL);
            stream.WriteByte(SideBlock);
            stream.WriteByte(EdgeBlock);
            stream.WriteShort(SideLevel);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteShort(NameID);
            stream.WriteString(PlayerName);
            stream.WriteString(ListName);
            stream.WriteString(GroupName);
            stream.WriteByte(GroupRank);

            return(this);
        }
Ejemplo n.º 8
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte((byte)Flying);
            stream.WriteByte((byte)NoClip);
            stream.WriteByte((byte)Speeding);
            stream.WriteByte((byte)SpawnControl);
            stream.WriteByte((byte)ThirdPersonView);
            stream.WriteShort(JumpHeight);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteShort(Distance);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteShort(NameID);

            return(this);
        }