You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
668 B
26 lines
668 B
3 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
[FriendClass(typeof(Gather))]
|
||
|
public static class GatherHelper
|
||
|
{
|
||
|
public static void NotifyResourceAttri(Unit unit,Dictionary<long, ResourceAttri> 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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|