mirror of
https://github.com/Dadechin/Unity-WebSocket.git
synced 2025-07-04 04:14:34 +00:00
15 lines
303 B
C#
15 lines
303 B
C#
|
|
namespace GameKit.Dependencies.Utilities
|
|
{
|
|
public static class Booleans
|
|
{
|
|
/// <summary>
|
|
/// Converts a boolean to an integer, 1 for true 0 for false.
|
|
/// </summary>
|
|
public static int ToInt(this bool b)
|
|
{
|
|
return (b) ? 1 : 0;
|
|
}
|
|
}
|
|
|
|
} |