コード例 #1
0
        public void SetData(ObjectPlacementBlockManualConstructionSessionData sessionData)
        {
            if (!_isActive)
            {
                _block               = sessionData.Block;
                _blockSegments       = sessionData.BlockSegments;
                _blockExtensionPlane = sessionData.BlockExtensionPlane;

                _startObject = sessionData.StartObject;
                _startObjectHierarchyWorldOrientedBox     = _startObject.GetHierarchyWorldOrientedBox();
                _blockObjectPlacementDataCalculator.Block = _block;

                _manualConstructionSettings = _block.Settings.ManualConstructionSettings;
                _heightAdjustmentSettings   = _manualConstructionSettings.HeightAdjustmentSettings;
                _automaticRandomHeightAdjustmentSettings = _heightAdjustmentSettings.AutomaticRandomHeightAdjustmentSettings;
                _paddingSettings     = _manualConstructionSettings.PaddingSettings;
                _subdivisionSettings = _manualConstructionSettings.SubdivisionSettings;
            }
        }
コード例 #2
0
        public static void SendToInterestedListeners(ObjectPlacementBlockPaddingSettings paddingSettings)
        {
            var message = new ObjectPlacementBlockPaddingSettingsWereChangedMessage(paddingSettings);

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }
 public ObjectPlacementBlockPaddingSettingsView(ObjectPlacementBlockPaddingSettings settings)
 {
     _settings = settings;
 }
コード例 #4
0
 public ObjectPlacementBlockPaddingSettingsWereChangedMessage(ObjectPlacementBlockPaddingSettings paddingSettings)
     : base(MessageType.ObjectPlacementBlockPaddingSettingsWereChanged)
 {
     _paddingSettings = paddingSettings;
 }