/// <summary> /// Determines whether the specified <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance is equal to this instance. /// </summary> /// <param name="other">The <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> is equal to this instance; otherwise, <c>false</c>. /// </returns> public bool Equals(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition other) { // If parameter is null return false (cast to object to prevent recursive loop!) if ((object)other == null) { return(false); } return (this.Breach == other.Breach); }
/// <summary> /// Creates the <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance from the uint value. /// </summary> /// <param name="value">The uint value which represents the <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance.</param> /// <returns>The <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance, represented by the uint value.</returns> public static LogCribAbatisVehicleDefiladeAndInfantryFightingPosition FromUInt32(uint value) { LogCribAbatisVehicleDefiladeAndInfantryFightingPosition ps = new LogCribAbatisVehicleDefiladeAndInfantryFightingPosition(); uint mask0 = 0x30000; byte shift0 = 16; uint newValue0 = value & mask0 >> shift0; ps.Breach = (LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.BreachValue)newValue0; return(ps); }
/// <summary> /// Determines whether the specified <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance is equal to this instance. /// </summary> /// <param name="other">The <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> is equal to this instance; otherwise, <c>false</c>. /// </returns> public bool Equals(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition other) { // If parameter is null return false (cast to object to prevent recursive loop!) if ((object)other == null) { return false; } return this.Breach == other.Breach; }
/// <summary> /// Creates the <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance from the uint value. /// </summary> /// <param name="value">The uint value which represents the <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance.</param> /// <returns>The <see cref="OpenDis.Enumerations.Environment.ObjectState.LogCribAbatisVehicleDefiladeAndInfantryFightingPosition"/> instance, represented by the uint value.</returns> public static LogCribAbatisVehicleDefiladeAndInfantryFightingPosition FromUInt32(uint value) { LogCribAbatisVehicleDefiladeAndInfantryFightingPosition ps = new LogCribAbatisVehicleDefiladeAndInfantryFightingPosition(); uint mask0 = 0x30000; byte shift0 = 16; uint newValue0 = value & mask0 >> shift0; ps.Breach = (LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.BreachValue)newValue0; return ps; }