Skip to content

Commit

Permalink
[luadefs-server] Move Element OOPDefs to Defs
Browse files Browse the repository at this point in the history
  • Loading branch information
qaisjp committed Sep 9, 2015
1 parent 35c713c commit 8cad888
Show file tree
Hide file tree
Showing 8 changed files with 230 additions and 263 deletions.
1 change: 0 additions & 1 deletion MTA10_Server/mods/deathmatch/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ LOGIC = \
./logic/lua/oopdefs/CLuaOOPFunctionDefs.ACL.cpp \
./logic/lua/oopdefs/CLuaOOPFunctionDefs.Camera.cpp \
./logic/lua/oopdefs/CLuaOOPFunctionDefs.Connection.cpp \
./logic/lua/oopdefs/CLuaOOPFunctionDefs.Element.cpp \
./logic/lua/oopdefs/CLuaOOPFunctionDefs.Marker.cpp \
./logic/lua/oopdefs/CLuaOOPFunctionDefs.Ped.cpp \
./logic/lua/oopdefs/CLuaOOPFunctionDefs.Player.cpp \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@
<ClCompile Include="logic\lua\CLuaVector4.cpp" />
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.ACL.cpp" />
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.Camera.cpp" />
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.Element.cpp" />
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.Marker.cpp" />
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.Ped.cpp" />
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.Player.cpp" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -888,9 +888,6 @@
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.Camera.cpp">
<Filter>Source Files\logic\oopdefs</Filter>
</ClCompile>
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.Element.cpp">
<Filter>Source Files\logic\oopdefs</Filter>
</ClCompile>
<ClCompile Include="logic\lua\oopdefs\CLuaOOPFunctionDefs.Ped.cpp">
<Filter>Source Files\logic\oopdefs</Filter>
</ClCompile>
Expand Down
9 changes: 0 additions & 9 deletions MTA10_Server/mods/deathmatch/logic/lua/oopdefs/CLuaOOPDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class CLuaFunctionDefs;

class CRegisteredCommands;

#define LUA_DECLARE(x) static int x ( lua_State * luaVM );

class CLuaOOPDefs : public CLuaDefs
{
public:
Expand All @@ -30,13 +28,6 @@ class CLuaOOPDefs : public CLuaDefs
// Player
LUA_DECLARE ( OutputChat );

// Element
LUA_DECLARE ( GetElementMatrix );
LUA_DECLARE ( GetElementPosition );
LUA_DECLARE ( GetElementRotation );
LUA_DECLARE ( SetElementRotation );
LUA_DECLARE ( GetElementVelocity );

// Camera
LUA_DECLARE ( GetCameraMatrix );
LUA_DECLARE ( GetCameraPosition );
Expand Down

This file was deleted.

3 changes: 2 additions & 1 deletion MTA10_Server/mods/deathmatch/logic/luadefs/CLuaDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
#define SCRIPT_VERIFY_ACCOUNT(account) (m_pAccountManager->Exists(account))
#define SCRIPT_VERIFY_COLSHAPE(colshape) (m_pColManager->Exists(colshape))
#define SCRIPT_VERIFY_RESOURCE(resource) (m_pResourceManager->Exists(resource))

#define LUA_DECLARE(x) static int x ( lua_State * luaVM );
#define LUA_DECLARE_OOP(x) static int x ( lua_State * luaVM ); static int OOP_##x ( lua_State * luaVM );

class CLuaDefs
{
Expand Down

0 comments on commit 8cad888

Please sign in to comment.