rj-action-library-cpp/RJPointer.cpp

35 lines
729 B
C++
Raw Permalink Normal View History

2024-08-02 06:21:30 +00:00
/* RJPointer.cpp */
#include "RJPointer.h"
// Registers fields, signals and methods for Godot
void RJPointer::_bind_methods()
{
// caster: RJCaster*
ClassDB::bind_method( D_METHOD( "set_caster", "caster" ), &RJPointer::set_caster );
ClassDB::bind_method( D_METHOD( "get_caster"), &RJPointer::get_caster);
ADD_PROPERTY( PropertyInfo(Variant::OBJECT, "caster", PROPERTY_HINT_NODE_TYPE ), "set_caster", "get_caster" );
GDVIRTUAL_BIND( getPointable, "index" );
}
// Constructor
RJPointer::RJPointer()
{
}
// Destructor
RJPointer::~RJPointer()
{
}
// caster: RJCaster*
RJCaster* RJPointer::get_caster() const { return caster; }
void RJPointer::set_caster( RJCaster* p_caster ) { caster = p_caster; }