예제 #1
0
        private void runHandler(ProductionIndex productionIndex, GOLD.Reduction reduction)
        {
            ProductionHandler handler = m_Handlers[(int)productionIndex];

            if (handler != null)
            {
                handler(reduction);
            }
        }
예제 #2
0
 // Adds a user defined producttion handler
 protected void AddProductionHandler(ProductionIndex productionIndex, ProductionHandler productionHandler)
 {
     m_Handlers[(int)productionIndex] += productionHandler;
 }