Esempio n. 1
0
 /// <summary>
 /// Determines if this <see cref="Watch"/> is equals to an instance of <see cref="Cheat"/>
 /// </summary>
 /// <param name="obj">The <see cref="Cheat"/> to compare</param>
 /// <returns>True if both object are equals; otherwise, false</returns>
 public bool Equals(Cheat other)
 {
     return(!object.ReferenceEquals(other, null) &&
            this._domain == other.Domain &&
            this._address == other.Address &&
            this._size == other.Size);
 }
Esempio n. 2
0
		public Cheat(Cheat cheat)
		{
			if (cheat.IsSeparator)
			{
				_enabled = false;
				_watch = SeparatorWatch.Instance;
				_compare = null;
			}
			else
			{
				_enabled = cheat.Enabled;
				_watch = Watch.GenerateWatch(
					cheat.Domain,
					cheat.Address ?? 0,
					cheat.Size,
					cheat.Type,					
					cheat.BigEndian ?? false,
					cheat.Name
                    );
				_compare = cheat.Compare;
				_val = cheat.Value ?? 0;

				Pulse();
			}
		}
Esempio n. 3
0
        public Cheat(Cheat cheat)
        {
            if (cheat.IsSeparator)
            {
                _enabled = false;
                _watch   = SeparatorWatch.Instance;
                _compare = null;
            }
            else
            {
                _enabled = cheat.Enabled;
                _watch   = Watch.GenerateWatch(
                    cheat.Domain,
                    cheat.Address ?? 0,
                    cheat.Size,
                    cheat.Type,
                    cheat.BigEndian ?? false,
                    cheat.Name
                    );
                _compare = cheat.Compare;
                _val     = cheat.Value ?? 0;

                Pulse();
            }
        }
Esempio n. 4
0
 /// <summary>
 /// Determines if this <see cref="Watch"/> is equals to an instance of <see cref="Cheat"/>
 /// </summary>
 /// <param name="other">The <see cref="Cheat"/> to compare</param>
 /// <returns>True if both object are equals; otherwise, false</returns>
 public bool Equals(Cheat other)
 {
     return(!ReferenceEquals(other, null) &&
            _domain == other.Domain &&
            Address == other.Address &&
            Size == other.Size);
 }
Esempio n. 5
0
		public void ClearForm()
		{
			_cheat = Cheat.Separator;
			_editmode = false;
			SetFormToDefault();
		}
Esempio n. 6
0
		public void SetCheat(Cheat cheat)
		{
			_editmode = true;
			_cheat = cheat;
			if (cheat.IsSeparator)
			{
				SetFormToDefault();
			}
			else
			{
				SetFormToCheat();
			}
		}
Esempio n. 7
0
 public CheatListEventArgs(Cheat c)
 {
     Cheat = c;
 }