public void OnEmployeeUnassigned(object sender, AssignmentComponent.AssignmentEventArgs e) { if (Assignment.IsAssigned(e.Recipe)) { return; } this.Log($"Production will start after last unassignment for {e.Recipe}"); StopProduction(e.Recipe); }
public void OnEmployeeAssigned(object sender, AssignmentComponent.AssignmentEventArgs e) { if (Registry.IsProducing(e.Recipe)) { return; } this.Log($"Production will start after first assignment for {e.Recipe}"); StartProduction(e.Recipe); }