mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
Added support for FilterText
This commit is contained in:
parent
31ffaa3e6e
commit
81c5ca7761
@ -752,7 +752,7 @@ public enum GamepadTextInputLineMode : int
|
|||||||
//
|
//
|
||||||
// ETextFilteringContext
|
// ETextFilteringContext
|
||||||
//
|
//
|
||||||
internal enum TextFilteringContext : int
|
public enum TextFilteringContext : int
|
||||||
{
|
{
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
GameContent = 1,
|
GameContent = 1,
|
||||||
|
@ -261,5 +261,20 @@ internal static bool IsCallComplete( SteamAPICall_t call, out bool failed )
|
|||||||
/// Returns whether this steam client is a Steam China specific client, vs the global client
|
/// Returns whether this steam client is a Steam China specific client, vs the global client
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool IsSteamChinaLauncher => Internal.IsSteamChinaLauncher();
|
public static bool IsSteamChinaLauncher => Internal.IsSteamChinaLauncher();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes text filtering, loading dictionaries for the language the game is running in.
|
||||||
|
/// Users can customize the text filter behavior in their Steam Account preferences
|
||||||
|
/// </summary>
|
||||||
|
public static bool InitFilterText( uint unFilterOptions ) => Internal.InitFilterText( unFilterOptions );
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Filters the provided input message and places the filtered result into pchOutFilteredText,
|
||||||
|
/// using legally required filtering and additional filtering based on the context and user settings.
|
||||||
|
/// </summary>
|
||||||
|
public int FilterText( TextFilteringContext eContext, SteamId sourceSteamID, string pchInputMessage, out string pchOutFilteredText )
|
||||||
|
{
|
||||||
|
return Internal.FilterText( eContext, sourceSteamID, pchInputMessage, out pchOutFilteredText );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user