mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Tier 2
This commit is contained in:
parent
dedb938b24
commit
7f088caeda
6 changed files with 156 additions and 156 deletions
|
@ -10,10 +10,10 @@ static const std::unordered_map<std::string, rotflags> kRotAxes{
|
|||
{"Z", rotflags::INV_ROT_Z}
|
||||
};
|
||||
|
||||
static const std::unordered_map<std::string, item_options> kItemActions{
|
||||
{"USE", item_options::OPT_USE},
|
||||
{"EQUIP", item_options::OPT_EQUIP},
|
||||
{"EXAMINE", item_options::OPT_EXAMINABLE}
|
||||
static const std::unordered_map<std::string, ItemOptions> kItemActions{
|
||||
{"USE", ItemOptions::OPT_USE},
|
||||
{"EQUIP", ItemOptions::OPT_EQUIP},
|
||||
{"EXAMINE", ItemOptions::OPT_EXAMINABLE}
|
||||
};
|
||||
|
||||
namespace sol {
|
||||
|
@ -29,13 +29,13 @@ struct GameScriptInventoryObject
|
|||
GameScriptRotation rot{};
|
||||
rotflags rotationFlags{ rotflags::INV_ROT_X };
|
||||
int meshBits{ 0 };
|
||||
item_options action{ item_options::OPT_USE };
|
||||
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, item_options a_actions);
|
||||
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);
|
||||
|
||||
static void Register(sol::state* lua);
|
||||
|
||||
void SetAction(item_options a_action);
|
||||
void SetAction(ItemOptions a_action);
|
||||
void SetSlot(ItemEnumPair a_slot);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue