Пример #1
0
        public void UpdateStage(FlourMillStage stage)
        {
            List <AddonComponent> components = this.Components;

            for (int i = 0; i < components.Count; ++i)
            {
                AddonComponent component = components[i] as AddonComponent;

                if (component == null)
                {
                    continue;
                }

                int[] itemTable = FindItemTable(component.ItemID);

                if (itemTable != null)
                {
                    component.ItemID = itemTable[(int)stage];
                }
            }
        }
Пример #2
0
        public void UpdateStage(FlourMillStage stage)
        {
            ArrayList components = this.AddonComponents;

            int[][] stageTable = m_StageTable;

            for (int i = 0; i < components.Count; ++i)
            {
                AddonComponent component = (AddonComponent)components[i];

                if (component == null)
                {
                    continue;
                }

                int[] itemTable = FindItemTable(component.ItemID);

                if (itemTable != null)
                {
                    component.ItemID = itemTable[(int)stage];
                }
            }
        }
Пример #3
0
        public void UpdateStage( FlourMillStage stage )
        {
            List<AddonComponent> components = this.Components;

            int[][] stageTable = m_StageTable;

            for ( int i = 0; i < components.Count; ++i )
            {
                AddonComponent component = components[i] as AddonComponent;

                if ( component == null )
                    continue;

                int[] itemTable = FindItemTable( component.ItemID );

                if ( itemTable != null )
                    component.ItemID = itemTable[(int)stage];
            }
        }