Example #1
0
        public override void Apply(object obj)
        {
            base.Apply(obj);

            m_healthPrivateFieldAccessor.SetValue(obj, Health);

            foreach (var equipmentMutable in EquipmentMutableInformation)
            {
                PlaneEquipment equipment = ((IHaveEquipment <PlaneEquipment>)obj).AllEquipment.Single(e => e.Id == equipmentMutable.Id);

                equipmentMutable.Apply(equipment);
            }
        }
Example #2
0
 public override void Apply(object obj)
 {
     m_rotationPrivateFieldAccessor.SetValue(obj, Rotation);
     m_rotationVelocityPrivateFieldAccessor.SetValue(obj, RotationVelocity);
     m_positionPrivateFieldAccessor.SetValue(obj, Position);
     m_velocityPrivateFieldAccessor.SetValue(obj, Velocity);
 }