| | |
| | |
|
| | | using System.Collections.Generic;
|
| | | using LitJson;
|
| | |
|
| | | public class GuildBossManager : GameSystemManager<GuildBossManager>
|
| | | {
|
| | |
|
| | | public Dictionary<int, HA513_tagMCFamilyActionInfo.tagMCFamilyAction> bossActions = new Dictionary<int, HA513_tagMCFamilyActionInfo.tagMCFamilyAction>();
|
| | |
|
| | |
|
| | |
|
| | | //配置
|
| | | public int initSuperHitRate;
|
| | | public int[] bzAddAttrs;
|
| | |
| | | // "info":{"LV":106,"Job":1,"Name":"主公3016219","FacePic":0,"FightPower":1831995,"RealmLV":12,"ServerID":86,"TitleID":0,"Face":0},
|
| | | public HA513_tagMCFamilyActionInfo.tagMCFamilyAction GetGuildBossAction()
|
| | | {
|
| | | GuildManager.Instance.TryGetFamilyActions(GuildManager.GuildBossActionType, out var familyActions);
|
| | | if (familyActions == null)
|
| | | {
|
| | | return null;
|
| | | }
|
| | | foreach (var action in familyActions)
|
| | | {
|
| | | if (action.Value1 == 1)
|
| | | {
|
| | | return action;
|
| | | }
|
| | | }
|
| | |
|
| | | return null;
|
| | | }
|
| | |
|
| | | // 获取公会中的伤害记录做排名
|
| | | public bool UpdateGuildBossInfo(HA513_tagMCFamilyActionInfo vNetData)
|
| | | {
|
| | | if (vNetData.ActionType != GuildManager.GuildBossActionType)
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
|
| | | for (int i = 0; i < vNetData.Count; i++)
|
| | | {
|
| | | bossActions[(int)vNetData.FamilyActionList[i].Value1] = vNetData.FamilyActionList[i];
|
| | | }
|
| | |
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public class PlayerGuildBossAtkInfo
|
| | | {
|
| | | public int playerID;
|
| | | public int atkTime;
|
| | | public int bzTime;
|
| | | public int atkCount;
|
| | | public long totalHurtValue;
|
| | | public int boxCnt;
|
| | |
|
| | | }
|
| | |
|