12345678910111213141516171819202122232425262728293031323334 |
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActArtifactElementListPushCtrl : MsgController<ActArtifactElementListPush>
- {
- protected override void OnProcess(ActArtifactElementListPush message, object context)
- {
- if (message.elementList != null)
- {
- // 已解锁的元素数据
- var elementInfoMap = ArtifactData.Instance.UnlockElementMap;
- foreach (var item in message.elementList)
- {
- var elementInfo = new ElementInfoParam()
- {
- elementId = item.elementId,
- level = item.level,
- state = item.status
- };
- if (elementInfoMap.ContainsKey(item.elementId))
- {
- elementInfoMap[item.elementId] = elementInfo;
- }
- else
- {
- elementInfoMap.Add(item.elementId, elementInfo);
- }
- }
- }
- }
- }
- }
|