コード例 #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);
 }
コード例 #2
0
ファイル: Cheat.cs プロジェクト: henke37/BizHawk
		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();
			}
		}
コード例 #3
0
ファイル: Cheat.cs プロジェクト: hayate891/BizHawk
        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();
            }
        }
コード例 #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);
 }
コード例 #5
0
ファイル: CheatEdit.cs プロジェクト: ddugovic/RASuite
		public void ClearForm()
		{
			_cheat = Cheat.Separator;
			_editmode = false;
			SetFormToDefault();
		}
コード例 #6
0
ファイル: CheatEdit.cs プロジェクト: ddugovic/RASuite
		public void SetCheat(Cheat cheat)
		{
			_editmode = true;
			_cheat = cheat;
			if (cheat.IsSeparator)
			{
				SetFormToDefault();
			}
			else
			{
				SetFormToCheat();
			}
		}
コード例 #7
0
ファイル: CheatList.cs プロジェクト: tustin2121/tpp-BizHawk2
 public CheatListEventArgs(Cheat c)
 {
     Cheat = c;
 }