mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
23 lines
362 B
C++
23 lines
362 B
C++
|
#pragma once
|
||
|
|
||
|
/// Used to compile against Godot 3.x
|
||
|
|
||
|
/**
|
||
|
@author AndreaCatania
|
||
|
*/
|
||
|
|
||
|
#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; }
|
||
|
};
|