AIParameterLooping
AIParameterLooping
Parent
Functions
- getIsLooping
- getString
- loadFromXMLFile
- new
- readStream
- saveToXMLFile
- setIsLooping
- setNextItem
- setPreviousItem
- writeStream
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
| any | xmlFile |
|---|---|
| any | key |
Code
function AIParameterLooping:loadFromXMLFile(xmlFile, key)
self.isLooping = xmlFile:getBool(key .. "#isLooping" , self.isLooping)
end
new
Description
Definition
new()
Arguments
| any | customMt |
|---|
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
| any | streamId |
|---|---|
| any | connection |
Code
function AIParameterLooping:readStream(streamId, connection)
self:setIsLooping(streamReadBool(streamId))
end
saveToXMLFile
Description
Definition
saveToXMLFile()
Arguments
| any | xmlFile |
|---|---|
| any | key |
| any | usedModNames |
Code
function AIParameterLooping:saveToXMLFile(xmlFile, key, usedModNames)
xmlFile:setBool(key .. "#isLooping" , self.isLooping)
end
setIsLooping
Description
Definition
setIsLooping()
Arguments
| any | isLooping |
|---|
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
| any | streamId |
|---|---|
| any | connection |
Code
function AIParameterLooping:writeStream(streamId, connection)
streamWriteBool(streamId, self.isLooping)
end