A game about forced loneliness, made by TACStudios
1using System.Collections.Generic;
2
3namespace UnityEditor.ShaderGraph
4{
5 [GenerationAPI]
6 internal class TargetActiveBlockContext
7 {
8 public List<BlockFieldDescriptor> activeBlocks { get; private set; }
9 public List<BlockFieldDescriptor> currentBlocks { get; private set; }
10 public PassDescriptor? pass { get; private set; }
11
12 public TargetActiveBlockContext(List<BlockFieldDescriptor> currentBlocks, PassDescriptor? pass)
13 {
14 activeBlocks = new List<BlockFieldDescriptor>();
15 this.currentBlocks = currentBlocks;
16 this.pass = pass;
17 }
18
19 public void AddBlock(BlockFieldDescriptor block, bool conditional = true)
20 {
21 if (conditional == true)
22 {
23 activeBlocks.Add(block);
24 }
25 }
26 }
27}