mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-27 15:36:25 +00:00
Initial upload of AnticheatModule
This commit is contained in:
63
src/AnticheatData.h
Normal file
63
src/AnticheatData.h
Normal file
@@ -0,0 +1,63 @@
|
||||
#ifndef SC_ACDATA_H
|
||||
#define SC_ACDATA_H
|
||||
|
||||
#include "AnticheatMgr.h"
|
||||
|
||||
#define MAX_REPORT_TYPES 6
|
||||
|
||||
class AnticheatData
|
||||
{
|
||||
public:
|
||||
AnticheatData();
|
||||
~AnticheatData();
|
||||
|
||||
void SetLastOpcode(uint32 opcode);
|
||||
uint32 GetLastOpcode() const;
|
||||
|
||||
const MovementInfo& GetLastMovementInfo() const;
|
||||
void SetLastMovementInfo(MovementInfo& moveInfo);
|
||||
|
||||
void SetPosition(float x, float y, float z, float o);
|
||||
|
||||
/*
|
||||
bool GetDisableACCheck() const;
|
||||
void SetDisableACCheck(bool check);
|
||||
|
||||
uint32 GetDisableACTimer() const;
|
||||
void SetDisableACTimer(uint32 timer);*/
|
||||
|
||||
uint32 GetTotalReports() const;
|
||||
void SetTotalReports(uint32 _totalReports);
|
||||
|
||||
uint32 GetTypeReports(uint32 type) const;
|
||||
void SetTypeReports(uint32 type, uint32 amount);
|
||||
|
||||
float GetAverage() const;
|
||||
void SetAverage(float _average);
|
||||
|
||||
uint32 GetCreationTime() const;
|
||||
void SetCreationTime(uint32 creationTime);
|
||||
|
||||
void SetTempReports(uint32 amount, uint8 type);
|
||||
uint32 GetTempReports(uint8 type);
|
||||
|
||||
void SetTempReportsTimer(uint32 time, uint8 type);
|
||||
uint32 GetTempReportsTimer(uint8 type);
|
||||
|
||||
void SetDailyReportState(bool b);
|
||||
bool GetDailyReportState();
|
||||
private:
|
||||
uint32 lastOpcode;
|
||||
MovementInfo lastMovementInfo;
|
||||
//bool disableACCheck;
|
||||
//uint32 disableACCheckTimer;
|
||||
uint32 totalReports;
|
||||
uint32 typeReports[MAX_REPORT_TYPES];
|
||||
float average;
|
||||
uint32 creationTime;
|
||||
uint32 tempReports[MAX_REPORT_TYPES];
|
||||
uint32 tempReportsTimer[MAX_REPORT_TYPES];
|
||||
bool hasDailyReport;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user