EventTypes.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // The Command & Conquer Map Editor and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // The Command & Conquer Map Editor and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. using System.Collections.Generic;
  15. using System.Linq;
  16. using System.Reflection;
  17. namespace MobiusEditor.RedAlert
  18. {
  19. public static class EventTypes
  20. {
  21. public const string TEVENT_NONE = "None";
  22. public const string TEVENT_PLAYER_ENTERED = "Entered by...";
  23. public const string TEVENT_SPIED = "Spied by...";
  24. public const string TEVENT_THIEVED = "Thieved by...";
  25. public const string TEVENT_DISCOVERED = "Discovered by player";
  26. public const string TEVENT_HOUSE_DISCOVERED = "House Discovered...";
  27. public const string TEVENT_ATTACKED = "Attacked by anybody";
  28. public const string TEVENT_DESTROYED = "Destroyed by anybody";
  29. public const string TEVENT_ANY = "Any Event";
  30. public const string TEVENT_UNITS_DESTROYED = "Destroyed, Units, All...";
  31. public const string TEVENT_BUILDINGS_DESTROYED = "Destroyed, Buildings, All...";
  32. public const string TEVENT_ALL_DESTROYED = "Destroyed, All...";
  33. public const string TEVENT_CREDITS = "Credits exceed (x100)...";
  34. public const string TEVENT_TIME = "Elapsed Time (1/10th min)...";
  35. public const string TEVENT_MISSION_TIMER_EXPIRED = "Mission Timer Expired";
  36. public const string TEVENT_NBUILDINGS_DESTROYED = "Destroyed, Buildings, #...";
  37. public const string TEVENT_NUNITS_DESTROYED = "# Destroyed, Units, #...";
  38. public const string TEVENT_NOFACTORIES = "No Factories left";
  39. public const string TEVENT_EVAC_CIVILIAN = "Civilians Evacuated";
  40. public const string TEVENT_BUILD = "Build Building Type...";
  41. public const string TEVENT_BUILD_UNIT = "Build Unit Type...";
  42. public const string TEVENT_BUILD_INFANTRY = "Build Infantry Type...";
  43. public const string TEVENT_BUILD_AIRCRAFT = "Build Aircraft Type...";
  44. public const string TEVENT_LEAVES_MAP = "Leaves map (team)...";
  45. public const string TEVENT_ENTERS_ZONE = "Zone Entry by...";
  46. public const string TEVENT_CROSS_HORIZONTAL = "Crosses Horizontal Line...";
  47. public const string TEVENT_CROSS_VERTICAL = "Crosses Vertical Line...";
  48. public const string TEVENT_GLOBAL_SET = "Global is set...";
  49. public const string TEVENT_GLOBAL_CLEAR = "Global is clear...";
  50. public const string TEVENT_FAKES_DESTROYED = "Destroyed, Fakes, All...";
  51. public const string TEVENT_LOW_POWER = "Low Power...";
  52. public const string TEVENT_ALL_BRIDGES_DESTROYED = "All bridges destroyed";
  53. public const string TEVENT_BUILDING_EXISTS = "Building exists...";
  54. private static readonly string[] Types;
  55. static EventTypes()
  56. {
  57. Types =
  58. (from field in typeof(EventTypes).GetFields(BindingFlags.Static | BindingFlags.Public)
  59. where field.IsLiteral && !field.IsInitOnly && typeof(string).IsAssignableFrom(field.FieldType)
  60. select field.GetValue(null) as string).ToArray();
  61. }
  62. public static IEnumerable<string> GetTypes()
  63. {
  64. return Types;
  65. }
  66. }
  67. }