예제 #1
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            m_scripts = reader.ReadAssetArray <PPtr <MonoScript> >();
            if (IsReadHasCompileErrors(reader.Version))
            {
                HasCompileErrors = reader.ReadBoolean();
                if (IsAlign(reader.Version))
                {
                    reader.AlignStream(AlignType.Align4);
                }

                EngineDllModDate.Read(reader);
            }
            if (IsReadCustomDlls(reader.Version))
            {
                m_customDlls = reader.ReadStringArray();
            }
            m_assemblyNames = reader.ReadStringArray();
            if (IsReadAssemblyIdentifiers(reader.Version))
            {
                m_assemblyIdentifiers = reader.ReadStringArray();
            }
            if (IsReadAssemblyTypes(reader.Version))
            {
                m_assemblyTypes = reader.ReadInt32Array();
            }
        }
예제 #2
0
        public override void Read(AssetStream stream)
        {
            base.Read(stream);

            m_scripts = stream.ReadArray <PPtr <MonoScript> >();
            if (IsReadHasCompileErrors(stream.Version))
            {
                HasCompileErrors = stream.ReadBoolean();
                EngineDllModDate.Read(stream);
            }
            if (IsReadCustomDlls(stream.Version))
            {
                m_customDlls = stream.ReadStringArray();
            }
            m_assemblyNames = stream.ReadStringArray();
            if (IsReadAssemblyIdentifiers(stream.Version))
            {
                m_assemblyIdentifiers = stream.ReadStringArray();
            }
            if (IsReadAssemblyTypes(stream.Version))
            {
                m_assemblyTypes = stream.ReadInt32Array();
            }
        }