LUADOC - Farming Simulator 17

Printable Version

MaterialUtil

Description
MaterialUtil
Functions

registerMaterialType

Description
Register material type
Definition
registerMaterialType(string name)
Arguments
stringnamename of material type
Return Values
integeridof material type

registerParticleType

Description
Register particle type
Definition
registerParticleType(string name)
Arguments
stringnamename of particle type
Return Values
integeridof particle type

onCreateMaterial

Description
Called by material holder to create material
Definition
onCreateMaterial(any_type unused, integer id)
Arguments
any_typeunusedunused
integeridid

getMaterial

Description
Returns material for given properties
Definition
getMaterial(integer fillType, string materialTypeName, integer materialId)
Arguments
integerfillTypefill type
stringmaterialTypeNamename of material type
integermaterialIdid of material
Return Values
integermaterialIdid of material

getMaterialType

Description
Returns id of material type
Definition
getMaterialType(string materialTypeName)
Arguments
stringmaterialTypeNamematerial type name
Return Values
integeridid of material type

onCreateParticleSystem

Description
Called by particle holder to create particle system
Definition
onCreateParticleSystem(any_type unused, integer id)
Arguments
any_typeunusedunused
integeridid

getParticleSystemType

Description
Returns id of particle system type
Definition
getParticleSystemType(string particleTypeName)
Arguments
stringparticleTypeNameparticle system type name
Return Values
integeridid of particle system type

getParticleSystem

Description
Returns particle system for given properties
Definition
getParticleSystem(integer fillType, string particleTypeName)
Arguments
integerfillTypefill type
stringparticleTypeNamename of particle system type
Return Values
tableparticleSystemparticle system

onCreateCutterEffect

Description
Called by cutter effect holder to create cutter effect
Definition
onCreateCutterEffect(any_type unused, integer id)
Arguments
any_typeunusedunused
integeridid

getCutterEffectType

Description
Returns id of cutter effect type
Definition
getCutterEffectType(string cutterEffectTypeName)
Arguments
stringcutterEffectTypeNamecutter effect type name
Return Values
integeridid of cutter effect type

getCutterEffects

Description
Returns cutter effects for given properties
Definition
getCutterEffects(integer fillType, integer effectType, boolean isThreshing)
Arguments
integerfillTypefill type
integereffectTypeeffect type
booleanisThreshingis threshing
Return Values
tablecutterEffectscutter effects