pandemonium_engine/modules/network_synchronizer/compat_object_id.h

20 lines
341 B
C++
Raw Normal View History

2023-12-25 20:12:56 +01:00
#ifndef COMPAT_OBJECT_ID_H
#define COMPAT_OBJECT_ID_H
#include "core/typedefs.h"
struct CompatObjectID {
uint64_t id;
CompatObjectID() :
id(0){};
CompatObjectID(uint64_t p_id) :
id(p_id){};
operator uint64_t() const { return id; }
bool is_valid() const { return id != 0; }
bool is_null() const { return id == 0; }
2023-12-25 20:12:56 +01:00
};
#endif