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
- 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
- getMaterialCustomShaderFilename
- getMaterialCustomShaderVariation
- getMaterialDiffuseMapFilename
- getMaterialDiffuseMapHasAlpha
- getMaterialEmissiveMapFilename
- getMaterialEmissiveMapHasAlpha
- getMaterialGlossMapFilename
- getMaterialHasRefractionMap
- getMaterialIsAlphaBlended
- getMaterialIsAlphaTested
- getMaterialNormalMapFilename
- getMaterialNormalMapFormat
- getMaterialReflectionMapScaling
- setMaterialCustomMapFromFile
- setMaterialCustomShaderVariation
- setMaterialDiffuseMapFromFile
- setMaterialGlossMapFromFile
- setMaterialNormalMapFromFile
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- VoiceChat
- XML
Foundation Reference
InlineWrapperPushOffEvent
DescriptionEvent for pushing off the bales from inline wrapperParent
EventFunctions
emptyNew
DescriptionCreate instance of Event classDefinition
emptyNew()Return Values
table | self | instance of class event |
13 | function InlineWrapperPushOffEvent.emptyNew() |
14 | local self = Event.new(InlineWrapperPushOffEvent_mt) |
15 | return self |
16 | end |
new
DescriptionCreate new instance of eventDefinition
new(table inlineWrapper)Arguments
table | inlineWrapper | inlineWrapper |
table | instance | instance of event |
22 | function InlineWrapperPushOffEvent.new(inlineWrapper) |
23 | local self = InlineWrapperPushOffEvent.emptyNew() |
24 | self.inlineWrapper = inlineWrapper |
25 | return self |
26 | end |
readStream
DescriptionCalled on client side on joinDefinition
readStream(integer streamId, integer connection)Arguments
integer | streamId | streamId |
integer | connection | connection |
32 | function InlineWrapperPushOffEvent:readStream(streamId, connection) |
33 | if not connection:getIsServer() then |
34 | self.inlineWrapper = NetworkUtil.readNodeObject(streamId) |
35 | end |
36 | self:run(connection) |
37 | end |
run
DescriptionRun action on receiving sideDefinition
run(integer connection)Arguments
integer | connection | connection |
52 | function InlineWrapperPushOffEvent:run(connection) |
53 | if not connection:getIsServer() then |
54 | if self.inlineWrapper ~= nil and self.inlineWrapper:getIsSynchronized() then |
55 | self.inlineWrapper:pushOffInlineBale() |
56 | end |
57 | end |
58 | end |
writeStream
DescriptionCalled on server side on joinDefinition
writeStream(integer streamId, integer connection)Arguments
integer | streamId | streamId |
integer | connection | connection |
43 | function InlineWrapperPushOffEvent:writeStream(streamId, connection) |
44 | if connection:getIsServer() then |
45 | NetworkUtil.writeNodeObject(streamId, self.inlineWrapper) |
46 | end |
47 | end |