コード例 #1
0
        /// <summary>
        /// Turns this translation file into a GSC file that can be used in the game.
        /// </summary>
        /// <param name="refGsc">Path to the reference GSC.</param>
        /// <returns>The GSC representation of this translation file.</returns>
        public GscFile ToGSC(string refGsc)
        {
            var gsc = GscFile.FromFile(refGsc);

            Populate(gsc);

            return(gsc);
        }
コード例 #2
0
 /// <summary>
 /// Converts a GSC file (internal representation) into a TransFile (easily translatable).
 /// </summary>
 /// <param name="file">The file to be converted.</param>
 /// <returns>The TransFile representation of the GSC file.</returns>
 public static TransFile FromGSC(string file)
 {
     return(TransFile.FromGSC(GscFile.FromFile(file)));
 }