/// <summary> /// 填充战盟消息数据 /// </summary> /// <param name="info"></param> /// <returns></returns> public bool FillBattleInfo(MsgUnionBattleInfo info, int allianceId) { var dbData = UnionBattleManager.mDBData; if (dbData != null && info != null) { info.EnrollStartTime = UnionBattleManager.StartEnrollTime.ToBinary(); info.EnrollEndTime = UnionBattleManager.EndEnrollTime.ToBinary(); if (allianceId == -1 || !dbData.EnrollList.Contains(allianceId)) { info.IsEnroll = 0; } else { info.IsEnroll = 1; } return(true); } return(false); }
public static bool FillBattleInfo(MsgUnionBattleInfo info, int allianceId) { return(mImpl.FillBattleInfo(info, allianceId)); }