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
AdditionalFieldBuyInfoEvent
DescriptionEvent for syncing the field buy info to the playerParent
EventFunctions
emptyNew
DescriptionCreate instance of Event classDefinition
emptyNew()Return Values
table | self | instance of class event |
13 | function AdditionalFieldBuyInfoEvent:emptyNew() |
14 | local self = Event.new(AdditionalFieldBuyInfoEvent_mt) |
15 | return self |
16 | end |
new
DescriptionCreate new instance of eventDefinition
new(table object)Arguments
table | object | object |
21 | function AdditionalFieldBuyInfoEvent.new(farmlandId) |
22 | local self = AdditionalFieldBuyInfoEvent:emptyNew() |
23 | self.farmlandId = farmlandId |
24 | return self |
25 | end |
readStream
DescriptionCalled on client side on joinDefinition
readStream(integer streamId, integer connection)Arguments
integer | streamId | streamId |
integer | connection | connection |
31 | function AdditionalFieldBuyInfoEvent:readStream(streamId, connection) |
32 | self.farmlandId = streamReadUIntN(streamId, g_farmlandManager.numberOfBits) |
33 | |
34 | local pfModule = g_precisionFarming |
35 | if pfModule ~= nil then |
36 | if pfModule.additionalFieldBuyInfo ~= nil then |
37 | pfModule.additionalFieldBuyInfo:readInfoFromStream(self.farmlandId, streamId, connection) |
38 | end |
39 | end |
40 | end |
writeStream
DescriptionCalled on server side on joinDefinition
writeStream(integer streamId, integer connection)Arguments
integer | streamId | streamId |
integer | connection | connection |
46 | function AdditionalFieldBuyInfoEvent:writeStream(streamId, connection) |
47 | streamWriteUIntN(streamId, self.farmlandId, g_farmlandManager.numberOfBits) |
48 | |
49 | local pfModule = g_precisionFarming |
50 | if pfModule ~= nil then |
51 | if pfModule.additionalFieldBuyInfo ~= nil then |
52 | pfModule.additionalFieldBuyInfo:writeInfoToStream(self.farmlandId, streamId, connection) |
53 | end |
54 | end |
55 | end |