protected override void GetDrawers(LayerDefinition[] defs, List <LDtkContentDrawer <LayerDefinition> > drawers) { //iterator is for figuring out which array index we should really be using, since any layer could have any amount of intgrid values LDtkDrawerIntGridValueIterator intGridValueIterator = new LDtkDrawerIntGridValueIterator(); foreach (LayerDefinition def in defs) { LDtkDrawerIntGrid intGridDrawer = new LDtkDrawerIntGrid(def, ArrayProp, intGridValueIterator); drawers.Add(intGridDrawer); } }
public LDtkDrawerIntGrid(LayerDefinition data, SerializedProperty arrayProp, LDtkDrawerIntGridValueIterator intGridValueIterator) : base(data) { _arrayProp = arrayProp; _intGridValueIterator = intGridValueIterator; IntGridValueDrawers = _data.IntGridValues.Select(GetIntGridValueDrawer).ToList(); }
public LDtkDrawerIntGrid(LayerDefinition data, SerializedProperty arrayProp, LDtkDrawerIntGridValueIterator intGridValueIterator) : base(data, arrayProp) { _intGridValueIterator = intGridValueIterator; Drawers = GetDrawers().ToList(); }