EventTypes.cs (3919B)
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 EventTypes 22 { 23 public const string TEVENT_NONE = "None"; 24 public const string TEVENT_PLAYER_ENTERED = "Entered by..."; 25 public const string TEVENT_SPIED = "Spied by..."; 26 public const string TEVENT_THIEVED = "Thieved by..."; 27 public const string TEVENT_DISCOVERED = "Discovered by player"; 28 public const string TEVENT_HOUSE_DISCOVERED = "House Discovered..."; 29 public const string TEVENT_ATTACKED = "Attacked by anybody"; 30 public const string TEVENT_DESTROYED = "Destroyed by anybody"; 31 public const string TEVENT_ANY = "Any Event"; 32 public const string TEVENT_UNITS_DESTROYED = "Destroyed, Units, All..."; 33 public const string TEVENT_BUILDINGS_DESTROYED = "Destroyed, Buildings, All..."; 34 public const string TEVENT_ALL_DESTROYED = "Destroyed, All..."; 35 public const string TEVENT_CREDITS = "Credits exceed (x100)..."; 36 public const string TEVENT_TIME = "Elapsed Time (1/10th min)..."; 37 public const string TEVENT_MISSION_TIMER_EXPIRED = "Mission Timer Expired"; 38 public const string TEVENT_NBUILDINGS_DESTROYED = "Destroyed, Buildings, #..."; 39 public const string TEVENT_NUNITS_DESTROYED = "# Destroyed, Units, #..."; 40 public const string TEVENT_NOFACTORIES = "No Factories left"; 41 public const string TEVENT_EVAC_CIVILIAN = "Civilians Evacuated"; 42 public const string TEVENT_BUILD = "Build Building Type..."; 43 public const string TEVENT_BUILD_UNIT = "Build Unit Type..."; 44 public const string TEVENT_BUILD_INFANTRY = "Build Infantry Type..."; 45 public const string TEVENT_BUILD_AIRCRAFT = "Build Aircraft Type..."; 46 public const string TEVENT_LEAVES_MAP = "Leaves map (team)..."; 47 public const string TEVENT_ENTERS_ZONE = "Zone Entry by..."; 48 public const string TEVENT_CROSS_HORIZONTAL = "Crosses Horizontal Line..."; 49 public const string TEVENT_CROSS_VERTICAL = "Crosses Vertical Line..."; 50 public const string TEVENT_GLOBAL_SET = "Global is set..."; 51 public const string TEVENT_GLOBAL_CLEAR = "Global is clear..."; 52 public const string TEVENT_FAKES_DESTROYED = "Destroyed, Fakes, All..."; 53 public const string TEVENT_LOW_POWER = "Low Power..."; 54 public const string TEVENT_ALL_BRIDGES_DESTROYED = "All bridges destroyed"; 55 public const string TEVENT_BUILDING_EXISTS = "Building exists..."; 56 57 private static readonly string[] Types; 58 59 static EventTypes() 60 { 61 Types = 62 (from field in typeof(EventTypes).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 67 public static IEnumerable<string> GetTypes() 68 { 69 return Types; 70 } 71 } 72 }