/// <summary> /// Use the code page described by the file at the specified <paramref name="path"/> when en/decoding text messages sent to/from the server. /// </summary> /// <param name="path">The path to the code page file.</param> /// <returns>The updated game mode configuration builder.</returns> public GameModeBuilder UseEncoding(string path) { if (path == null) { throw new ArgumentNullException(nameof(path)); } return(UseEncoding(CodePageEncoding.Load(path))); }
/// <summary> /// Use the code page described by the specified <paramref name="stream"/> when en/decoding text messages sent to/from the server. /// </summary> /// <param name="stream">The stream containing the code page definition.</param> /// <returns>The updated game mode configuration builder.</returns> public GameModeBuilder UseEncoding(Stream stream) { return(UseEncoding(CodePageEncoding.Load(stream))); }