TombEngine/TR5Main/Scripting/GameScriptColor.h

37 lines
715 B
C
Raw Normal View History

#pragma once
#include "framework.h"
namespace sol {
class state;
template <typename T> struct as_table_t;
}
class GameScriptColor {
public:
byte r{ 0 };
byte g{ 0 };
byte b{ 0 };
byte a{ 255 };
GameScriptColor(byte r, byte g, byte b);
GameScriptColor(byte r, byte g, byte b, byte a);
GameScriptColor(Vector3 const &);
GameScriptColor(Vector4 const &);
operator Vector3() const;
operator Vector4() const;
2021-07-24 12:26:48 +01:00
byte GetR() const;
void SetR(byte v);
2021-07-24 12:26:48 +01:00
byte GetG() const;
void SetG(byte v);
2021-07-24 12:26:48 +01:00
byte GetB() const;
void SetB(byte v);
2021-07-24 12:26:48 +01:00
byte GetA() const;
void SetA(byte v);
std::string ToString() const;
2021-07-20 17:53:10 +01:00
static void Register(sol::state* state);
};