DarkflameServer/dDatabase/GameDatabase/ITables/IBehaviors.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
470 B
C
Raw Permalink Normal View History

2024-05-18 10:54:09 +00:00
#ifndef IBEHAVIORS_H
#define IBEHAVIORS_H
2024-05-18 09:05:55 +00:00
#include <cstdint>
#include "dCommonVars.h"
class IBehaviors {
public:
struct Info {
2024-05-18 10:36:29 +00:00
int32_t behaviorId{};
2024-05-18 09:05:55 +00:00
uint32_t characterId{};
std::string behaviorInfo;
};
2024-05-18 09:12:23 +00:00
// This Add also takes care of updating if it exists.
2024-05-18 09:05:55 +00:00
virtual void AddBehavior(const Info& info) = 0;
2024-05-18 10:36:29 +00:00
virtual std::string GetBehavior(const int32_t behaviorId) = 0;
virtual void RemoveBehavior(const int32_t behaviorId) = 0;
2024-05-18 09:05:55 +00:00
};
2024-05-18 10:54:09 +00:00
#endif //!IBEHAVIORS_H