LUADOC - Farming Simulator 19

BgaSellStation

Parent
UnloadingStation
Functions

getAppearsOnStats

Description
Definition
getAppearsOnStats()
Code
56function BgaSellStation:getAppearsOnStats()
57 if g_currentMission:getFarmId() ~= self:getOwnerFarmId() then
58 return false
59 end
60
61 return self.appearsOnStats
62end

getCurrentPricingTrend

Description
Definition
getCurrentPricingTrend()
Code
50function BgaSellStation:getCurrentPricingTrend(fillType)
51 return 0
52end

getEffectiveFillTypePrice

Description
Definition
getEffectiveFillTypePrice()
Code
38function BgaSellStation:getEffectiveFillTypePrice(fillTypeIndex)
39 return self.bga:getFillTypeLiterPrice(fillTypeIndex) * EconomyManager.getPriceMultiplier()
40end

getSupportsGreatDemand

Description
Definition
getSupportsGreatDemand()
Code
44function BgaSellStation:getSupportsGreatDemand(fillType)
45 return false
46end

load

Description
Definition
load()
Code
26function BgaSellStation:load(id, xmlFile, customEnvironment, key)
27 if not BgaSellStation:superClass().load(self, id, xmlFile, key, customEnvironment) then
28 return false
29 end
30
31 self.appearsOnStats = Utils.getNoNil(getXMLBool(xmlFile, key.."#appearsOnStats"), self.appearsOnPDA)
32
33 return true
34end

new

Description
Definition
new()
Code
16function BgaSellStation:new(isServer, isClient, bga, customMt)
17 local self = UnloadingStation:new(isServer, isClient, customMt or BgaSellStation_mt)
18
19 self.bga = bga
20
21 return self
22end