Script v1_7_1_0
- AI
- Animals
- Collections
- Contracts
- Debug
- Economy
- Elements
- EnvironmentalScore
- Errors
- Events
- GUI
- Handtools
- Hud
- I3d
- Input
- Jobs
- Maps
- Materials
- Misc
- Objects
- AnimatedMapObject
- AnimatedObject
- Bale
- Basketball
- BgaSellStation
- BunkerSilo
- BuyingStation
- DigitalDisplay
- DogBall
- HelpIcons
- InlineBale
- InlineBaleSingle
- LoadingStation
- MountableObject
- NightIllumination
- Nightlight2
- NightlightFlicker
- PackedBale
- PhysicsObject
- ProductionPoint
- Rotator
- SellingStation
- SimParticleSystem
- Storage
- SunAdmirer
- TourIconsMobile
- UnloadingStation
- VehicleSellingPoint
- WildlifeSpawner
- Parameters
- Placeables
- Placement
- Player
- Shop
- Sounds
- Specialization
- Specializations
- StateMachine
- Statistics
- Tasks
- Triggers
- Utils
- Vehicles
Engine v1_7_1_0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- general
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- NoteNode
- Overlays
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- VoiceChat
- XML
Foundation Reference
UnloadingStation
ParentObjectFunctions
readStream
DescriptionCalled on client side on joinDefinition
readStream(integer streamId, table connection)Arguments
integer | streamId | stream ID |
table | connection | connection |
104 | function UnloadingStation:readStream(streamId, connection) |
105 | UnloadingStation:superClass().readStream(self, streamId, connection) |
106 | if connection:getIsServer() then |
107 | for _, unloadTrigger in ipairs(self.unloadTriggers) do |
108 | local unloadTriggerId = NetworkUtil.readNodeObjectId(streamId) |
109 | unloadTrigger:readStream(streamId, connection) |
110 | g_client:finishRegisterObject(unloadTrigger, unloadTriggerId) |
111 | end |
112 | end |
113 | end |
registerXMLPaths
DescriptionDefinitionregisterXMLPaths()Code
351 | function UnloadingStation.registerXMLPaths(schema, basePath) |
352 | schema:register(XMLValueType.NODE_INDEX, basePath .. "#node", "Unloading station node") |
353 | schema:register(XMLValueType.STRING, basePath .. "#stationName", "Station name", "LoadingStation") |
354 | schema:register(XMLValueType.FLOAT, basePath .. "#storageRadius", "Inside of this radius storages can be placed", 50) |
355 | schema:register(XMLValueType.BOOL, basePath .. "#hideFromPricesMenu", "Hide station from prices menu", false) |
356 | schema:register(XMLValueType.BOOL, basePath .. "#supportsExtension", "Supports extensions", false) |
357 | |
358 | UnloadTrigger.registerXMLPaths(schema, basePath .. ".unloadTrigger(?)") |
359 | |
360 | SoundManager.registerSampleXMLPaths(schema, basePath .. ".sounds", "active") |
361 | SoundManager.registerSampleXMLPaths(schema, basePath .. ".sounds", "idle") |
362 | AnimationManager.registerAnimationNodesXMLPaths(schema, basePath .. ".animationNodes") |
363 | EffectManager.registerEffectXMLPaths(schema, basePath .. ".effectNodes") |
364 | end |
writeStream
DescriptionCalled on server side on joinDefinition
writeStream(integer streamId, table connection)Arguments
integer | streamId | stream ID |
table | connection | connection |
119 | function UnloadingStation:writeStream(streamId, connection) |
120 | UnloadingStation:superClass().writeStream(self, streamId, connection) |
121 | if not connection:getIsServer() then |
122 | for _, unloadTrigger in ipairs(self.unloadTriggers) do |
123 | NetworkUtil.writeNodeObjectId(streamId, NetworkUtil.getObjectId(unloadTrigger)) |
124 | unloadTrigger:writeStream(streamId, connection) |
125 | g_server:registerObjectInStream(connection, unloadTrigger) |
126 | end |
127 | end |
128 | end |