mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-09 20:18:23 +03:00
Move scripting source files into new filder. Obviously, these won't work yet or even compile.
This commit is contained in:
parent
8c82eed3d2
commit
8a31dbf644
20 changed files with 0 additions and 0 deletions
33
Scripting/Source/GameScriptMirror.cpp
Normal file
33
Scripting/Source/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