mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Move scripting source files into new filder. Obviously, these won't work yet or even compile.
This commit is contained in:
parent
a9d8b78c96
commit
69de6e4502
24 changed files with 3 additions and 3 deletions
|
@ -1,56 +0,0 @@
|
|||
#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();
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue