예제 #1
0
        /// <summary>
        /// 默认前4种技能占用 1 2 3 4 的槽
        /// 当有技能设置了槽 则使用该技能占用 特定槽
        /// </summary>
        static void PushSkillShortcutsInfo()
        {
            var au    = GCPushShortcutsInfo.CreateBuilder();
            var pinfo = ServerData.Instance.playerInfo;

            if (pinfo.HasSkill)
            {
                var defaultSlot = GetShortCutsInfo();
                var ind         = 0;
                foreach (var sk in defaultSlot)
                {
                    if (sk != 0)
                    {
                        var sh = ShortCutInfo.CreateBuilder();
                        sh.Index  = ind;
                        sh.BaseId = sk;
                        au.AddShortCutInfo(sh);
                    }
                    ind++;
                }
            }
            ServerBundle.SendImmediatePush(au);
        }
예제 #2
0
 public static void UpdateShortcutsInfo(GCPushShortcutsInfo inpb)
 {
     SkillDataController.skillDataController.UpdateShortcutsInfo(inpb.ShortCutInfoList);
 }