HasResourceCapacity Parameter - jrossignol/ContractConfigurator GitHub Wiki
Parameter to indicate that the Vessel in question must have a certain capacity for a certain resource (or must have less capacity than a certain number). The HasResourceCapacity parameter can be used in two different modes - simple and extended. In the simple mode, simply provide the parameters to filter on, as in the following example:
PARAMETER { name = HasResourceCapacity type = HasResourceCapacity // The name of the resource to check for. // // Type: Resource // Required: Yes // resource = LiquidFuel // Minimum and maximum quantity of the resource required. // // Type: double // Required: No (defaulted) // Default: 0.01 (minQuantity) // double.MaxValue (maxQuantity) // minQuantity = 10.0 maxQuantity = 1000.0 // Text to use for the parameter // // Type: string // Required: No (defaulted) // Default: Resource: <resource>: <quantity_description> //title = }
For the extended mode, the above parameters may instead be placed inside RESOURCE blocks (which can be repeated):
PARAMETER { name = HasResourceCapacity type = HasResourceCapacity RESOURCE { // The name of the resource to check for. // // Type: Resource // Required: Yes // resource = LiquidFuel // Minimum and maximum quantity of the resource required. // // Type: double // Required: No (defaulted) // Default: 0.01 (minQuantity) // double.MaxValue (maxQuantity) // minQuantity = 10.0 maxQuantity = 1000.0 } RESOURCE { resource = Oxidizer minQuantity = 10.0 maxQuantity = 1000.0 } // Text to use for the parameter // // Type: string // Required: No (defaulted) // Default: Resource Capacity: <resource>: <quantity_description> //title = }