示例#1
0
        public void LoadFrom(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            m_Name       = reader.ReadNameA4();
            m_AvatarSize = reader.ReadUInt32();
            m_Avatar     = new AvatarConstant(stream);

            int numTOS = reader.ReadInt32();

            m_TOS = new List <KeyValuePair <uint, string> >(numTOS);
            for (int i = 0; i < numTOS; i++)
            {
                m_TOS.Add(new KeyValuePair <uint, string>(reader.ReadUInt32(), reader.ReadNameA4()));
            }
        }
示例#2
0
        public void LoadFrom(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);
            m_Name = reader.ReadNameA4();
            m_AvatarSize = reader.ReadUInt32();
            m_Avatar = new AvatarConstant(stream);

            int numTOS = reader.ReadInt32();
            m_TOS = new List<KeyValuePair<uint, string>>(numTOS);
            for (int i = 0; i < numTOS; i++)
            {
                m_TOS.Add(new KeyValuePair<uint, string>(reader.ReadUInt32(), reader.ReadNameA4()));
            }
        }