Ejemplo n.º 1
0
        public void OnLogin()
        {
            int  curExp  = Data.Exp;
            int  NeedExp = RewardHelper.EXPNeeded(Data.Level);
            bool LevelUp = curExp >= NeedExp;

            if (LevelUp)
            {
                Data.Exp = 0;
                int NextLevel = Data.Level + 1;
                if (NextLevel < 100)
                {
                    Data.Level    = NextLevel;
                    LevelUpNotify = true;
                }
            }
            RankinngOBJ Rdata = RankingManager.GetPlayer(this);

            if (Rdata != null)
            {
                Deaths         = Rdata.Deaths;
                Kills          = Rdata.Deaths;
                League         = Rdata.League;
                LeaguePoints   = Rdata.LeaguePoints;
                GameCount      = Rdata.GameCount;
                LeaguePosition = Rdata.RankNo <= 100 ? (byte)Rdata.RankNo : (byte)101;
            }
        }
Ejemplo n.º 2
0
        public void OnGameResultRecieved()
        {
            RankinngOBJ Rdata = RankingManager.GetPlayer(this);

            if (Rdata != null)
            {
                Deaths         = Rdata.Deaths;
                Kills          = Rdata.Deaths;
                League         = Rdata.League;
                LeaguePoints   = Rdata.LeaguePoints;
                LeaguePosition = Rdata.RankNo <= 100 ? (byte)Rdata.RankNo : (byte)101;
            }
        }