mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-06-23 05:09:53 +00:00

Convert behavior ID to LWOOBJID length missed header fix sqlite field names sqlite brother
23 lines
473 B
C++
23 lines
473 B
C++
#ifndef IBEHAVIORS_H
|
|
#define IBEHAVIORS_H
|
|
|
|
#include <cstdint>
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
class IBehaviors {
|
|
public:
|
|
struct Info {
|
|
LWOOBJID behaviorId{};
|
|
uint32_t characterId{};
|
|
std::string behaviorInfo;
|
|
};
|
|
|
|
// This Add also takes care of updating if it exists.
|
|
virtual void AddBehavior(const Info& info) = 0;
|
|
virtual std::string GetBehavior(const LWOOBJID behaviorId) = 0;
|
|
virtual void RemoveBehavior(const LWOOBJID behaviorId) = 0;
|
|
};
|
|
|
|
#endif //!IBEHAVIORS_H
|