Ejemplo n.º 1
0
        public void FromBinary(BinaryReader br, AssetInfo obj)
        {
            obj.Path         = m_StringMap.GetString(br.ReadInt32());
            obj.ResourcePath = m_StringMap.GetString(br.ReadInt32());
            obj.DependencyAssetPaths.Clear();
            var dependencyAssetPathCount = br.ReadInt32();

            for (var i = 0; i < dependencyAssetPathCount; i++)
            {
                obj.DependencyAssetPaths.Add(m_StringMap.GetString(br.ReadInt32()));
            }
        }
        public void FromBinary(BinaryReader br, ResourceBasicInfo obj)
        {
            obj.Path    = m_StringMap.GetString(br.ReadInt32());
            obj.GroupId = br.ReadInt32();
            obj.DependencyResourcePaths.Clear();
            var dependencyCount = br.ReadInt32();

            for (int i = 0; i < dependencyCount; i++)
            {
                obj.DependencyResourcePaths.Add(m_StringMap.GetString(br.ReadInt32()));
            }
        }
 public void FromBinary(BinaryReader br, ResourceInfo obj)
 {
     obj.Path  = m_StringMap.GetString(br.ReadInt32());
     obj.Crc32 = br.ReadUInt32();
     obj.Size  = br.ReadInt64();
     obj.Hash  = br.ReadString();
 }
        public void FromBinary(BinaryReader br, ResourceGroupInfo obj)
        {
            obj.GroupId = br.ReadInt32();
            var resourcePathCount = br.ReadInt32();

            obj.ResourcePaths.Clear();
            for (int i = 0; i < resourcePathCount; i++)
            {
                obj.ResourcePaths.Add(m_StringMap.GetString(br.ReadInt32()));
            }
        }