Exemplo n.º 1
0
        public static object Deserialize(byte[] data)
        {
            int          index       = 0;
            int          accountId   = SerializeUtils.ReadInt(data, ref index);
            string       accountName = SerializeUtils.ReadString(data, ref index);
            bool         isReady     = SerializeUtils.ReadBool(data, ref index);
            RpPlayerData rpData      = new RpPlayerData(accountId, accountName, isReady);

            return(rpData);
        }