LostProphet

isAlive and isAliveAndWell

Apr 3rd, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. public bool isAlive
  2. {
  3.     [return: MarshalAs(UnmanagedType.U1)]
  4.     get
  5.     {
  6.         if (!this.Exists())
  7.         {
  8.             throw new NonExistingObjectException();
  9.         }
  10.         if (!this.Exists())
  11.         {
  12.             throw new NonExistingObjectException();
  13.         }
  14.         return ((<Module>.Scripting.?A0x5984d89a.IsCharDead(this.pHandle) == 0) ? 1 : 0) != 0;
  15.     }
  16. }
  17.  
  18. public bool isAliveAndWell
  19. {
  20.     [return: MarshalAs(UnmanagedType.U1)]
  21.     get
  22.     {
  23.         if (!this.Exists())
  24.         {
  25.             throw new NonExistingObjectException();
  26.         }
  27.         int num;
  28.         if (this.Exists() && this.isAlive && !this.isInjured)
  29.         {
  30.             num = 1;
  31.         }
  32.         else
  33.         {
  34.             num = 0;
  35.         }
  36.         return (byte)num != 0;
  37.     }
  38. }
Add Comment
Please, Sign In to add comment