예제 #1
0
 /// <summary>
 /// Loads the given file specified by PackagePath and
 /// returns the serialized UnrealPackage.
 /// </summary>
 public static UnrealPackage LoadPackage( string packagePath, IBufferDecoder decoder = null, FileAccess fileAccess = FileAccess.Read )
 {
     var stream = new UPackageStream( packagePath, FileMode.Open, fileAccess );
     var package = new UnrealPackage( stream ) {Decoder = decoder};
     package.Deserialize( stream );
     return package;
 }
예제 #2
0
 public static UnrealPackage DeserializePackage( string packagePath, FileAccess fileAccess = FileAccess.Read )
 {
     var stream = new UPackageStream( packagePath, FileMode.Open, fileAccess );
     var pkg = new UnrealPackage( stream );
     pkg.Deserialize( stream );
     return pkg;
 }