2021-07-28 18:44:24 +01:00
|
|
|
#include "framework.h"
|
|
|
|
#include "GameScriptInventoryObject.h"
|
|
|
|
|
2021-08-09 00:01:40 +01:00
|
|
|
GameScriptInventoryObject::GameScriptInventoryObject(std::string const& name, ItemEnumPair slot, float yOffset, float scale, float xRot, float yRot, float zRot, short rotationFlags, int meshBits, __int64 operation) : name{ name }, slot{ slot.m_pair.second }, yOffset{ yOffset }, scale{ scale }, xRot{ xRot }, yRot{ yRot }, zRot{ zRot }, rotationFlags{ rotationFlags }, meshBits{ meshBits }, operation{ operation }
|
|
|
|
{}
|
2021-08-03 15:16:55 +01:00
|
|
|
|
2021-07-28 18:44:24 +01:00
|
|
|
void GameScriptInventoryObject::Register(sol::state * lua)
|
|
|
|
{
|
|
|
|
lua->new_usertype<GameScriptInventoryObject>("InventoryObject",
|
2021-08-09 00:01:40 +01:00
|
|
|
sol::constructors<GameScriptInventoryObject(std::string const &, ItemEnumPair, float, float, float, float, float, short, int, __int64)>(),
|
2021-07-28 18:44:24 +01:00
|
|
|
"name", &GameScriptInventoryObject::name,
|
|
|
|
"yOffset", &GameScriptInventoryObject::yOffset,
|
|
|
|
"scale", &GameScriptInventoryObject::scale,
|
|
|
|
"xRot", &GameScriptInventoryObject::xRot,
|
|
|
|
"yRot", &GameScriptInventoryObject::yRot,
|
|
|
|
"zRot", &GameScriptInventoryObject::zRot,
|
|
|
|
"rotationFlags", &GameScriptInventoryObject::rotationFlags,
|
|
|
|
"meshBits", &GameScriptInventoryObject::meshBits,
|
|
|
|
"operation", &GameScriptInventoryObject::operation
|
|
|
|
);
|
|
|
|
}
|