2022-10-25 20:01:00 +00:00
|
|
|
/* bb_variant.h */
|
|
|
|
|
|
|
|
#ifndef BB_VARIANT_H
|
|
|
|
#define BB_VARIANT_H
|
|
|
|
|
|
|
|
#include "bb_param.h"
|
2022-12-15 07:26:52 +00:00
|
|
|
#include "core/object/object.h"
|
|
|
|
#include "core/variant/variant.h"
|
2022-10-25 20:01:00 +00:00
|
|
|
|
|
|
|
class BBVariant : public BBParam {
|
|
|
|
GDCLASS(BBVariant, BBParam);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Variant::Type type;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2022-12-15 07:26:52 +00:00
|
|
|
virtual Variant::Type get_type() const override { return type; }
|
2022-10-25 20:01:00 +00:00
|
|
|
void set_type(Variant::Type p_type);
|
|
|
|
|
|
|
|
public:
|
|
|
|
BBVariant();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BB_VARIANT
|