Ejemplo n.º 1
0
    void OnGetWorldEvent(NetMsgDef msg)
    {
        TSCGetWorldEvent res          = TSCGetWorldEvent.ParseFrom(msg.mBtsData);
        EventPackage     eventPackage = FacadeSingleton.Instance.RetrieveData(ConstVal.Package_Event) as EventPackage;

        eventPackage.SetHistoryEvent(res);
        InitView();
        RefreshItemInfo();
    }
Ejemplo n.º 2
0
 public void SetHistoryEvent(TSCGetWorldEvent res)
 {
     historyEventList.Clear();
     for (int i = 0; i < res.WorldEventsCount; i++)
     {
         WorldEvent      info    = res.GetWorldEvents(i);
         NWorldEventInfo newInfo = new NWorldEventInfo();
         newInfo.configID   = info.ConfigId;
         newInfo.happenTime = info.Time;
         newInfo.isHappen   = info.Type == 1 ? true : false;
         historyEventList.Add(newInfo);
     }
 }