ActionTypes.cs 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 ActionTypes
  20. {
  21. public const string TACTION_NONE = "None";
  22. public const string TACTION_WIN = "Winner is...";
  23. public const string TACTION_LOSE = "Loser is...";
  24. public const string TACTION_BEGIN_PRODUCTION = "Production Begins";
  25. public const string TACTION_CREATE_TEAM = "Create Team...";
  26. public const string TACTION_DESTROY_TEAM = "Destroy All Teams";
  27. public const string TACTION_ALL_HUNT = "All to Hunt...";
  28. public const string TACTION_REINFORCEMENTS = "Reinforcement (team)...";
  29. public const string TACTION_DZ = "Drop Zone Flare (waypoint)...";
  30. public const string TACTION_FIRE_SALE = "Fire Sale...";
  31. public const string TACTION_PLAY_MOVIE = "Play Movie...";
  32. public const string TACTION_TEXT_TRIGGER = "Text Trigger (ID num)...";
  33. public const string TACTION_DESTROY_TRIGGER = "Destroy Trigger...";
  34. public const string TACTION_AUTOCREATE = "Autocreate Begins...";
  35. public const string TACTION_WINLOSE = "";
  36. public const string TACTION_ALLOWWIN = "Allow Win";
  37. public const string TACTION_REVEAL_ALL = "Reveal all map";
  38. public const string TACTION_REVEAL_SOME = "Reveal around waypoint...";
  39. public const string TACTION_REVEAL_ZONE = "Reveal zone of waypoint...";
  40. public const string TACTION_PLAY_SOUND = "Play sound effect...";
  41. public const string TACTION_PLAY_MUSIC = "Play music theme...";
  42. public const string TACTION_PLAY_SPEECH = "Play speech...";
  43. public const string TACTION_FORCE_TRIGGER = "Force Trigger...";
  44. public const string TACTION_START_TIMER = "Timer Start";
  45. public const string TACTION_STOP_TIMER = "Timer Stop";
  46. public const string TACTION_ADD_TIMER = "Timer Extend (1/10th min)...";
  47. public const string TACTION_SUB_TIMER = "Timer Shorten (1/10th min)...";
  48. public const string TACTION_SET_TIMER = "Timer Set (1/10th min)...";
  49. public const string TACTION_SET_GLOBAL = "Global Set...";
  50. public const string TACTION_CLEAR_GLOBAL = "Global Clear...";
  51. public const string TACTION_BASE_BUILDING = "Auto Base Building...";
  52. public const string TACTION_CREEP_SHADOW = "Grow shroud one 'step'";
  53. public const string TACTION_DESTROY_OBJECT = "Destroy attached building";
  54. public const string TACTION_1_SPECIAL = "Add 1-time special weapon...";
  55. public const string TACTION_FULL_SPECIAL = "Add repeating special weapon...";
  56. public const string TACTION_PREFERRED_TARGET = "Preferred target...";
  57. public const string TACTION_LAUNCH_NUKES = "Launch Nukes";
  58. private static readonly string[] Types;
  59. static ActionTypes()
  60. {
  61. Types =
  62. (from field in typeof(ActionTypes).GetFields(BindingFlags.Static | BindingFlags.Public)
  63. where field.IsLiteral && !field.IsInitOnly && typeof(string).IsAssignableFrom(field.FieldType)
  64. select field.GetValue(null) as string).ToArray();
  65. }
  66. public static IEnumerable<string> GetTypes()
  67. {
  68. return Types;
  69. }
  70. }
  71. }