コード例 #1
0
        public ProceduralTracingCommand(
            IConfigurationHelper configurationHelper,
            IAlgorithmTraceImageGeneration algorithmTraceImageGeneration)
        {
            this.m_ConfigurationHelper = configurationHelper;
            this.m_AlgorithmTraceImageGeneration = algorithmTraceImageGeneration;

            this.IsCommand("trace-generation", "Trace the world configuration into a set of images");
            this.m_ConfigurationHelper.Setup(this, x => this.m_ConfigurationName = x);
        }
コード例 #2
0
ファイル: TraceForm.cs プロジェクト: TreeSeed/Tychaia
        public TraceForm(
            IStorageAccess storageAccess,
            IAlgorithmTraceImageGeneration algorithmTraceImageGeneration,
            FlowElement flowElement,
            ICurrentWorldSeedProvider currentWorldSeedProvider)
        {
            this.m_AlgorithmTraceImageGeneration = algorithmTraceImageGeneration;

            this.InitializeComponent();
            this.m_Layer = storageAccess.ToRuntime(((AlgorithmFlowElement)flowElement).Layer);
            this.m_Layer.SetSeed(currentWorldSeedProvider.Seed);
            this.c_FormZoomSize.Items.Add(new ZoomLevel { Level = 1 });
            this.c_FormZoomSize.Items.Add(new ZoomLevel { Level = 2 });
            this.c_FormZoomSize.SelectedIndex = 0;
        }