Exemple #1
0
        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);
        }
Exemple #2
0
 public SavedTimedBlock(IMyTerminalBlock block, EMPReaction er) : this(block, er.MaxDowntimeIfRemote)
 {
 }