openblocks/src/core/value.h
2024-10-09 16:08:41 +02:00

20 lines
No EOL
259 B
C++

#pragma once
#include <string>
enum ValueType {
OB_NIL = 0,
OB_BOOLEAN,
OB_INTEGER,
OB_FLOAT,
OB_STRING,
};
struct Value {
ValueType type;
union {
bool b;
int i;
float f;
std::string str;
};
};