private void addResource(string name) { if (allowedStockResources.ContainsKey(name)) { return; } if (!EVATransfer_Startup.loadedResources.ContainsKey(name)) { return; } TransferableResource r = EVATransfer_Startup.loadedResources[name]; if (r == null) { return; } TransferGroup t = new TransferGroup(r); if (t == null) { return; } allowedStockResources.Add(name, t); }
private static void initializeResources() { if (PartResourceLibrary.Instance == null) { return; } foreach (PartResourceDefinition p in PartResourceLibrary.Instance.resourceDefinitions) { if (loadedResources.ContainsKey(p.name)) { continue; } if (p == null) { continue; } TransferableResource r = new TransferableResource(p); if (r == null) { continue; } loadedResources.Add(p.name, r); } }
public LFLOXTransferGroup(TransferableResource lf, TransferableResource lox, float LOXLFRatio) { resource = lf; name = resource.Name; loxResource = lox; loxName = loxResource.Name; ratio = LOXLFRatio; }
public LFLOXTransferGroup(TransferableResource lf, TransferableResource lox, float LOXLFRatio) { resource = lf; name = resource.Name; loxResource = lox; loxName = loxResource.Name; ratio = LOXLFRatio; }
public TransferGroup(TransferableResource r) { resource = r; name = resource.Name; }
private static void initializeResources() { if (PartResourceLibrary.Instance == null) return; foreach (PartResourceDefinition p in PartResourceLibrary.Instance.resourceDefinitions) { if (loadedResources.ContainsKey(p.name)) continue; if (p == null) continue; TransferableResource r = new TransferableResource(p); if (r == null) continue; loadedResources.Add(p.name, r); } }
public TransferGroup(TransferableResource r) { resource = r; name = resource.Name; }