示例#1
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(Label);
            stream.WriteString(Action);
            stream.WriteInt(KeyCode);
            stream.WriteByte((byte)KeyMods);

            return(this);
        }
示例#2
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(ProtocolVersion);
            stream.WriteString(ServerName);
            stream.WriteString(ServerMOTD);
            stream.WriteByte((byte)UserType);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(ProtocolVersion);
            stream.WriteString(Username);
            stream.WriteString(VerificationKey);
            stream.WriteByte(UnUsed);

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

            return(this);
        }
示例#5
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(EntityID);
            stream.WriteString(InGameName);
            stream.WriteString(SkinName);
            Spawn.ToStreamShort(stream);
            stream.WriteByte(SpawnYaw);
            stream.WriteByte(SpawnPitch);

            return(this);
        }
示例#6
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(ExtName);
            stream.WriteInt(Version);

            return(this);
        }
示例#7
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(AppName);
            stream.WriteShort(ExtensionCount);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(EntityID);
            stream.WriteString(ModelName);

            return(this);
        }
示例#9
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteSByte(PlayerID);
            stream.WriteString(Message);

            return(this);
        }
示例#10
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(UnUsed);
            stream.WriteString(Message);

            return(this);
        }
示例#11
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.WriteInt(EntityID);
            stream.WriteString(""); // Unused
            stream.WriteLong(Seed);
            stream.WriteSByte((sbyte)Dimension);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteInt(ProtocolVersion);
            stream.WriteString(Username);
            stream.WriteLong(0); // Unused
            stream.WriteByte(0); // Unused

            return(this);
        }
示例#14
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteSByte(PlayerID);
            stream.WriteString(PlayerName);
            Coordinates.ToStreamShort(stream);
            stream.WriteByte(Yaw);
            stream.WriteByte(Pitch);

            return(this);
        }
示例#15
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);
        }
示例#16
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(ConnectionHash);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(Username);

            return(this);
        }
示例#18
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(Reason);

            return(this);
        }