IsNativePlayableAlive() static private method

static private IsNativePlayableAlive ( Playable p ) : bool
p Playable
return bool
Esempio n. 1
0
        internal static bool CompareIntPtr(Playable lhs, Playable rhs)
        {
            bool flag  = lhs == null || !Playable.IsNativePlayableAlive(lhs);
            bool flag2 = rhs == null || !Playable.IsNativePlayableAlive(rhs);

            if (flag2 && flag)
            {
                return(true);
            }
            if (flag2)
            {
                return(!Playable.IsNativePlayableAlive(lhs));
            }
            if (flag)
            {
                return(!Playable.IsNativePlayableAlive(rhs));
            }
            return(lhs.GetUniqueIDInternal() == rhs.GetUniqueIDInternal());
        }