Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public LDtkDrawerIntGrid(LayerDefinition data, SerializedProperty arrayProp, LDtkDrawerIntGridValueIterator intGridValueIterator) : base(data)
 {
     _arrayProp            = arrayProp;
     _intGridValueIterator = intGridValueIterator;
     IntGridValueDrawers   = _data.IntGridValues.Select(GetIntGridValueDrawer).ToList();
 }
Exemplo n.º 3
0
 public LDtkDrawerIntGrid(LayerDefinition data, SerializedProperty arrayProp, LDtkDrawerIntGridValueIterator intGridValueIterator) : base(data, arrayProp)
 {
     _intGridValueIterator = intGridValueIterator;
     Drawers = GetDrawers().ToList();
 }