Esempio n. 1
0
        public static StarProgress GetLevelStar(int starNumber, string[] data, LevelEvents.EventTrigger[] events)
        {
            var progress = new StarProgress()
            {
                Number = starNumber
            };

            if (data != null)
            {
                progress.Limit       = GetStarGameLimit(data);
                progress.Restriction = GetStarRestriction(data);
            }

            if (events != null)
            {
                progress.Events = EnemyEventsFactory.GetLevelEvents(events);
            }

            return(progress);
        }
Esempio n. 2
0
 public StarProgressWrapper(StarProgress starProgress)
 {
     this.starProgress = starProgress;
     // TODO: Test what happens with this! It could be interesting!
     //maxDisplayStarField.SetValue(starProgress, 9);
 }
Esempio n. 3
0
 public static StarProgressWrapper Wrap(StarProgress starProgress) => new StarProgressWrapper
 {
     StarProgress = starProgress
 };