Exemplo n.º 1
0
        public virtual void Deserialize(Stream stream)
        {
            type = Serialization.ReadIntFromStream(stream);
            id   = Serialization.ReadIntFromStream(stream);
            pos  = new Vector3(Serialization.ReadIntFromStream(stream), Serialization.ReadIntFromStream(stream), Serialization.ReadIntFromStream(stream));
            int count = Serialization.ReadIntFromStream(stream);

            exData.Clear();
            for (int i = 0; i < count; i++)
            {
                exData.Add(Serialization.ReadIntFromStream(stream));
            }
        }