mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-04-09 17:26:58 +00:00
- Added ICharacterReputation and IPropertyReputationContribution interfaces for managing character and property reputations. - Implemented MySQL and SQLite database methods for getting and setting character reputations. - Created migration scripts for character and property reputation tables in both MySQL and SQLite. - Updated CharacterComponent to retrieve and set character reputation. - Enhanced PropertyManagementComponent to manage property reputation and contributions. - Added methods for handling reputation contributions and decay. - Introduced CharacterReputationMigration to migrate existing character reputations from XML to the database.
15 lines
358 B
C++
15 lines
358 B
C++
#ifndef __ICHARACTERREPUTATION__H__
|
|
#define __ICHARACTERREPUTATION__H__
|
|
|
|
#include <cstdint>
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
class ICharacterReputation {
|
|
public:
|
|
virtual int64_t GetCharacterReputation(const LWOOBJID charId) = 0;
|
|
virtual void SetCharacterReputation(const LWOOBJID charId, const int64_t reputation) = 0;
|
|
};
|
|
|
|
#endif //!__ICHARACTERREPUTATION__H__
|