Unity-WebSocket/Assets/FishNet/Runtime/Plugins/GameKit/Dependencies/Utilities/Bools.cs

15 lines
303 B
C#
Raw Normal View History

2025-06-28 07:58:54 +00:00
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;
}
}
}