Esempio n. 1
0
 public void FillFrom(SnapObj_PlayerInput other)
 {
     Direction    = other.Direction;
     TargetX      = other.TargetX;
     TargetY      = other.TargetY;
     Jump         = other.Jump;
     Fire         = other.Fire;
     Hook         = other.Hook;
     PlayerFlags  = other.PlayerFlags;
     WantedWeapon = other.WantedWeapon;
     NextWeapon   = other.NextWeapon;
     PrevWeapon   = other.PrevWeapon;
 }
Esempio n. 2
0
 public bool Compare(SnapObj_PlayerInput other)
 {
     return
         (Direction == other.Direction &&
          TargetX == other.TargetX &&
          TargetY == other.TargetY &&
          Jump == other.Jump &&
          Fire == other.Fire &&
          Hook == other.Hook &&
          PlayerFlags == other.PlayerFlags &&
          WantedWeapon == other.WantedWeapon &&
          NextWeapon == other.NextWeapon &&
          PrevWeapon == other.PrevWeapon);
 }