コード例 #1
0
        public QuestData Translate(ITranslationHelper translation)
        {
            var toTranslate = JObject.FromObject(this);

            return(TranslationUtils.Translate(translation, toTranslate)
                   .ToObject <QuestData>());
        }
コード例 #2
0
ファイル: Content.cs プロジェクト: shekurika/QuestFramework
 public Content Translate(ITranslationHelper translation)
 {
     return(new Content()
     {
         Format = this.Format,
         Quests = this.Quests?.Select(q => q.Translate(translation)).ToList(),
         Offers = this.Offers?.Select(o => TranslationUtils.TranslateOffer(translation, o)).ToList(),
         CustomBoards = this.CustomBoards?.Select(b => TranslationUtils.Translate(translation, b)).ToList(),
         CustomDropBoxes = this.CustomDropBoxes?.Select(b => TranslationUtils.Translate(translation, b)).ToList(),
         Owner = this.Owner,
     });
 }
コード例 #3
0
 public QuestData Translate(ITranslationHelper translation)
 {
     return(TranslationUtils.Translate(translation, this));
 }