CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

ActionTypes.cs (4140B)


      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 
      9 // The Command & Conquer Map Editor and corresponding source code is distributed 
     10 // in the hope that it will be useful, but with permitted additional restrictions 
     11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 
     12 // distributed with this program. You should have received a copy of the 
     13 // GNU General Public License along with permitted additional restrictions 
     14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
     15 using System.Collections.Generic;
     16 using System.Linq;
     17 using System.Reflection;
     18 
     19 namespace MobiusEditor.RedAlert
     20 {
     21     public static class ActionTypes
     22     {
     23         public const string TACTION_NONE = "None";
     24         public const string TACTION_WIN = "Winner is...";
     25         public const string TACTION_LOSE = "Loser is...";
     26         public const string TACTION_BEGIN_PRODUCTION = "Production Begins";
     27         public const string TACTION_CREATE_TEAM = "Create Team...";
     28         public const string TACTION_DESTROY_TEAM = "Destroy All Teams";
     29         public const string TACTION_ALL_HUNT = "All to Hunt...";
     30         public const string TACTION_REINFORCEMENTS = "Reinforcement (team)...";
     31         public const string TACTION_DZ = "Drop Zone Flare (waypoint)...";
     32         public const string TACTION_FIRE_SALE = "Fire Sale...";
     33         public const string TACTION_PLAY_MOVIE = "Play Movie...";
     34         public const string TACTION_TEXT_TRIGGER = "Text Trigger (ID num)...";
     35         public const string TACTION_DESTROY_TRIGGER = "Destroy Trigger...";
     36         public const string TACTION_AUTOCREATE = "Autocreate Begins...";
     37         public const string TACTION_WINLOSE = "";
     38         public const string TACTION_ALLOWWIN = "Allow Win";
     39         public const string TACTION_REVEAL_ALL = "Reveal all map";
     40         public const string TACTION_REVEAL_SOME = "Reveal around waypoint...";
     41         public const string TACTION_REVEAL_ZONE = "Reveal zone of waypoint...";
     42         public const string TACTION_PLAY_SOUND = "Play sound effect...";
     43         public const string TACTION_PLAY_MUSIC = "Play music theme...";
     44         public const string TACTION_PLAY_SPEECH = "Play speech...";
     45         public const string TACTION_FORCE_TRIGGER = "Force Trigger...";
     46         public const string TACTION_START_TIMER = "Timer Start";
     47         public const string TACTION_STOP_TIMER = "Timer Stop";
     48         public const string TACTION_ADD_TIMER = "Timer Extend (1/10th min)...";
     49         public const string TACTION_SUB_TIMER = "Timer Shorten (1/10th min)...";
     50         public const string TACTION_SET_TIMER = "Timer Set (1/10th min)...";
     51         public const string TACTION_SET_GLOBAL = "Global Set...";
     52         public const string TACTION_CLEAR_GLOBAL = "Global Clear...";
     53         public const string TACTION_BASE_BUILDING = "Auto Base Building...";
     54         public const string TACTION_CREEP_SHADOW = "Grow shroud one 'step'";
     55         public const string TACTION_DESTROY_OBJECT = "Destroy attached building";
     56         public const string TACTION_1_SPECIAL = "Add 1-time special weapon...";
     57         public const string TACTION_FULL_SPECIAL = "Add repeating special weapon...";
     58         public const string TACTION_PREFERRED_TARGET = "Preferred target...";
     59         public const string TACTION_LAUNCH_NUKES = "Launch Nukes";
     60 
     61         private static readonly string[] Types;
     62 
     63         static ActionTypes()
     64         {
     65             Types =
     66                 (from field in typeof(ActionTypes).GetFields(BindingFlags.Static | BindingFlags.Public)
     67                  where field.IsLiteral && !field.IsInitOnly && typeof(string).IsAssignableFrom(field.FieldType)
     68                  select field.GetValue(null) as string).ToArray();
     69         }
     70 
     71         public static IEnumerable<string> GetTypes()
     72         {
     73             return Types;
     74         }
     75     }
     76 }