/// <summary cref="IEncodeable.IsEqual(IEncodeable)" />
        public override bool IsEqual(IEncodeable encodeable)
        {
            if (Object.ReferenceEquals(this, encodeable))
            {
                return(true);
            }

            TruckType value = encodeable as TruckType;

            if (value == null)
            {
                return(false);
            }

            if (!base.IsEqual(encodeable))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_cargoCapacity, value.m_cargoCapacity))
            {
                return(false);
            }

            return(true);
        }
        /// <summary cref="ICloneable.Clone" />
        public override object Clone()
        {
            TruckType clone = (TruckType)base.Clone();

            clone.m_cargoCapacity = (uint)Utils.Clone(this.m_cargoCapacity);

            return(clone);
        }
Example #3
0
        /// <summary cref="Object.MemberwiseClone" />
        public new object MemberwiseClone()
        {
            TruckType clone = (TruckType)base.MemberwiseClone();

            clone.m_cargoCapacity = (uint)Utils.Clone(this.m_cargoCapacity);

            return(clone);
        }