Exemplo n.º 1
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.getData());
            if (fm.ReadMark())
            {
                name = reader.ReadUTF();
            }
            if (fm.ReadMark())
            {
                id = reader.ReadByte();
            }
            if (fm.ReadMark())
            {
                int __0__ = SerializationUtil.ReadVariableLength(reader);
                itemInsts = new ItemInst[__0__];
                for (int i = 0; i < itemInsts.Length; i++)
                {
                    itemInsts[i] = new ItemInst();
                    itemInsts[i].Deserialize(reader);
                }
            }
            if (fm.ReadMark())
            {
                position = new Point3d();
                position.Deserialize(reader);
            }
        }
Exemplo n.º 2
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.getData());
            if (fm.ReadMark())
            {
                id = reader.ReadByte();
            }
            if (fm.ReadMark())
            {
                name = reader.ReadUTF();
            }
        }