Revert "Move scripting source files into new filder. Obviously, these won't work yet or even compile."

This reverts commit 8a31dbf644.
This commit is contained in:
hispidence 2021-12-17 23:19:49 +00:00
parent 69de6e4502
commit 6983e09a6a
24 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,56 @@
#include "framework.h"
#include "GameScriptFog.h"
/*** Describes a layer of moving clouds.
As seen in TR4's City of the Dead.
@pregameclass SkyLayer
@pragma nostrip
*/
void GameScriptFog::Register(sol::state* lua)
{
lua->new_usertype<GameScriptFog>("Fog",
sol::constructors<GameScriptFog(GameScriptColor const&, short, short)>(),
/// (@{Color}) RGB sky color
//@mem color
"color", sol::property(&GameScriptFog::SetColor),
/*** (int) min distance.
This is the distance at which the fog starts
@mem minDistance*/
"minDistance", &GameScriptFog::MinDistance,
/*** (int) max distance.
This is the distance at which the fog reaches the maximum strength
@mem maxDistance*/
"maxDistance", & GameScriptFog::MaxDistance
);
}
/***
@tparam Color color RGB color
@tparam int speed cloud speed
@return A SkyLayer object.
@function SkyLayer.new
*/
GameScriptFog::GameScriptFog(GameScriptColor const& col, short minDistance, short maxDistance)
{
SetColor(col);
MinDistance = minDistance;
MaxDistance = maxDistance;
Enabled = true;
}
void GameScriptFog::SetColor(GameScriptColor const& col)
{
R = col.GetR();
G = col.GetG();
B = col.GetB();
}