1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Separate anticheat settings (#15040)

This commit is contained in:
Zemtzov7 2024-10-11 15:01:22 +05:00 committed by GitHub
parent d2b4c27f21
commit 1b2d24791a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 47 additions and 8 deletions

View file

@ -81,6 +81,20 @@ struct PackedValue;
struct ParticleParameters;
struct ParticleSpawnerParameters;
// Anticheat flags
enum {
AC_DIGGING = 0x01,
AC_INTERACTION = 0x02,
AC_MOVEMENT = 0x04
};
constexpr const static FlagDesc flagdesc_anticheat[] = {
{"digging", AC_DIGGING},
{"interaction", AC_INTERACTION},
{"movement", AC_MOVEMENT},
{NULL, 0}
};
enum ClientDeletionReason {
CDR_LEAVE,
CDR_TIMEOUT,