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

save

Description

Called when saving the logic piece to a save file.

Returns

1 table

the data to save. Must contain the id of the logic piece in the form of {id = }

Example

-- taken from game/logic_pieces/logic_piece.lua


function logicPiece:save()
	return {id = self.id}
end