Turbo Engine 0.3
A C++ game engine using Allegro 5
turbo::ScriptField Struct Reference

A public, inspector-editable field exposed by a Lua script (any number / boolean / string declared on the script table before load()). More...

#include <LuaComponent.hpp>

Public Types

enum class  Type { Number , Bool , String }

Public Attributes

std::string name
Type type = Type::Number
double number = 0.0
bool boolean = false
std::string text

Detailed Description

A public, inspector-editable field exposed by a Lua script (any number / boolean / string declared on the script table before load()).

Member Enumeration Documentation

◆ Type

enum class turbo::ScriptField::Type
strong
Enumerator
Number 
Bool 
String 

Member Data Documentation

◆ boolean

bool turbo::ScriptField::boolean = false

◆ name

std::string turbo::ScriptField::name

◆ number

double turbo::ScriptField::number = 0.0

◆ text

std::string turbo::ScriptField::text

◆ type

Type turbo::ScriptField::type = Type::Number

The documentation for this struct was generated from the following file: