Ejemplo n.º 1
0
        private void PreparePanelsData(CodeGeneratorContext context)
        {
            JoyInfo.PreGenerate();
            foreach (var panel in Panels)
            {
                panel.PreGenerate();
            }

            int Counter = 0;

            JoyInfo.LinkIndex(ref Counter);

            foreach (var panel in Panels)
            {
                panel.LinkIndex(ref Counter);
            }

            context.FieldCounter = Counter;

            var i = 0;

            foreach (var panel in Panels)
            {
                panel.MapVariables(i, context);
                i++;
            }

            foreach (var panel in Panels)
            {
                panel.PrepareChains(context);
            }
        }