Releases: love2d-community/love-api
Releases · love2d-community/love-api
0.10.0
0.9.2f
0.9.2e
Additions
- Added missing Event Constants (see PR #5)
- Added description fields for variants of love.graphics.push
- Added description fields for variant of love.graphics.newFont
Structure changes
- The field containing function variants is now called 'variants' instead of 'functions' (see PR #6 and #2)
- Variants now have an (optional) description field
The structure of a function in the api looks like this now:
-- Functions
functions = {
{ -- Function 1
name = 'Name of the function',
description = 'The description of what the function does',
variants = {
{
description = 'The description detailing what this variant does',
arguments = { -- (optional)
{
type = 'The variable type',
name = 'The variable name',
description = 'The description of the variable.'
},
{
-- Argument 2
-- ...
},
},
returns = { -- (optional)
{
type = 'The returned variable type',
name = 'The variable name',
description = 'The description of the variable.'
},
{
-- Return statement 2
-- ...
},
}
},
},
},
{
-- Function 2
-- ...
},
}
Fixes
- Moved getDopplerScale and setDopplerScale from Source to love.audio
Other Changes
- Updated description of love.audio.getDistanceModel