Move GameScriptAnimations.

This commit is contained in:
hispidence 2022-01-24 22:25:02 +00:00
parent 8ac6a94e1d
commit e84e19980a
2 changed files with 0 additions and 0 deletions

View 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);
};

View 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
);
}