godzcheater

XUID

Mar 27th, 2012
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.87 KB | None | 0 0
  1.     public class XUID//Ripped from the sdk
  2.     {
  3.         public System.UInt64 Value { get; set; }
  4.  
  5.         public XUID(System.UInt64 _Value) { Value = _Value; }
  6.         public XUID() { Value = 0; }
  7.  
  8.         public System.Boolean IsValid
  9.         {
  10.             get
  11.             {
  12.                 return IsOffline != IsOnline;
  13.             }
  14.         }
  15.  
  16.         public System.Boolean IsGuest//Cant remember where i found this, not the sdk
  17.         {//but need to get the extra bit requirments
  18.             get
  19.             {
  20.                 return (Value & 38562071809359872) == 38562071809359872;
  21.             }
  22.             //set
  23.             //{
  24.             //    if (value != IsGuest)
  25.             //    {
  26.             //        Value ^= 38562071809359872;
  27.             //    }
  28.             //}
  29.         }
  30.         public System.Boolean IsOffline
  31.         {
  32.             get
  33.             {
  34.                 return (Value & 17293822569102704640) == 16140901064495857664;
  35.             }
  36.             set
  37.             {
  38.                 if (value != IsOffline)
  39.                 {
  40.                     Value ^= 16140901064495857664;
  41.                 }
  42.             }
  43.         }
  44.         public System.Boolean IsOnline
  45.         {
  46.             get
  47.             {
  48.                 return (Value & 18446462598732840960) == 2533274790395904;
  49.             }
  50.             set
  51.             {
  52.                 if (value != IsOnline)
  53.                 {
  54.                     Value ^= 2533274790395904;
  55.                 }
  56.             }
  57.         }
  58.         public System.Boolean IsTeam
  59.         {
  60.             get
  61.             {
  62.                 return (Value & 18374686479671624000) == 18302628885633696000;
  63.             }
  64.             set
  65.             {
  66.                 if (value != IsTeam)
  67.                 {
  68.                     Value ^= 18302628885633696000;
  69.                 }
  70.             }
  71.         }
  72.     }
Advertisement
Add Comment
Please, Sign In to add comment