Script v1.7.1.0
- AI
- Animals
- Contracts
- Debug
- Economy
- Effects
- Events
- Farms
- GUI
- Handtools
- I3d
- Materials
- Misc
- Objects
- AnimatedMapObject
- AnimatedObject
- AnimatedObjectEvent
- Bale
- Basketball
- Bga
- BgaSellStation
- BunkerSilo
- BuyingStation
- DigitalDisplay
- DogBall
- HelpIcons
- LoadingStation
- NightIllumination
- Nightlight2
- NightlightFlicker
- PhysicsObject
- Rotator
- SellingStation
- SimParticleSystem
- Storage
- StorageSystem
- SunAdmirer
- TourIcons
- UnloadingStation
- VehicleSellingPoint
- WildlifeSpawner
- Placeables
- Player
- Shop
- Sounds
- Specializations
- Triggers
- Utils
- Vehicles
- Weather
Engine v1.7.1.0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- Overlays
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- XML
- general
Foundation Reference
BgaSellStation
ParentUnloadingStationFunctions
getAppearsOnStats
DescriptionDefinitiongetAppearsOnStats()Code
56 | function BgaSellStation:getAppearsOnStats() |
57 | if g_currentMission:getFarmId() ~= self:getOwnerFarmId() then |
58 | return false |
59 | end |
60 | |
61 | return self.appearsOnStats |
62 | end |
getCurrentPricingTrend
DescriptionDefinitiongetCurrentPricingTrend()Code
50 | function BgaSellStation:getCurrentPricingTrend(fillType) |
51 | return 0 |
52 | end |
getEffectiveFillTypePrice
DescriptionDefinitiongetEffectiveFillTypePrice()Code
38 | function BgaSellStation:getEffectiveFillTypePrice(fillTypeIndex) |
39 | return self.bga:getFillTypeLiterPrice(fillTypeIndex) * EconomyManager.getPriceMultiplier() |
40 | end |
getSupportsGreatDemand
DescriptionDefinitiongetSupportsGreatDemand()Code
44 | function BgaSellStation:getSupportsGreatDemand(fillType) |
45 | return false |
46 | end |
load
DescriptionDefinitionload()Code
26 | function 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 |
34 | end |
new
DescriptionDefinitionnew()Code
16 | function 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 |
22 | end |