コード例 #1
0
        internal static Training FromString(string base64String)
        {
            TrainingBase trainingBase = TrainingBase.FromString(base64String, "Training");

            return(new Training((Training.TrainingType)trainingBase.EnumValue)
            {
                Level = trainingBase.Level,
                ShadowCloneCount = trainingBase.ShadowCloneCount,
                CurrentDuration = trainingBase.CurrentDuration
            });
        }
コード例 #2
0
        internal static Fight FromString(string base64String)
        {
            TrainingBase trainingBase = TrainingBase.FromString(base64String, "Fight");

            return(new Fight((Fight.FightType)trainingBase.EnumValue)
            {
                Level = trainingBase.Level,
                ShadowCloneCount = trainingBase.ShadowCloneCount,
                CurrentDuration = trainingBase.CurrentDuration
            });
        }