EventHelper.cs 942 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. default:
  28. return "没有";
  29. }
  30. }
  31. }