/// <summary>
        /// Determines whether the specified <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance is equal to this instance.
        /// </summary>
        /// <param name="other">The <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance to compare with this instance.</param>
        /// <returns>
        ///     <c>true</c> if the specified <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(SubsurfacePlatformAppearance other)
        {
            // If parameter is null return false (cast to object to prevent recursive loop!)
            if ((object)other == null)
            {
                return(false);
            }

            return
                (this.PaintScheme == other.PaintScheme &&
                 this.Mobility == other.Mobility &&
                 this.Damage == other.Damage &&
                 this.Smoke == other.Smoke &&
                 this.Hatch == other.Hatch &&
                 this.RunningLights == other.RunningLights &&
                 this.Flaming == other.Flaming &&
                 this.FrozenStatus == other.FrozenStatus &&
                 this.PowerPlantStatus == other.PowerPlantStatus &&
                 this.State == other.State);
        }
        /// <summary>
        /// Determines whether the specified <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance is equal to this instance.
        /// </summary>
        /// <param name="other">The <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance to compare with this instance.</param>
        /// <returns>
        /// 	<c>true</c> if the specified <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(SubsurfacePlatformAppearance other)
        {
            // If parameter is null return false (cast to object to prevent recursive loop!)
            if ((object)other == null)
            {
                return false;
            }

            return
                this.PaintScheme == other.PaintScheme &&
                this.Mobility == other.Mobility &&
                this.Damage == other.Damage &&
                this.Smoke == other.Smoke &&
                this.Hatch == other.Hatch &&
                this.RunningLights == other.RunningLights &&
                this.Flaming == other.Flaming &&
                this.FrozenStatus == other.FrozenStatus &&
                this.PowerPlantStatus == other.PowerPlantStatus &&
                this.State == other.State;
        }
        /// <summary>
        /// Creates the <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance from the uint value.
        /// </summary>
        /// <param name="value">The uint value which represents the <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance.</param>
        /// <returns>The <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance, represented by the uint value.</returns>
        public static SubsurfacePlatformAppearance FromUInt32(uint value)
        {
            SubsurfacePlatformAppearance ps = new SubsurfacePlatformAppearance();

            uint mask0     = 0x0001;
            byte shift0    = 0;
            uint newValue0 = value & mask0 >> shift0;

            ps.PaintScheme = (SubsurfacePlatformAppearance.PaintSchemeValue)newValue0;

            uint mask1     = 0x0002;
            byte shift1    = 1;
            uint newValue1 = value & mask1 >> shift1;

            ps.Mobility = (SubsurfacePlatformAppearance.MobilityValue)newValue1;

            uint mask3     = 0x0018;
            byte shift3    = 3;
            uint newValue3 = value & mask3 >> shift3;

            ps.Damage = (SubsurfacePlatformAppearance.DamageValue)newValue3;

            uint mask4     = 0x0060;
            byte shift4    = 5;
            uint newValue4 = value & mask4 >> shift4;

            ps.Smoke = (SubsurfacePlatformAppearance.SmokeValue)newValue4;

            uint mask6     = 0x0e00;
            byte shift6    = 9;
            uint newValue6 = value & mask6 >> shift6;

            ps.Hatch = (SubsurfacePlatformAppearance.HatchValue)newValue6;

            uint mask7     = 0x1000;
            byte shift7    = 12;
            uint newValue7 = value & mask7 >> shift7;

            ps.RunningLights = (SubsurfacePlatformAppearance.RunningLightsValue)newValue7;

            uint mask9     = 0x8000;
            byte shift9    = 15;
            uint newValue9 = value & mask9 >> shift9;

            ps.Flaming = (SubsurfacePlatformAppearance.FlamingValue)newValue9;

            uint mask11     = 0x200000;
            byte shift11    = 21;
            uint newValue11 = value & mask11 >> shift11;

            ps.FrozenStatus = (SubsurfacePlatformAppearance.FrozenStatusValue)newValue11;

            uint mask12     = 0x400000;
            byte shift12    = 22;
            uint newValue12 = value & mask12 >> shift12;

            ps.PowerPlantStatus = (SubsurfacePlatformAppearance.PowerPlantStatusValue)newValue12;

            uint mask13     = 0x800000;
            byte shift13    = 23;
            uint newValue13 = value & mask13 >> shift13;

            ps.State = (SubsurfacePlatformAppearance.StateValue)newValue13;

            return(ps);
        }
        /// <summary>
        /// Creates the <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance from the uint value.
        /// </summary>
        /// <param name="value">The uint value which represents the <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance.</param>
        /// <returns>The <see cref="OpenDis.Enumerations.EntityState.Appearance.SubsurfacePlatformAppearance"/> instance, represented by the uint value.</returns>
        public static SubsurfacePlatformAppearance FromUInt32(uint value)
        {
            SubsurfacePlatformAppearance ps = new SubsurfacePlatformAppearance();

            uint mask0 = 0x0001;
            byte shift0 = 0;
            uint newValue0 = value & mask0 >> shift0;
            ps.PaintScheme = (SubsurfacePlatformAppearance.PaintSchemeValue)newValue0;

            uint mask1 = 0x0002;
            byte shift1 = 1;
            uint newValue1 = value & mask1 >> shift1;
            ps.Mobility = (SubsurfacePlatformAppearance.MobilityValue)newValue1;

            uint mask3 = 0x0018;
            byte shift3 = 3;
            uint newValue3 = value & mask3 >> shift3;
            ps.Damage = (SubsurfacePlatformAppearance.DamageValue)newValue3;

            uint mask4 = 0x0060;
            byte shift4 = 5;
            uint newValue4 = value & mask4 >> shift4;
            ps.Smoke = (SubsurfacePlatformAppearance.SmokeValue)newValue4;

            uint mask6 = 0x0e00;
            byte shift6 = 9;
            uint newValue6 = value & mask6 >> shift6;
            ps.Hatch = (SubsurfacePlatformAppearance.HatchValue)newValue6;

            uint mask7 = 0x1000;
            byte shift7 = 12;
            uint newValue7 = value & mask7 >> shift7;
            ps.RunningLights = (SubsurfacePlatformAppearance.RunningLightsValue)newValue7;

            uint mask9 = 0x8000;
            byte shift9 = 15;
            uint newValue9 = value & mask9 >> shift9;
            ps.Flaming = (SubsurfacePlatformAppearance.FlamingValue)newValue9;

            uint mask11 = 0x200000;
            byte shift11 = 21;
            uint newValue11 = value & mask11 >> shift11;
            ps.FrozenStatus = (SubsurfacePlatformAppearance.FrozenStatusValue)newValue11;

            uint mask12 = 0x400000;
            byte shift12 = 22;
            uint newValue12 = value & mask12 >> shift12;
            ps.PowerPlantStatus = (SubsurfacePlatformAppearance.PowerPlantStatusValue)newValue12;

            uint mask13 = 0x800000;
            byte shift13 = 23;
            uint newValue13 = value & mask13 >> shift13;
            ps.State = (SubsurfacePlatformAppearance.StateValue)newValue13;

            return ps;
        }