mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Move GameScriptMirror, GameScriptSinkInfo and GameScriptSkyLayer to Scripting.
This commit is contained in:
parent
e0cbde2135
commit
7df2b154a3
9 changed files with 24 additions and 12 deletions
33
Scripting/src/GameScriptMirror.cpp
Normal file
33
Scripting/src/GameScriptMirror.cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
#include "frameworkandsol.h"
|
||||
#include "GameScriptMirror.h"
|
||||
|
||||
/***
|
||||
A mirror effect.
|
||||
As seen in TR4's Coastal Ruins and Sacred Lake levels.
|
||||
|
||||
__Not currently implemented.__
|
||||
|
||||
@pregameclass Mirror
|
||||
@pragma nostrip
|
||||
*/
|
||||
|
||||
void GameScriptMirror::Register(sol::state* lua)
|
||||
{
|
||||
lua->new_usertype<GameScriptMirror>("Mirror",
|
||||
sol::constructors<GameScriptMirror(short, int, int, int, int)>(),
|
||||
"room", &GameScriptMirror::Room,
|
||||
"startX", &GameScriptMirror::StartX,
|
||||
"endX", &GameScriptMirror::EndX,
|
||||
"startZ", &GameScriptMirror::StartZ,
|
||||
"endZ", &GameScriptMirror::EndZ
|
||||
);
|
||||
}
|
||||
|
||||
GameScriptMirror::GameScriptMirror(short room, int startX, int endX, int startZ, int endZ)
|
||||
{
|
||||
Room = room;
|
||||
StartX = startX;
|
||||
EndX = endX;
|
||||
StartZ = startZ;
|
||||
EndZ = endZ;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue