Beispiel #1
0
 /// <summary>
 /// Gets the full path of the specified mul file
 /// </summary>
 /// <param name="MulType">The type of mul file</param>
 /// <param name="MapIndex">The map index that will be appended in the filename</param>
 /// <returns>The full path of the chosen file</returns>
 private string GetMulFile( MulFileType MulType, int MapIndex )
 {
     return GetMulFile( MulType, (Maps) MapIndex );
 }
Beispiel #2
0
        /// <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() );
        }
Beispiel #3
0
        /// <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;
        }