Ejemplo n.º 1
0
        public static VFXExpressionMapper FromBlocks(IEnumerable <VFXBlock> blocks)
        {
            var mapper = new VFXExpressionMapper();

            foreach (var block in blocks.Select((value, index) => new { index, value }))
            {
                mapper.AddExpressions(block.value.parameters, block.index);
            }
            return(mapper);
        }
        public static VFXExpressionMapper FromBlocks(IEnumerable <VFXBlock> blocks)
        {
            var mapper = new VFXExpressionMapper();
            int cpt    = 0;

            foreach (var block in blocks)
            {
                mapper.AddExpressions(block.parameters, cpt++);
            }
            return(mapper);
        }