private void runHandler(ProductionIndex productionIndex, GOLD.Reduction reduction) { ProductionHandler handler = m_Handlers[(int)productionIndex]; if (handler != null) { handler(reduction); } }
// Adds a user defined producttion handler protected void AddProductionHandler(ProductionIndex productionIndex, ProductionHandler productionHandler) { m_Handlers[(int)productionIndex] += productionHandler; }