2023-07-21 09:50:06 +00:00
|
|
|
/**
|
|
|
|
* bb_variant.h
|
|
|
|
* =============================================================================
|
|
|
|
* Copyright 2021-2023 Serhii Snitsaruk
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style
|
|
|
|
* license that can be found in the LICENSE file or at
|
|
|
|
* https://opensource.org/licenses/MIT.
|
|
|
|
* =============================================================================
|
|
|
|
*/
|
2022-10-25 20:01:00 +00:00
|
|
|
|
|
|
|
#ifndef BB_VARIANT_H
|
|
|
|
#define BB_VARIANT_H
|
|
|
|
|
|
|
|
#include "bb_param.h"
|
|
|
|
|
|
|
|
class BBVariant : public BBParam {
|
|
|
|
GDCLASS(BBVariant, BBParam);
|
|
|
|
|
|
|
|
private:
|
2023-08-07 12:29:58 +00:00
|
|
|
Variant::Type type = Variant::NIL;
|
2022-10-25 20:01:00 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2023-12-10 13:35:28 +00:00
|
|
|
public:
|
2023-08-07 12:29:58 +00:00
|
|
|
virtual Variant::Type get_type() const override;
|
2022-10-25 20:01:00 +00:00
|
|
|
void set_type(Variant::Type p_type);
|
|
|
|
|
|
|
|
BBVariant();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BB_VARIANT
|