Пример #1
0
        public static IExportObject Deserialize(BinaryReader reader, FObjectExport export, FPackageFileSummary summary)
        {
            var instance = new UDataTable();
            var count    = reader.ReadInt32();

            for (int i = 0; i < count; ++i)
            {
                var index = LSerializer.Deserialize <FName>(reader);
                index.Ref(summary);
                var uobj = new UObject(reader, summary, false);
                uobj.Name = index;
                instance.Add(index, uobj);
            }
            return(instance);
        }
Пример #2
0
        public static IExportObject Deserialize(BinaryReader reader, FObjectExport export, FPackageFileSummary summary)
        {
            UDataTable uDataTable = new UDataTable();
            int        num        = reader.ReadInt32();

            for (int i = 0; i < num; i++)
            {
                FName fName = LSerializer.Deserialize <FName>(reader);
                fName.Ref(summary);
                UObject uObject = new UObject(reader, summary, pad: false);
                uObject.Name = fName;
                uDataTable.Add(fName, uObject);
            }
            return(uDataTable);
        }