DarkflameServer/dDatabase/GameDatabase/ITables/IObjectIdTracker.h
David Markowitz 9655f0ee45 make include guards standards conforming
fix compile issues
2024-10-30 00:34:25 -07:00

20 lines
437 B
C++

#ifndef IOBJECTIDTRACKER_H
#define IOBJECTIDTRACKER_H
#include <cstdint>
#include <optional>
class IObjectIdTracker {
public:
// Get the current persistent id.
virtual std::optional<uint32_t> GetCurrentPersistentId() = 0;
// Insert the default persistent id.
virtual void InsertDefaultPersistentId() = 0;
// Update the persistent id.
virtual void UpdatePersistentId(const uint32_t newId) = 0;
};
#endif //!IOBJECTIDTRACKER_H