Files
PrinceOfGlory/Packages/com.firstgeargames.fishnet/Plugins/GameKit/Utilities/Bools.cs
2026-03-03 03:15:46 +08:00

15 lines
290 B
C#

namespace GameKit.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;
}
}
}