示例#1
0
        public void RemovePlayerActionEvaluator(IPlayerActionEvaluator evaluator)
        {
            if (evaluator == null)
            {
                return;
            }
            if (!playerActionEvaluators.Contains(evaluator))
            {
                return;
            }

            playerActionEvaluators.Remove(evaluator);
        }
示例#2
0
        public void RegisterPlayerActionEvaluator(IPlayerActionEvaluator evaluator)
        {
            if (evaluator == null)
            {
                return;
            }
            if (playerActionEvaluators.Contains(evaluator))
            {
                return;
            }

            playerActionEvaluators.Add(evaluator);
        }