Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrappers: a series of engine wrappers has been initialized for support functionality in all builds #530

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BunnymodXT/discord_integration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "modules/HwDLL.hpp"
#include "cvars.hpp"
#include "hud_custom.hpp"
#include "wrappers.hpp"

using namespace std::literals;

Expand Down
1 change: 1 addition & 0 deletions BunnymodXT/helper_functions.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "stdafx.hpp"
#include "modules.hpp"
#include "helper_functions.hpp"
#include "wrappers.hpp"

namespace helper_functions
{
Expand Down
1 change: 1 addition & 0 deletions BunnymodXT/hud_custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "runtime_data.hpp"
#include "opengl_utils.hpp"
#include "splits.hpp"
#include "wrappers.hpp"

#include <GL/gl.h>

Expand Down
1 change: 1 addition & 0 deletions BunnymodXT/modules/ClientDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "../hud_custom.hpp"
#include "../triangle_drawing.hpp"
#include "../discord_integration.hpp"
#include "../wrappers.hpp"
#include <GL/gl.h>

// Linux hooks.
Expand Down
1 change: 1 addition & 0 deletions BunnymodXT/modules/HwDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "../simulation_ipc.hpp"
#include "../splits.hpp"
#include "../helper_functions.hpp"
#include "../wrappers.hpp"

using namespace std::literals;

Expand Down
1 change: 1 addition & 0 deletions BunnymodXT/modules/ServerDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "../custom_triggers.hpp"
#include "../splits.hpp"
#include "../shared.hpp"
#include "../wrappers.hpp"

#define ALERT(at, format, ...) pEngfuncs->pfnAlertMessage(at, const_cast<char*>(format), ##__VA_ARGS__)

Expand Down
1 change: 1 addition & 0 deletions BunnymodXT/triangle_drawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "triangle_drawing.hpp"
#include "triangle_utils.hpp"
#include "modules.hpp"
#include "wrappers.hpp"

#include "hud_custom.hpp"

Expand Down
22 changes: 22 additions & 0 deletions BunnymodXT/wrappers.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#pragma once

#include "wrappers/engine-to-client/main.hpp"
#include "wrappers/engine-to-client/cl.hpp"
#include "wrappers/engine-to-client/cls.hpp"
#include "wrappers/engine-to-client/refdef.hpp"
#include "wrappers/engine-to-client/refparams.hpp"
#include "wrappers/engine-to-client/triapi.hpp"
#include "wrappers/engine-to-client/efxapi.hpp"
#include "wrappers/engine-to-client/eventapi.hpp"
#include "wrappers/engine-to-client/demoapi.hpp"
#include "wrappers/engine-to-client/studioapi.hpp"

#include "wrappers/engine-to-server/main.hpp"
#include "wrappers/engine-to-server/sv.hpp"
#include "wrappers/engine-to-server/svs.hpp"
#include "wrappers/engine-to-server/svc.hpp"
#include "wrappers/engine-to-server/globalvars.hpp"
#include "wrappers/engine-to-server/movevars.hpp"
#include "wrappers/engine-to-server/delta.hpp"

#include "wrappers/engine.hpp"
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/cl.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "cl.hpp"

namespace EngineClientCL
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/cl.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientCL
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/cls.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "cls.hpp"

namespace EngineClientCLS
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/cls.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientCLS
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/demoapi.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "demoapi.hpp"

namespace EngineClientDemoAPI
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/demoapi.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientDemoAPI
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/efxapi.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "efxapi.hpp"

namespace EngineClientEfxAPI
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/efxapi.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientEfxAPI
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/eventapi.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "eventapi.hpp"

namespace EngineClientEventAPI
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/eventapi.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientEventAPI
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "main.hpp"

namespace EngineClient
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/main.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClient
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/refdef.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "refdef.hpp"

namespace EngineClientRefdef
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/refdef.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientRefdef
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/refparams.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "refparams.hpp"

namespace EngineClientRefParams
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/refparams.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientRefParams
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/studioapi.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "studioapi.hpp"

namespace EngineClientStudioAPI
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/studioapi.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientStudioAPI
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/triapi.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "triapi.hpp"

namespace EngineClientTriAPI
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-client/triapi.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineClientTriAPI
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/delta.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "delta.hpp"

namespace EngineServerDelta
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/delta.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineServerDelta
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/globalvars.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "globalvars.hpp"

namespace EngineServerGlobalVars
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/globalvars.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineServerGlobalVars
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "main.hpp"

namespace EngineServer
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/main.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineServer
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/movevars.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "movevars.hpp"

namespace EngineServerMoveVars
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/movevars.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineServerMoveVars
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/sv.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "sv.hpp"

namespace EngineServerSV
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/sv.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineServerSV
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/svc.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "svc.hpp"

namespace EngineServerSVC
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/svc.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineServerSVC
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/svs.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "svs.hpp"

namespace EngineServerSVS
{
};
9 changes: 9 additions & 0 deletions BunnymodXT/wrappers/engine-to-server/svs.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once

#include "../../stdafx.hpp"
#include "../../modules.hpp"
#include "../../wrappers.hpp"

namespace EngineServerSVS
{
}
5 changes: 5 additions & 0 deletions BunnymodXT/wrappers/engine.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "engine.hpp"

namespace Engine
{
};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Namespaces in .cpp have trailing ; but in .hpp they don't?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, semicolon at the end for the named namespace is not required by standards. But if we look at the code design from other files of this project, it is clear that someone will put them both in the header and in .cpp, someone decides to put them only in the header, somewhere they are simply not there. So it's all a matter of taste.

But if we still want to adhere to some consistency in the code design, then I think it's easier to remove them altogether. What do you think about this?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's do that if they are not needed

Loading