示例#1
0
 public void Serialize(FileFormats.Unreal.ISerializer stream)
 {
     stream.Serialize(ref this.PathIndex);
     stream.Serialize(ref this.NameIndex);
     stream.Serialize(ref this.ActorIndex);
     stream.Serialize(ref this.GroupIndex);
     stream.Serialize(ref this.LocaleIndex);
     stream.Serialize(ref this.FileIndex);
     stream.Serialize(ref this.IsPackage);
     stream.Serialize(ref this.Offset);
     stream.Serialize(ref this.Size);
 }
示例#2
0
            public void Serialize(FileFormats.Unreal.ISerializer stream)
            {
                if (stream.Mode == FileFormats.Unreal.SerializeMode.Reading)
                {
                    uint a = 0, b = 0, c = 0, d = 0;
                    stream.Serialize(ref a);
                    stream.Serialize(ref b);
                    stream.Serialize(ref c);
                    stream.Serialize(ref d);
                    this.Hash = new FileHash(a, b, c, d);
                }
                else
                {
                    throw new NotSupportedException();
                }

                stream.Serialize(ref this.Instances);
            }
示例#3
0
 public void Serialize(FileFormats.Unreal.ISerializer stream)
 {
     stream.Serialize(ref this.Strings);
     stream.Serialize(ref this.Resources);
 }