Skip to main content
Skip to main content

VehicleConfigurationItemVehicleType

VehicleConfigurationItemVehicleType

Description

Stores the data of a single vehicle type configuration

Parent

VehicleConfigurationItem

Functions

loadFromXML

Description

Definition

loadFromXML()

Arguments

anyxmlFile
anybaseKey
anyconfigKey
anybaseDirectory
anycustomEnvironment

Code

function VehicleConfigurationItemVehicleType:loadFromXML(xmlFile, baseKey, configKey, baseDirectory, customEnvironment)
if not VehicleConfigurationItemVehicleType:superClass().loadFromXML( self , xmlFile, baseKey, configKey, baseDirectory, customEnvironment) then
return false
end

self.vehicleType = xmlFile:getValue(configKey .. "#vehicleType" )

return true
end

new

Description

Definition

new()

Arguments

anyconfigName
anycustomMt

Code

function VehicleConfigurationItemVehicleType.new(configName, customMt)
local self = VehicleConfigurationItemVehicleType:superClass().new(configName, VehicleConfigurationItemVehicleType _mt)

return self
end

registerXMLPaths

Description

Definition

registerXMLPaths()

Arguments

anyschema
anyrootPath
anyconfigPath

Code

function VehicleConfigurationItemVehicleType.registerXMLPaths(schema, rootPath, configPath)
VehicleConfigurationItemVehicleType:superClass().registerXMLPaths(schema, rootPath, configPath)

schema:register(XMLValueType.STRING, configPath .. "#vehicleType" , "Vehicle type to be used" )
end