/// <summary> /// Initializes a new MissionFile instance by loading a mission file from a stream. /// </summary> /// <param name="stream">The stream to load from.</param> /// <returns>The loaded mission file.</retur public static MissionFile Load(Stream stream) { MissionFile mission = new MissionFile(); mission.Read(stream); return(mission); }
/// <summary> /// Initializes a new MissionFile instance by loading a mission file from a byte array. /// </summary> /// <param name="array">The byte array to load from.</param> /// <returns>The loaded mission file.</returns> public static MissionFile Load(byte[] array) { MissionFile mission = new MissionFile(); mission.Read(array); return(mission); }
/// <summary> /// Initializes a new MissionFile instance by loading a mission file from a file. /// </summary> /// <param name="filePath">The path of the file to load from.</param> /// <returns>The loaded mission file.</retur public static MissionFile Load(string filePath) { MissionFile mission = new MissionFile(); mission.Read(filePath); return(mission); }