public static void UpdateLevel(GCPushLevel lev) { var charInfo = ObjectManager.objectManager.GetMyAttr(); if (charInfo != null) { charInfo.ChangeLevel(lev.Level); } }
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); }
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); }