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
- AIParameter
- AIParameterFillType
- AIParameterGroup
- AIParameterLoadingStation
- AIParameterLooping
- AIParameterPosition
- AIParameterPositionAngle
- AIParameterUnloadingStati...
- AIParameterVehicle
- 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
AIParameterLooping
ParentAIParameterFunctions
- getIsLooping
- getString
- loadFromXMLFile
- new
- readStream
- saveToXMLFile
- setIsLooping
- setNextItem
- setPreviousItem
- writeStream
getIsLooping
DescriptionDefinitiongetIsLooping()Code
58 | function AIParameterLooping:getIsLooping() |
59 | return self.isLooping |
60 | end |
getString
DescriptionDefinitiongetString()Code
64 | function AIParameterLooping:getString() |
65 | if self.isLooping then |
66 | return g_i18n:getText("ai_parameterValueLooping") |
67 | else |
68 | return g_i18n:getText("ai_parameterValueNoLooping") |
69 | end |
70 | end |
loadFromXMLFile
DescriptionDefinitionloadFromXMLFile()Code
34 | function AIParameterLooping:loadFromXMLFile(xmlFile, key) |
35 | self.isLooping = xmlFile:getBool(key .. "#isLooping", self.isLooping) |
36 | end |
new
DescriptionDefinitionnew()Code
16 | function AIParameterLooping.new(customMt) |
17 | local self = AIParameter.new(customMt or AIParameterLooping_mt) |
18 | |
19 | self.type = AIParameterType.SELECTOR |
20 | |
21 | self.isLooping = false |
22 | |
23 | return self |
24 | end |
readStream
DescriptionDefinitionreadStream()Code
40 | function AIParameterLooping:readStream(streamId, connection) |
41 | self:setIsLooping(streamReadBool(streamId)) |
42 | end |
saveToXMLFile
DescriptionDefinitionsaveToXMLFile()Code
28 | function AIParameterLooping:saveToXMLFile(xmlFile, key, usedModNames) |
29 | xmlFile:setBool(key .. "#isLooping", self.isLooping) |
30 | end |
setIsLooping
DescriptionDefinitionsetIsLooping()Code
52 | function AIParameterLooping:setIsLooping(isLooping) |
53 | self.isLooping = isLooping |
54 | end |
setNextItem
DescriptionDefinitionsetNextItem()Code
74 | function AIParameterLooping:setNextItem() |
75 | self.isLooping = not self.isLooping |
76 | end |
setPreviousItem
DescriptionDefinitionsetPreviousItem()Code
80 | function AIParameterLooping:setPreviousItem() |
81 | self.isLooping = not self.isLooping |
82 | end |
writeStream
DescriptionDefinitionwriteStream()Code
46 | function AIParameterLooping:writeStream(streamId, connection) |
47 | streamWriteBool(streamId, self.isLooping) |
48 | end |