Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Combined C++/Lua constructor
- WallItem::WallItem(lua_State *L)
- {
- mObjectTypeNumber = WallItemTypeNumber;
- mWidth = Barrier::DEFAULT_BARRIER_WIDTH;
- mAlreadyAdded = false;
- setNewGeometry(geomPolyLine);
- if(L)
- {
- static LuaFunctionArgList constructorArgList = { {{ END }, { GEOM, INT, END }}, 2 };
- S32 profile = checkArgList(L, constructorArgList, "WallItem", "constructor");
- if(profile == 1)
- {
- setPos(getPointOrXY(L, 1));
- setWidth(getInt(L, 2));
- }
- }
- LUAW_CONSTRUCTOR_INITIALIZATIONS;
- }
Advertisement
Add Comment
Please, Sign In to add comment