EventHelper.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Linq;
  3. using Core.Language;
  4. using Excel2Json;
  5. using Fort23.UTool;
  6. public static class EventHelper
  7. {
  8. public static string GetTaskMessage(AccountFileInfo.EventConditionData eventConditionData)
  9. {
  10. string result = String.Empty;
  11. EventConditionConfig eventCondition = ConfigComponent.Instance.Get<EventConditionConfig>(eventConditionData.eventCondition);
  12. result = LanguageManager.Instance.Text(eventCondition.message, eventConditionData.fishCount, eventCondition.finishCount);
  13. return result;
  14. }
  15. public static string GetEventType(int type)
  16. {
  17. switch (type)
  18. {
  19. case 1:
  20. return "主线";
  21. case 2:
  22. return "支线";
  23. case 3:
  24. return "通用";
  25. case 4:
  26. return "地图通用";
  27. case 5:
  28. return "道友";
  29. case 6:
  30. return "任务";
  31. case 7:
  32. return "资源";
  33. default:
  34. return "没有";
  35. }
  36. }
  37. }