public bool Contains(string slot) { return(Modules.ContainsKey(slot)); }
public ShipModule GetModule(string name) { return(Modules.ContainsKey(name) ? Modules[name] : null); } // Name is the nice Slot name.
} // Name is the nice Slot name. public ShipModule.EngineeringData GetEngineering(string name) { return(Modules.ContainsKey(name) ? Modules[name].Engineering : null); }
public bool Contains(Type type) { ValidateType(type); return(Modules.ContainsKey(type)); }