/// <summary> /// Retrieves the string corresponding to the given MulFileType /// </summary> /// <param name="MulType">The MulFileType that must be converted to string</param> /// <returns>A string that represents the initial name of the mul file specified by MulFileType</returns> private string MulTypeToString( MulFileType MulType ) { switch ( MulType ) { case MulFileType.Map: return "map"; case MulFileType.MapDif: return "mapdif"; case MulFileType.MapDifl: return "mapdifl"; case MulFileType.StaDif: return "stadif"; case MulFileType.StaDifi: return "stadifi"; case MulFileType.StaDifl: return "stadifl"; case MulFileType.Staidx: return "staidx"; case MulFileType.Statics: return "statics"; } throw new Exception( "Cannot recognize mul file type: " + MulType.ToString() ); }
/// <summary> /// Gets the string corresponding to the specified file for a given map /// </summary> /// <param name="MulType">The MulFileType value stating which file is being requested</param> /// <param name="map">The map referenced by the requested file</param> /// <returns></returns> private string GetMulFile( MulFileType MulType, Maps map ) { if ( m_MulManager != null ) { if ( MulType == MulFileType.RadarCol ) { return m_MulManager[ "{0}.mul", MulType.ToString() ]; } else { // �עמ חא ץונ� //if ( map == Maps.Trammel && ( MulType == MulFileType.Map || MulType == MulFileType.Staidx || MulType == MulFileType.Statics ) ) //{ // map = Maps.Felucca; //} return m_MulManager[ "{0}{1}.mul", MulType.ToString(), (int) map ]; } } return null; }