This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
station_obscurum_unity/Assets/FishNet/Runtime/Utility/Extension/Bool.cs

18 lines
356 B
C#
Raw Normal View History

2023-05-31 17:32:21 +02:00

namespace FishNet.Utility.Extension
{
public static class BooleanExtensions
{
/// <summary>
/// Converts a boolean to an integer.
/// </summary>
/// <param name="b"></param>
/// <returns></returns>
public static int ToInt(this bool b)
{
return (b) ? 1 : 0;
}
}
}