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