/// <summary>
            /// Gets the NPC file based on the master map file
            /// </summary>
            /// <param name="mapMaster"></param>
            /// <returns>name of the .NPC file</returns>
            public static string GetNPCFilenameFromMasterFile(SmallMapMasterFiles mapMaster)
            {
                switch (mapMaster)
                {
                case SmallMapMasterFiles.Castle:
                    return(FileConstants.CASTLE_NPC);

                case SmallMapMasterFiles.Dwelling:
                    return(FileConstants.DWELLING_NPC);

                case SmallMapMasterFiles.Keep:
                    return(FileConstants.KEEP_NPC);

                case SmallMapMasterFiles.Towne:
                    return(FileConstants.TOWNE_NPC);
                }
                throw (new Exception("Couldn't map NPC filename"));
            }
Beispiel #2
0
            /// <summary>
            /// Get the name of the .TLK file based on the master map file
            /// </summary>
            /// <param name="mapMaster"></param>
            /// <returns>name of the .TLK file</returns>
            public static string GetTlkFilenameFromMasterFile(SmallMapMasterFiles mapMaster)
            {
                switch (mapMaster)
                {
                case SmallMapMasterFiles.Castle:
                    return(FileConstants.CASTLE_TLK);

                case SmallMapMasterFiles.Dwelling:
                    return(FileConstants.DWELLING_TLK);

                case SmallMapMasterFiles.Keep:
                    return(FileConstants.KEEP_TLK);

                case SmallMapMasterFiles.Towne:
                    return(FileConstants.TOWNE_TLK);

                case SmallMapMasterFiles.Dungeon:
                    break;
                }
                throw new Ultima5ReduxException("Couldn't map NPC filename");
            }