1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Linq;
- using Core.Language;
- using Excel2Json;
- using Fort23.UTool;
- public static class EventHelper
- {
- public static string GetTaskMessage(AccountFileInfo.EventConditionData eventConditionData)
- {
- string result = String.Empty;
- EventConditionConfig eventCondition = ConfigComponent.Instance.Get<EventConditionConfig>(eventConditionData.eventCondition);
- result = LanguageManager.Instance.Text(eventCondition.message, eventConditionData.fishCount, eventCondition.finishCount);
- return result;
- }
- public static string GetEventType(int type)
- {
- switch (type)
- {
- case 1:
- return "主线";
- case 2:
- return "支线";
- case 3:
- return "通用";
- case 4:
- return "地图通用";
- default:
- return "没有";
- }
- }
- }
|