示例#1
0
        void Bind()
        {    //Domain.Entities.Terminologies.FirstOrSecond.Firstをローカルのプレイヤーを指すように変える
            var hands = HandUseCaseFactory.Create(Domain.Entities.Terminologies.FirstOrSecond.First).GetCurrentHands();

            handText.text = hands.Select(hand => hand.Name).Select(name => HandNameTranslator.Translate(name, LanguageManager.Instance.Translator))
                            .DefaultIfEmpty().Aggregate((previous, next) => previous + next + System.Environment.NewLine);
        }
示例#2
0
        void NotifyHandDifference(HandDifference handDifference)
        {
            var translator = LanguageManager.Instance.Translator;

            foreach (IHand hand in handDifference.IncreasedDifference)
            {
                string handName = HandNameTranslator.Translate(hand.Name, translator);
                string message  = translator.Translate(TranslatableKeys.HandCompleteMessage).Text
                                  .Replace("#HAND_NAME#", handName); //キーワードの置き換えはここでやるべきではない
                logger.Log(message);
            }
            foreach (IHand hand in handDifference.DecreasedDifference)
            {
                string handName = HandNameTranslator.Translate(hand.Name, translator);
                string message  = translator.Translate(TranslatableKeys.HandUncompleteMessage).Text
                                  .Replace("#HAND_NAME#", handName); //キーワードの置き換えはここでやるべきではない
                logger.Log(message);
            }

            notifiedHands = handUseCase.GetCurrentHands().ToArray(); //コピーのためのToArray
        }