Exemplo n.º 1
0
 /// <summary>
 /// Loads the vehicle from the given stream.
 /// </summary>
 public static DynamicVehicle LoadFromStream(Stream stream)
 {
     return(DynamicVehicle.Load(stream.ReadToEnd()));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Loads the vehicle from the embedded resources.
 /// </summary>
 public static DynamicVehicle LoadFromEmbeddedResource(Assembly assembly, string embeddedResource)
 {
     return(DynamicVehicle.Load(assembly.GetManifestResourceStream(embeddedResource).ReadToEnd()));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Loads the vehicle from the given stream using the current position as the size.
 /// </summary>
 public static DynamicVehicle LoadWithSize(Stream stream)
 {
     return(DynamicVehicle.Load(stream.ReadWithSizeString()));
 }