/// <summary>
        /// Determines whether the specified <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> instance is equal to this instance.
        /// </summary>
        /// <param name="other">The <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> instance to compare with this instance.</param>
        /// <returns>
        ///     <c>true</c> if the specified <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(SurfacePlatformAppearance 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.TrailingEffects == other.TrailingEffects &&
                 this.RunningLights == other.RunningLights &&
                 this.Flaming == other.Flaming &&
                 this.FrozenStatus == other.FrozenStatus &&
                 this.PowerPlantStatus == other.PowerPlantStatus &&
                 this.State == other.State &&
                 this.SpotLights == other.SpotLights &&
                 this.InteriorLights == other.InteriorLights);
        }
        /// <summary>
        /// Determines whether the specified <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> instance is equal to this instance.
        /// </summary>
        /// <param name="other">The <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> instance to compare with this instance.</param>
        /// <returns>
        /// 	<c>true</c> if the specified <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(SurfacePlatformAppearance 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.TrailingEffects == other.TrailingEffects &&
                this.RunningLights == other.RunningLights &&
                this.Flaming == other.Flaming &&
                this.FrozenStatus == other.FrozenStatus &&
                this.PowerPlantStatus == other.PowerPlantStatus &&
                this.State == other.State &&
                this.SpotLights == other.SpotLights &&
                this.InteriorLights == other.InteriorLights;
        }
        /// <summary>
        /// Creates the <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> instance from the uint value.
        /// </summary>
        /// <param name="value">The uint value which represents the <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> instance.</param>
        /// <returns>The <see cref="OpenDis.Enumerations.EntityState.Appearance.SurfacePlatformAppearance"/> instance, represented by the uint value.</returns>
        public static SurfacePlatformAppearance FromUInt32(uint value)
        {
            SurfacePlatformAppearance ps = new SurfacePlatformAppearance();

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

            ps.PaintScheme = (SurfacePlatformAppearance.PaintSchemeValue)newValue0;

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

            ps.Mobility = (SurfacePlatformAppearance.MobilityValue)newValue1;

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

            ps.Damage = (SurfacePlatformAppearance.DamageValue)newValue3;

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

            ps.Smoke = (SurfacePlatformAppearance.SmokeValue)newValue4;

            uint mask5     = 0x0180;
            byte shift5    = 7;
            uint newValue5 = value & mask5 >> shift5;

            ps.TrailingEffects = (SurfacePlatformAppearance.TrailingEffectsValue)newValue5;

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

            ps.RunningLights = (SurfacePlatformAppearance.RunningLightsValue)newValue7;

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

            ps.Flaming = (SurfacePlatformAppearance.FlamingValue)newValue9;

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

            ps.FrozenStatus = (SurfacePlatformAppearance.FrozenStatusValue)newValue11;

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

            ps.PowerPlantStatus = (SurfacePlatformAppearance.PowerPlantStatusValue)newValue12;

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

            ps.State = (SurfacePlatformAppearance.StateValue)newValue13;

            uint mask15     = 0x10000000;
            byte shift15    = 28;
            uint newValue15 = value & mask15 >> shift15;

            ps.SpotLights = (SurfacePlatformAppearance.SpotLightsValue)newValue15;

            uint mask16     = 0x20000000;
            byte shift16    = 29;
            uint newValue16 = value & mask16 >> shift16;

            ps.InteriorLights = (SurfacePlatformAppearance.InteriorLightsValue)newValue16;

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

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

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

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

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

            uint mask5 = 0x0180;
            byte shift5 = 7;
            uint newValue5 = value & mask5 >> shift5;
            ps.TrailingEffects = (SurfacePlatformAppearance.TrailingEffectsValue)newValue5;

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

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

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

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

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

            uint mask15 = 0x10000000;
            byte shift15 = 28;
            uint newValue15 = value & mask15 >> shift15;
            ps.SpotLights = (SurfacePlatformAppearance.SpotLightsValue)newValue15;

            uint mask16 = 0x20000000;
            byte shift16 = 29;
            uint newValue16 = value & mask16 >> shift16;
            ps.InteriorLights = (SurfacePlatformAppearance.InteriorLightsValue)newValue16;

            return ps;
        }