LUADOC - Farming Simulator 17

Printable Version

FillUtil

Description
FillUtil
Functions

registerFillTypeCategory

Description
Register fill type category
Definition
registerFillTypeCategory(string name)
Arguments
stringnamename of fill type category
Return Values
integeridid of new category

addFillTypeToCategory

Description
Adds fill type to category
Definition
addFillTypeToCategory(integer category, integer fillType)
Arguments
integercategorycategory
integerfillTypefill type

registerFillType

Description
Register new fill type
Definition
registerFillType(string name, string nameI18N, integer category, float pricePerLiter, boolean showOnPriceTable, string hudOverlayFilename, string hudOverlayFilenameSmall, float massPerLiter, float maxPhysicalSurfaceAngle)
Arguments
stringnamename of fill type
stringnameI18NI18N text of fill type
integercategorycategory to add fill type (optional)
floatpricePerLiterprice per liter
booleanshowOnPriceTableshow fill type on price table
stringhudOverlayFilenamefilename of hud overlay
stringhudOverlayFilenameSmallfilename if small hud overlay
floatmassPerLitermass per liter in t
floatmaxPhysicalSurfaceAnglemax physical surface angle
Return Values
integeridid of new fill type

registerFoodGroup

Description
Register new food group
Definition
registerFoodGroup(integer animalIndex, string groupName, string nameI18N, float weight)
Arguments
integeranimalIndexindex of animal
stringgroupNamename of group
stringnameI18NI18N name if group
floatweightweight
Return Values
integeridid of new food group

registerFillTypeInFoodGroup

Description
Register fill type in food group
Definition
registerFillTypeInFoodGroup(integer animalIndex, integer foodGroupIndex, integer fillType)
Arguments
integeranimalIndexindex if animal
integerfoodGroupIndexindex of food group
integerfillTypefill type to add

registerFillTypeAsFoodMixture

Description
Register fill type as food mixture
Definition
registerFillTypeAsFoodMixture(integer animalIndex, integer fillType, table weights)
Arguments
integeranimalIndexindex of animal
integerfillTypefill type
tableweightsweights

getFillTypesByNames

Description
Returns fill type ids from string with fill type names
Definition
getFillTypesByNames(string fillTypes, string warning)
Arguments
stringfillTypesfill types
stringwarningwarning if fill type not found
Return Values
tablefillTypesfill types

getFillTypeByCategoryName

Description
Returns fill type ids from string with category names
Definition
getFillTypeByCategoryName(string fillTypeCategories, string warning)
Arguments
stringfillTypeCategoriesfill type categories
stringwarningwarning if category not found
Return Values
tablefillTypesfill types

getFillTypesByFruitTypeNames

Description
Returns fill type ids from string with fruit type names
Definition
getFillTypesByFruitTypeNames(string fruitTypes, string warning)
Arguments
stringfruitTypesfruit types
stringwarningwarning if fill type not found
Return Values
tablefillTypesfill types

getFillTypesByFruitTypeCategoryName

Description
Returns fill type ids from string with fruit type category names
Definition
getFillTypesByFruitTypeCategoryName(string fruitTypeCategories, string warning)
Arguments
stringfruitTypeCategoriesfruit type categories
stringwarningwarning if category not found
Return Values
tablefillTypesfill types