mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 20:46:47 +03:00
Change InventoryAdd/Remove/GetCount/SetCount and GameScriptInventoryObject to use ItemEnumPair.
This commit is contained in:
parent
5458e7a67e
commit
d3742cb87e
3 changed files with 14 additions and 25 deletions
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include <string>
|
||||
#include "ItemEnumPair.h"
|
||||
|
||||
namespace sol {
|
||||
class state;
|
||||
|
@ -8,7 +9,7 @@ namespace sol {
|
|||
struct GameScriptInventoryObject
|
||||
{
|
||||
std::string name;
|
||||
short slot;
|
||||
inv_objects slot;
|
||||
float yOffset;
|
||||
float scale;
|
||||
float xRot;
|
||||
|
@ -18,7 +19,7 @@ struct GameScriptInventoryObject
|
|||
int meshBits;
|
||||
__int64 operation;
|
||||
|
||||
GameScriptInventoryObject(std::string name, short slot, float yOffset, float scale, float xRot, float yRot, float zRot, short rotationFlags, int meshBits, __int64 operation);
|
||||
GameScriptInventoryObject(std::string const & name, ItemEnumPair slot, float yOffset, float scale, float xRot, float yRot, float zRot, short rotationFlags, int meshBits, __int64 operation);
|
||||
|
||||
static void Register(sol::state* lua);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue