Beispiel #1
0
 public static bool GetMobileFlags(MobileObject *mobile, MobileFlags toGet)
 {
     if (mobile == null)
     {
         return(false);
     }
     return(((*mobile).m_Flags & toGet) == toGet);
 }
Beispiel #2
0
 public static MobileFlags GetMobileFlags(MobileObject *mobile)
 {
     if (mobile == null)
     {
         return(0);
     }
     return((*mobile).m_Flags);
 }
Beispiel #3
0
 public static void SetMobileFlags(MobileObject *mobile, MobileFlags toSet, bool Value = true)
 {
     if (mobile != null)
     {
         if (Value)
         {
             (*mobile).m_Flags |= toSet;
         }
         else
         {
             (*mobile).m_Flags &= ~toSet;
         }
     }
 }
Beispiel #4
0
 public static void ClearMobileFlags(MobileObject *mobile, MobileFlags toClear)
 {
     SetMobileFlags(mobile, toClear, false);
 }