Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 4ee2dd9

Browse files
committed
Qualify some enum bindings
1 parent 9bb5ffb commit 4ee2dd9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Entities/ACraft.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ enum HatchState
5959
HatchStateCount
6060
};
6161

62-
enum
62+
enum Side
6363
{
6464
RIGHT = 0,
6565
LEFT

Lua/LuaBindingsEntities.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ namespace RTE {
8585
luabind::value("MOVEMENTSTATECOUNT", ACrab::MovementState::MOVEMENTSTATECOUNT)
8686
]
8787
.enum_("Side")[
88-
luabind::value("LEFTSIDE", ACrab::LEFTSIDE), // Doesn't have qualifier
89-
luabind::value("RIGHTSIDE", ACrab::RIGHTSIDE), // Doesn't have qualifier
90-
luabind::value("SIDECOUNT", ACrab::SIDECOUNT) // Doesn't have qualifier
88+
luabind::value("LEFTSIDE", ACrab::Side::LEFTSIDE),
89+
luabind::value("RIGHTSIDE", ACrab::Side::RIGHTSIDE),
90+
luabind::value("SIDECOUNT", ACrab::Side::SIDECOUNT)
9191
]
9292
.enum_("Layer")[
93-
luabind::value("FGROUND", ACrab::FGROUND), // Doesn't have qualifier
94-
luabind::value("BGROUND", ACrab::BGROUND) // Doesn't have qualifier
93+
luabind::value("FGROUND", ACrab::Layer::FGROUND),
94+
luabind::value("BGROUND", ACrab::Layer::BGROUND)
9595
]
9696
.enum_("DeviceHandlingState")[
9797
luabind::value("STILL", ACrab::DeviceHandlingState::STILL),
@@ -152,8 +152,8 @@ namespace RTE {
152152
luabind::value("HatchStateCount", ACraft::HatchState::HatchStateCount)
153153
]
154154
.enum_("Side")[
155-
luabind::value("RIGHT", ACraft::RIGHT), // Doesn't have qualifier
156-
luabind::value("LEFT", ACraft::LEFT) // Doesn't have qualifier
155+
luabind::value("RIGHT", ACraft::Side::RIGHT),
156+
luabind::value("LEFT", ACraft::Side::LEFT)
157157
]
158158

159159
.enum_("CraftDeliverySequence")[
@@ -471,8 +471,8 @@ namespace RTE {
471471
luabind::value("PRONESTATECOUNT", AHuman::ProneState::PRONESTATECOUNT)
472472
]
473473
.enum_("Layer")[
474-
luabind::value("FGROUND", AHuman::FGROUND), // Doesn't have qualifier
475-
luabind::value("BGROUND", AHuman::BGROUND) // Doesn't have qualifier
474+
luabind::value("FGROUND", AHuman::Layer::FGROUND),
475+
luabind::value("BGROUND", AHuman::Layer::BGROUND)
476476
]
477477
.enum_("DeviceHandlingState")[
478478
luabind::value("STILL", AHuman::DeviceHandlingState::STILL),

0 commit comments

Comments
 (0)