コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }