private bool GetFlag(int bit) { return(Flags.HasFlag((ShipStatusFlags)(1 << bit))); }
public static bool GetFlag(ShipStatusFlags flags, int bit) => flags.HasFlag((ShipStatusFlags)(1 << bit));
private bool GetFlag(int bit) { return(Flags.HasFlag((ShipStatusFlags)(1 << bit))); }
public static bool GetFlag(ShipStatusFlags flags, int bit) => flags.HasFlag((ShipStatusFlags)(1 << bit));