mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Tier 3
This commit is contained in:
parent
7f088caeda
commit
40d59cddf9
5 changed files with 21 additions and 21 deletions
|
@ -4,10 +4,10 @@
|
|||
#include "GameScriptRotation.h"
|
||||
#include "newinv2.h"
|
||||
|
||||
static const std::unordered_map<std::string, rotflags> kRotAxes{
|
||||
{"X", rotflags::INV_ROT_X},
|
||||
{"Y", rotflags::INV_ROT_Y},
|
||||
{"Z", rotflags::INV_ROT_Z}
|
||||
static const std::unordered_map<std::string, RotationFlags> kRotAxes{
|
||||
{"X", RotationFlags::INV_ROT_X},
|
||||
{"Y", RotationFlags::INV_ROT_Y},
|
||||
{"Z", RotationFlags::INV_ROT_Z}
|
||||
};
|
||||
|
||||
static const std::unordered_map<std::string, ItemOptions> kItemActions{
|
||||
|
@ -23,16 +23,16 @@ namespace sol {
|
|||
struct GameScriptInventoryObject
|
||||
{
|
||||
std::string name{};
|
||||
inv_objects slot{ INV_OBJECT_PISTOLS };
|
||||
InventoryObjectTypes slot{ INV_OBJECT_PISTOLS };
|
||||
short yOffset{ 0 };
|
||||
float scale{ 1.0f };
|
||||
GameScriptRotation rot{};
|
||||
rotflags rotationFlags{ rotflags::INV_ROT_X };
|
||||
RotationFlags rotationFlags{ RotationFlags::INV_ROT_X };
|
||||
int meshBits{ 0 };
|
||||
ItemOptions action{ ItemOptions::OPT_USE };
|
||||
|
||||
GameScriptInventoryObject() = default;
|
||||
GameScriptInventoryObject(std::string const & a_name, ItemEnumPair a_slot, short a_yOffset, float a_scale, GameScriptRotation const & a_rot, rotflags a_rotationFlags, int a_meshBits, ItemOptions a_actions);
|
||||
GameScriptInventoryObject(std::string const & a_name, ItemEnumPair a_slot, short a_yOffset, float a_scale, GameScriptRotation const & a_rot, RotationFlags a_rotationFlags, int a_meshBits, ItemOptions a_actions);
|
||||
|
||||
static void Register(sol::state* lua);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue