Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

developer »

gameProject »

pedestrianController »

playerPlatform »

punishment »

team »

Concepts

Libraries

Objects

getProgressData

Description

Abstract, returns the progress data of the fail state, in this case how close (or far) the player is to failing their objective.

Arguments

1 table targetTable

the table to fill the data into.

Example

function timeLimitFailState:getProgressData(targetTable)
	table.insert(targetTable, {text = _format(_T("TIME_LIMIT_FAILSTATE_TEXT", "TIME left to finish"), "TIME", timeline:getTimePeriodText(self.objective:getStartTime() + self.config.timeLimit - timeline.curTime)), icon = "objectives", iconColor = self.iconColor, description = self.description})
end