예제 #1
0
        public static void UpdateLevel(GCPushLevel lev)
        {
            var charInfo = ObjectManager.objectManager.GetMyAttr();

            if (charInfo != null)
            {
                charInfo.ChangeLevel(lev.Level);
            }
        }
예제 #2
0
        public static void SetLevel(int v)
        {
            var pinfo = ServerData.Instance.playerInfo;

            pinfo.Roles.Level = v;

            var push = GCPushLevel.CreateBuilder();

            push.Level = pinfo.Roles.Level;
            ServerBundle.SendImmediatePush(push);
        }
예제 #3
0
        public static void AddLevel(int add)
        {
            Log.Net("AddLevel " + add);
            var pinfo = ServerData.Instance.playerInfo;

            pinfo.Roles.Level += add;
            AddSkillPoint(1);

            var push = GCPushLevel.CreateBuilder();

            push.Level = pinfo.Roles.Level;
            ServerBundle.SendImmediatePush(push);
        }