using System; using System.Collections.Generic; namespace ET { [FriendClass(typeof(Gather))] public static class GatherHelper { public static void NotifyResourceAttri(Unit unit,Dictionary resAttriDic) { var msg = new M2C_NotifyResourceAttri(); foreach (var pair in resAttriDic) { msg.IdList.Add(pair.Key); msg.Ks.Add(pair.Value.ConfigId); msg.Vs.Add(pair.Value.GatherAmount); } if (msg.IdList.Count > 0) { MessageHelper.SendToClient(unit, msg); } } } }