/// <summary> /// Loads the vehicle from the given stream. /// </summary> public static DynamicVehicle LoadFromStream(Stream stream) { return(DynamicVehicle.Load(stream.ReadToEnd())); }
/// <summary> /// Loads the vehicle from the embedded resources. /// </summary> public static DynamicVehicle LoadFromEmbeddedResource(Assembly assembly, string embeddedResource) { return(DynamicVehicle.Load(assembly.GetManifestResourceStream(embeddedResource).ReadToEnd())); }
/// <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())); }