private void RespondToMessage(ObjectPlacementPathAutomaticRandomHeightAdjustmentSettingsWereChangedMessage message) { if (message.AutomaticRandomHeightAdjustmentSettings == Settings.ManualConstructionSettings.HeightAdjustmentSettings.AutomaticRandomHeightAdjustmentSettings) { _manualConstructionSession.OnAutomaticRandomHeightAdjustmentSettingsChanged(); } }
public static void SendToInterestedListeners(ObjectPlacementPathAutomaticRandomHeightAdjustmentSettings automaticRandomHeightAdjustmentSettings) { var message = new ObjectPlacementPathAutomaticRandomHeightAdjustmentSettingsWereChangedMessage(automaticRandomHeightAdjustmentSettings); MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message); }