TombEngine/Scripting/Source/GameScriptFog.h

24 lines
411 B
C
Raw Normal View History

2021-11-22 16:16:58 +01:00
#pragma once
2021-11-23 09:10:07 +01:00
#include "GameScriptColor.h"
2021-11-22 16:16:58 +01:00
namespace sol {
class state;
}
2021-11-23 09:10:07 +01:00
struct GameScriptFog
{
bool Enabled{ false };
byte R{ 0 };
byte G{ 0 };
byte B{ 0 };
short MinDistance{ 0 };
short MaxDistance{ 0 };
2021-11-22 16:16:58 +01:00
2021-11-23 09:10:07 +01:00
GameScriptFog() = default;
GameScriptFog(GameScriptColor const& col, short minDistance, short maxDistance);
void SetColor(GameScriptColor const& col);
2021-11-22 16:16:58 +01:00
2021-11-23 09:10:07 +01:00
static void Register(sol::state*);
};