mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-26 15:33:34 +00:00
9655f0ee45
fix compile issues
20 lines
437 B
C++
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
|