Пример #1
0
        public static SubProfile GetAppropriateSubProfile(HBProfile profile)
        {
            SubProfile sub = null;

            var myLevel = Manager.LocalPlayer.Level;
            foreach (var s in profile.SubProfile)
            {
                if (s.MinLevel <= myLevel && s.MaxLevel >= myLevel)
                    sub = s;
            }

            return sub;
        }
Пример #2
0
        public static SubProfile GetAppropriateSubProfile(HBProfile profile)
        {
            SubProfile sub = null;

            var myLevel = Manager.LocalPlayer.Level;

            foreach (var s in profile.SubProfile)
            {
                if (s.MinLevel <= myLevel && s.MaxLevel >= myLevel)
                {
                    sub = s;
                }
            }

            return(sub);
        }