public Avatar(ObjectReader reader) : base(reader) { m_AvatarSize = reader.ReadUInt32(); m_Avatar = new AvatarConstant(reader); int numTOS = reader.ReadInt32(); m_TOS = new KeyValuePair<uint, string>[numTOS]; for (int i = 0; i < numTOS; i++) { m_TOS[i] = new KeyValuePair<uint, string>(reader.ReadUInt32(), reader.ReadAlignedString()); } }
public Avatar(AssetPreloadData preloadData) : base(preloadData) { m_AvatarSize = reader.ReadUInt32(); m_Avatar = new AvatarConstant(reader, version); 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.ReadAlignedString())); } }
public Avatar(ObjectReader reader) : base(reader) { m_AvatarSize = reader.ReadUInt32(); m_Avatar = new AvatarConstant(reader); var numTOS = reader.ReadInt32(); m_TOS = new KeyValuePair <uint, string> [numTOS]; for (var i = 0; i < numTOS; i++) { m_TOS[i] = new KeyValuePair <uint, string>(reader.ReadUInt32(), reader.ReadAlignedString()); } //HumanDescription m_HumanDescription 2019 and up }
public Avatar(AssetPreloadData preloadData) { var sourceFile = preloadData.sourceFile; var version = sourceFile.version; var reader = preloadData.InitReader(); reader.Position = preloadData.Offset; m_Name = reader.ReadAlignedString(); m_AvatarSize = reader.ReadUInt32(); m_Avatar = new AvatarConstant(reader, version); 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.ReadAlignedString())); } }