public static EMPReaction getEMPReaction(string def) { EMPReaction get = null; reactionMap.TryGetValue(def, out get); if (get != null) { return(get); } foreach (var entry in reactionMap) { EMPReaction reaction = entry.Value; if (def.Contains(reaction.BlockType)) { reactionMap.Add(def, reaction); return(reaction); } } reactionMap.Add(def, defaultReaction); return(defaultReaction); }
public SavedTimedBlock(IMyTerminalBlock block, EMPReaction er) : this(block, er.MaxDowntimeIfRemote) { }