mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Rename love.physics getObjectList functions to getObjects (resolves #1305)
World:getBodyList -> World:getBodies World:getContactList -> World:getContacts World:getJointList -> World:getJoints Body:getFixtureList -> Body:getFixtures Body:getContactList -> Body:getContacts Body:getJointList -> Body:getJoints Marked the old functions as deprecated --HG-- branch : minor
This commit is contained in:
@@ -427,7 +427,7 @@ World *Body::getWorld() const
|
||||
return world;
|
||||
}
|
||||
|
||||
int Body::getFixtureList(lua_State *L) const
|
||||
int Body::getFixtures(lua_State *L) const
|
||||
{
|
||||
lua_newtable(L);
|
||||
b2Fixture *f = body->GetFixtureList();
|
||||
@@ -447,7 +447,7 @@ int Body::getFixtureList(lua_State *L) const
|
||||
return 1;
|
||||
}
|
||||
|
||||
int Body::getJointList(lua_State *L) const
|
||||
int Body::getJoints(lua_State *L) const
|
||||
{
|
||||
lua_newtable(L);
|
||||
const b2JointEdge *je = body->GetJointList();
|
||||
@@ -471,7 +471,7 @@ int Body::getJointList(lua_State *L) const
|
||||
return 1;
|
||||
}
|
||||
|
||||
int Body::getContactList(lua_State *L) const
|
||||
int Body::getContacts(lua_State *L) const
|
||||
{
|
||||
lua_newtable(L);
|
||||
const b2ContactEdge *ce = body->GetContactList();
|
||||
|
||||
Reference in New Issue
Block a user