private void InitializeConsumedResourceSuffixes() { AddSuffix("NAME", new Suffix <StringValue>(() => name, "The name of the resource (eg LiguidFuel, ElectricCharge)")); AddSuffix("DENSITY", new Suffix <ScalarValue>(() => density, "The density of the resource")); AddSuffix("FUELFLOW", new Suffix <ScalarValue>(() => (engine != null && engine.fuelFlowGui > 0) ? propellant.currentAmount / Time.fixedDeltaTime : 0, "The current volumetric flow rate of the resource")); AddSuffix("MAXFUELFLOW", new Suffix <ScalarValue>(() => engine ? engine.getMaxFuelFlow(propellant) : 0, "The maximum volumetric flow rate of the resource")); AddSuffix("REQUIREDFLOW", new Suffix <ScalarValue>(() => (engine != null && engine.fuelFlowGui > 0) ? propellant.currentRequirement / Time.fixedDeltaTime : 0, "The required volumetric flow rate of the resource")); AddSuffix("MASSFLOW", new Suffix <ScalarValue>(() => (engine != null && engine.fuelFlowGui > 0) ? propellant.currentAmount * density / Time.fixedDeltaTime : 0, "The current mass flow rate of the resource")); AddSuffix("MAXMASSFLOW", new Suffix <ScalarValue>(() => engine ? engine.getMaxFuelFlow(propellant) * density : 0, "The maximum mass flow rate of the resource")); AddSuffix("RATIO", new Suffix <ScalarValue>(() => propellant.ratio, "The volumetric flow ratio of the resource")); AddSuffix("AMOUNT", new Suffix <ScalarValue>(() => propellant.actualTotalAvailable, "The resources currently available")); AddSuffix("CAPACITY", new Suffix <ScalarValue>(() => propellant.totalResourceCapacity, "The total storage capacity currently available")); }