mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-09 03:58:19 +03:00
Move GameScriptAnimations.
This commit is contained in:
parent
8ac6a94e1d
commit
e84e19980a
2 changed files with 0 additions and 0 deletions
21
Scripting/include/Scripting/GameScriptAnimations.h
Normal file
21
Scripting/include/Scripting/GameScriptAnimations.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include "ScriptAssert.h"
|
||||
#include <string>
|
||||
|
||||
namespace sol {
|
||||
class state;
|
||||
}
|
||||
|
||||
struct GameScriptAnimations
|
||||
{
|
||||
bool CrawlExtended; // Extended crawl moveset
|
||||
bool CrouchRoll; // Crouch roll
|
||||
bool CrawlspaceSwandive; // Swandive into crawlspaces
|
||||
bool MonkeyTurn180; // 180 degree turn on monkey swing
|
||||
bool MonkeyAutoJump; // Auto jump to monkey swing when pressing UP + ACTION beneath
|
||||
bool OscillateHang; // Grab thin ledge animation from TR1 and 2
|
||||
bool Pose; // Crossed arms AFK posing
|
||||
|
||||
static void Register(sol::state* lua);
|
||||
};
|
21
Scripting/src/GameScriptAnimations.cpp
Normal file
21
Scripting/src/GameScriptAnimations.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include "frameworkandsol.h"
|
||||
#include "GameScriptAnimations.h"
|
||||
|
||||
/***
|
||||
New custom animations which Lara can perform.
|
||||
@pregameclass Animations
|
||||
@pragma nostrip
|
||||
*/
|
||||
|
||||
void GameScriptAnimations::Register(sol::state* lua)
|
||||
{
|
||||
lua->new_usertype<GameScriptAnimations>("Animations",
|
||||
"crawlExtended", &GameScriptAnimations::CrawlExtended,
|
||||
"crouchRoll", &GameScriptAnimations::CrouchRoll,
|
||||
"crawlspaceSwandive", &GameScriptAnimations::CrawlspaceSwandive,
|
||||
"monkeyTurn180", &GameScriptAnimations::MonkeyTurn180,
|
||||
"monkeyAutoJump", &GameScriptAnimations::MonkeyAutoJump,
|
||||
"oscillateHang", &GameScriptAnimations::OscillateHang,
|
||||
"pose", &GameScriptAnimations::Pose
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue