Skip to content

Commit 49af25d

Browse files
committed
Renamed C++ module directories to match the name of their exposed module.
Removed a few items from .gitignore since we now use the Build directory to build the solution instead of just being in the src directory.
1 parent 855e141 commit 49af25d

29 files changed

+44
-57
lines changed

.gitignore

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,6 @@ turtledemo/
2020
unittest/
2121
test/
2222
tests/
23-
src/CMakeFiles/*
24-
src/core.dir/*
25-
src/Release/*
26-
src/Debug/*
27-
src/Win32/*
28-
src/ALL_BUILD*
29-
src/ZERO_CHECK*
30-
src/core.*
31-
src/source-python*
32-
src/CMakeCache.txt
33-
src/cmake_install.cmake
34-
src/Makefile
35-
src/lib*
3623
src/Build/*
3724
src/sdks/*
3825
!src/sdks/readme.txt

src/CMakeLists.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ Set(SOURCEPYTHON_BOT_MODULE_SOURCES
110110
# Command module.
111111
# ------------------------------------------------------------------
112112
Set(SOURCEPYTHON_COMMAND_MODULE_HEADERS
113-
core/modules/commands/client_command_wrap.h
114-
core/modules/commands/command_wrap.h
115-
core/modules/commands/say_command_wrap.h
116-
core/modules/commands/server_command_wrap.h
113+
core/modules/command/client_command_wrap.h
114+
core/modules/command/command_wrap.h
115+
core/modules/command/say_command_wrap.h
116+
core/modules/command/server_command_wrap.h
117117
)
118118

119119
Set(SOURCEPYTHON_COMMAND_MODULE_SOURCES
120-
core/modules/commands/client_command_wrap.cpp
121-
core/modules/commands/command_wrap_python.cpp
122-
core/modules/commands/say_command_wrap.cpp
123-
core/modules/commands/server_command_wrap.cpp
120+
core/modules/command/client_command_wrap.cpp
121+
core/modules/command/command_wrap_python.cpp
122+
core/modules/command/say_command_wrap.cpp
123+
core/modules/command/server_command_wrap.cpp
124124
)
125125

126126
# ------------------------------------------------------------------
@@ -166,19 +166,19 @@ Set(SOURCEPYTHON_ENGINE_MODULE_SOURCES
166166
)
167167

168168
# ------------------------------------------------------------------
169-
# Entities module
169+
# Entity module
170170
# ------------------------------------------------------------------
171171
Set(SOURCEPYTHON_ENTITY_MODULE_HEADERS
172-
core/modules/entities/entities_wrap.h
173-
core/modules/entities/entities_props.h
174-
core/modules/entities/entities_generator_wrap.h
172+
core/modules/entity/entity_wrap.h
173+
core/modules/entity/entity_props.h
174+
core/modules/entity/entity_generator_wrap.h
175175
)
176176

177177
Set(SOURCEPYTHON_ENTITY_MODULE_SOURCES
178-
core/modules/entities/entities_props.cpp
179-
core/modules/entities/entities_wrap.cpp
180-
core/modules/entities/entities_wrap_python.cpp
181-
core/modules/entities/entities_generator_wrap.cpp
178+
core/modules/entity/entity_props.cpp
179+
core/modules/entity/entity_wrap.cpp
180+
core/modules/entity/entity_wrap_python.cpp
181+
core/modules/entity/entity_generator_wrap.cpp
182182
)
183183

184184
# ------------------------------------------------------------------
@@ -188,7 +188,7 @@ Set(SOURCEPYTHON_EVENT_MODULE_HEADERS
188188
)
189189

190190
Set(SOURCEPYTHON_EVENT_MODULE_SOURCES
191-
core/modules/events/events_wrap_python.cpp
191+
core/modules/event/event_wrap_python.cpp
192192
)
193193

194194
# ------------------------------------------------------------------
@@ -217,12 +217,12 @@ Set(SOURCEPYTHON_KEYVALUES_MODULE_SOURCES
217217
# Listener module
218218
# ------------------------------------------------------------------
219219
Set(SOURCEPYTHON_LISTENERS_MODULE_HEADERS
220-
core/modules/listeners/listenermanager.h
220+
core/modules/listener/listenermanager.h
221221
)
222222

223223
Set(SOURCEPYTHON_LISTENERS_MODULE_SOURCES
224-
core/modules/listeners/listenermanager.cpp
225-
core/modules/listeners/listeners_wrap_python.cpp
224+
core/modules/listener/listenermanager.cpp
225+
core/modules/listener/listener_wrap_python.cpp
226226
)
227227

228228
# ------------------------------------------------------------------
@@ -258,24 +258,24 @@ Set(SOURCEPYTHON_MEMORY_MODULE_SOURCES
258258
# Players module
259259
# ------------------------------------------------------------------
260260
Set(SOURCEPYTHON_PLAYERS_MODULE_HEADERS
261-
core/modules/players/players_generator_wrap.h
261+
core/modules/player/player_generator_wrap.h
262262
)
263263

264264
Set(SOURCEPYTHON_PLAYERS_MODULE_SOURCES
265-
core/modules/players/players_wrap_python.cpp
266-
core/modules/players/players_generator_wrap.cpp
265+
core/modules/player/player_wrap_python.cpp
266+
core/modules/player/player_generator_wrap.cpp
267267
)
268268

269269
# ------------------------------------------------------------------
270270
# RecipientFilter module.
271271
# ------------------------------------------------------------------
272272
Set(SOURCEPYTHON_RECIPIENTFILTER_MODULE_HEADERS
273-
core/modules/recipientfilters/mrecipientfilter.h
273+
core/modules/recipientfilter/mrecipientfilter.h
274274
)
275275

276276
Set(SOURCEPYTHON_RECIPIENTFILTER_MODULE_SOURCES
277-
core/modules/recipientfilters/mrecipientfilter.cpp
278-
core/modules/recipientfilters/mrecipientfilter_wrap_python.cpp
277+
core/modules/recipientfilter/mrecipientfilter.cpp
278+
core/modules/recipientfilter/recipientfilter_wrap_python.cpp
279279
)
280280

281281
# ------------------------------------------------------------------

src/core/addons/sp_addon.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
#include "filesystem.h"
3434
#include "core/sp_gamedir.h"
3535
#include "utility/wrap_macros.h"
36-
#include "modules/listeners/listenermanager.h"
37-
#include "modules/entities/entities_wrap.h"
36+
#include "modules/listener/listenermanager.h"
37+
#include "modules/entity/entity_wrap.h"
3838

3939
//---------------------------------------------------------------------------------
4040
// External variables

src/core/modules/commands/client_command_wrap.cpp renamed to src/core/modules/command/client_command_wrap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
#include "edict.h"
3333
#include "convar.h"
3434
#include "engine/iserverplugin.h"
35-
#include "modules/entities/entities_wrap.h"
35+
#include "modules/entity/entity_wrap.h"
3636
#include "utility/call_python.h"
3737
#include "boost/python/call.hpp"
3838
#include "boost/shared_array.hpp"
39-
#include "modules/listeners/listenermanager.h"
39+
#include "modules/listener/listenermanager.h"
4040

4141
//-----------------------------------------------------------------------------
4242
// Global Client command mapping.

src/core/modules/commands/client_command_wrap.h renamed to src/core/modules/command/client_command_wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include "edict.h"
3838
#include "convar.h"
3939
#include "command_wrap.h"
40-
#include "modules/entities/entities_wrap.h"
40+
#include "modules/entity/entity_wrap.h"
4141

4242
//-----------------------------------------------------------------------------
4343
// Client Command Manager class.

src/core/modules/commands/say_command_wrap.cpp renamed to src/core/modules/command/say_command_wrap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include "boost/python/call.hpp"
3838
#include "boost/shared_array.hpp"
3939
#include "core/sp_main.h"
40-
#include "modules/listeners/listenermanager.h"
40+
#include "modules/listener/listenermanager.h"
4141
#include "modules/conversions/conversions_wrap.h"
4242

4343
//-----------------------------------------------------------------------------

src/core/modules/commands/say_command_wrap.h renamed to src/core/modules/command/say_command_wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "command_wrap.h"
3535
#include "utility/sp_util.h"
3636
#include "utility/wrap_macros.h"
37-
#include "modules/entities/entities_wrap.h"
37+
#include "modules/entity/entity_wrap.h"
3838

3939
//-----------------------------------------------------------------------------
4040
// Say ConCommand instance class.

src/core/modules/entities/entities_generator_wrap.cpp renamed to src/core/modules/entity/entity_generator_wrap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
// ----------------------------------------------------------------------------
2828
// Includes
2929
// ----------------------------------------------------------------------------
30-
#include "entities_generator_wrap.h"
31-
#include "entities_wrap.h"
30+
#include "entity_generator_wrap.h"
31+
#include "entity_wrap.h"
3232
#include "utility/sp_util.h"
3333
#include "boost/python/iterator.hpp"
3434
#include "modules/conversions/conversions_wrap.h"

src/core/modules/entities/entities_props.cpp renamed to src/core/modules/entity/entity_props.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//---------------------------------------------------------------------------------
2828
// Includes
2929
//---------------------------------------------------------------------------------
30-
#include "entities_props.h"
30+
#include "entity_props.h"
3131

3232
//---------------------------------------------------------------------------------
3333
// Utility function to find send table props.

src/core/modules/entities/entities_wrap.cpp renamed to src/core/modules/entity/entity_wrap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
// Includes
2929
//-----------------------------------------------------------------------------
3030
#include <vector>
31-
#include "entities_props.h"
32-
#include "entities_wrap.h"
31+
#include "entity_props.h"
32+
#include "entity_wrap.h"
3333
#include "dt_common.h"
3434
#include "utility/sp_util.h"
3535
#include "edict.h"

src/core/modules/entities/entities_wrap_python.cpp renamed to src/core/modules/entity/entity_wrap_python.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
//-----------------------------------------------------------------------------
3030
#include "edict.h"
3131

32-
#include "entities_generator_wrap.h"
33-
#include "entities_wrap.h"
32+
#include "entity_generator_wrap.h"
33+
#include "entity_wrap.h"
3434
#include "utility/sp_util.h"
3535
#include "modules/export_main.h"
3636
using namespace boost::python;

src/core/modules/players/players_generator_wrap.cpp renamed to src/core/modules/player/player_generator_wrap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// ----------------------------------------------------------------------------
2828
// Includes
2929
// ----------------------------------------------------------------------------
30-
#include "players_generator_wrap.h"
30+
#include "player_generator_wrap.h"
3131
#include "utility/sp_util.h"
3232
#include "game/server/iplayerinfo.h"
3333
#include "boost/python/iterator.hpp"

src/core/modules/players/players_wrap_python.cpp renamed to src/core/modules/player/player_wrap_python.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
// ----------------------------------------------------------------------------
2828
// Includes
2929
// ----------------------------------------------------------------------------
30-
#include "players_generator_wrap.h"
31-
#include "modules/entities/entities_wrap.h"
30+
#include "player_generator_wrap.h"
31+
#include "modules/entity/entity_wrap.h"
3232
#include "modules/export_main.h"
3333

3434
#include "public/game/server/iplayerinfo.h"

src/core/modules/usermessage/usermessage_implementation_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
#include "irecipientfilter.h"
3131
#include "eiface.h"
32-
#include "modules/recipientfilters/mrecipientfilter.h"
32+
#include "modules/recipientfilter/mrecipientfilter.h"
3333

3434
extern IVEngineServer* engine;
3535

0 commit comments

Comments
 (0)