Esempio n. 1
0
        public ObjectPlacementBlockManualConstructionSettingsView(ObjectPlacementBlockManualConstructionSettings settings)
        {
            _settings = settings;

            VisibilityToggleIndent       = 1;
            SurroundWithBox              = true;
            ToggleVisibilityBeforeRender = true;
            VisibilityToggleLabel        = "Block Construction Settings";
        }
Esempio n. 2
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;
            }
        }
        public static void SendToInterestedListeners(ObjectPlacementBlockManualConstructionSettings blockManualConstructionSettings)
        {
            var message = new ObjectPlacementBlockExcludeCornersWasChangedMessage(blockManualConstructionSettings);

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }
 public ObjectPlacementBlockExcludeCornersWasChangedMessage(ObjectPlacementBlockManualConstructionSettings blockManualConstructionSettings)
     : base(MessageType.ObjectPlacementBlockExcludeCornersWasChanged)
 {
     _blockManualConstructionSettings = blockManualConstructionSettings;
 }