Skip to main content
Skip to main content

AIParameterLooping

AIParameterLooping

Parent

AIParameter

Functions

getIsLooping

Description

Definition

getIsLooping()

Code

function AIParameterLooping:getIsLooping()
return self.isLooping
end

getString

Description

Definition

getString()

Code

function AIParameterLooping:getString()
if self.isLooping then
return g_i18n:getText( "ai_parameterValueLooping" )
else
return g_i18n:getText( "ai_parameterValueNoLooping" )
end
end

loadFromXMLFile

Description

Definition

loadFromXMLFile()

Arguments

anyxmlFile
anykey

Code

function AIParameterLooping:loadFromXMLFile(xmlFile, key)
self.isLooping = xmlFile:getBool(key .. "#isLooping" , self.isLooping)
end

new

Description

Definition

new()

Arguments

anycustomMt

Code

function AIParameterLooping.new(customMt)
local self = AIParameter.new(customMt or AIParameterLooping _mt)

self.type = AIParameterType.SELECTOR

self.isLooping = false

return self
end

readStream

Description

Definition

readStream()

Arguments

anystreamId
anyconnection

Code

function AIParameterLooping:readStream(streamId, connection)
self:setIsLooping(streamReadBool(streamId))
end

saveToXMLFile

Description

Definition

saveToXMLFile()

Arguments

anyxmlFile
anykey
anyusedModNames

Code

function AIParameterLooping:saveToXMLFile(xmlFile, key, usedModNames)
xmlFile:setBool(key .. "#isLooping" , self.isLooping)
end

setIsLooping

Description

Definition

setIsLooping()

Arguments

anyisLooping

Code

function AIParameterLooping:setIsLooping(isLooping)
self.isLooping = isLooping
end

setNextItem

Description

Definition

setNextItem()

Code

function AIParameterLooping:setNextItem()
self.isLooping = not self.isLooping
end

setPreviousItem

Description

Definition

setPreviousItem()

Code

function AIParameterLooping:setPreviousItem()
self.isLooping = not self.isLooping
end

writeStream

Description

Definition

writeStream()

Arguments

anystreamId
anyconnection

Code

function AIParameterLooping:writeStream(streamId, connection)
streamWriteBool(streamId, self.isLooping)
end