Esempio n. 1
0
        public void Read(ClientWrapper state, MSGBuffer buffer, object[] Arguments)
        {
            string Locale       = buffer.ReadString();
            byte   ViewDistance = (byte)buffer.ReadByte();
            byte   ChatFlags    = (byte)buffer.ReadByte();
            bool   ChatColours  = buffer.ReadBool();
            byte   SkinParts    = (byte)buffer.ReadByte();

            state.Player.Locale       = Locale;
            state.Player.ViewDistance = ViewDistance;
            state.Player.ChatColours  = ChatColours;
            state.Player.ChatFlags    = ChatFlags;
            state.Player.SkinParts    = SkinParts;
        }