Advertisement
mojito-ice

Untitled

Nov 9th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1.         public byte GetSubType() // move to base?
  2.         {
  3.             return (byte)(High & 0x3F);
  4.         }
  5.  
  6.         public ushort GetRealmId() // move to base?
  7.         {
  8.             return (ushort)((High >> 42) & 0x1FFF);
  9.         }
  10.  
  11.         public uint GetServerId() // move to base?
  12.         {
  13.             return (uint)((Low >> 40) & 0xFFFFFF);
  14.         }
  15.  
  16.         public ushort GetMapId() // move to base?
  17.         {
  18.             return (ushort)((High >> 29) & 0x1FFF);
  19.         }
  20.  
  21.         public override uint GetEntry()
  22.         {
  23.             return (uint)((High >> 6) & 0x7FFFFF); // Id
  24.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement