public override bool Equals(System.Object object_Renamed)
        {
            bool isEqual = false;

            if (base.Equals(object_Renamed) && (object_Renamed is DefineButtonSound))
            {
                DefineButtonSound defineButtonSound = (DefineButtonSound)object_Renamed;

                // [ed] don't compare button because that would be infinite recursion
                if (equals(defineButtonSound.sound0, this.sound0) && equals(defineButtonSound.info0, this.info0) && equals(defineButtonSound.sound1, this.sound1) && equals(defineButtonSound.info1, this.info1) && equals(defineButtonSound.sound2, this.sound2) && equals(defineButtonSound.info2, this.info2) && equals(defineButtonSound.sound3, this.sound3) && equals(defineButtonSound.info3, this.info3))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
Esempio n. 2
0
		public override void  defineButtonSound(DefineButtonSound tag)
		{
			tags.Add(tag);
		}
		public virtual void  defineButtonSound(DefineButtonSound tag)
		{
		}
		private Tag decodeDefineButtonSound()
		{
			DefineButtonSound t;
			t = new DefineButtonSound();
			int idref = r.readUI16();
			t.button = (DefineButton) dict.getTag(idref);
			if (t.button.sounds != null)
			{
				handler.error("button " + idref + " sound redefined");
			}
			t.button.sounds = t;
			
			idref = r.readUI16();
			if (idref != 0)
			{
				t.sound0 = dict.getTag(idref);
				t.info0 = decodeSoundInfo();
			}
			idref = r.readUI16();
			if (idref != 0)
			{
				t.sound1 = dict.getTag(idref);
				t.info1 = decodeSoundInfo();
			}
			idref = r.readUI16();
			if (idref != 0)
			{
				t.sound2 = dict.getTag(idref);
				t.info2 = decodeSoundInfo();
			}
			idref = r.readUI16();
			if (idref != 0)
			{
				t.sound3 = dict.getTag(idref);
				t.info3 = decodeSoundInfo();
			}
			return t;
		}