/* * Attribute: type * * The type of cargo contained within this cargo body, as a * <Constants.EquipType> constant. * * Availability: * * alpha 10 * * Status: * * experimental */ static int l_cargobody_attr_type(lua_State *l) { CargoBody *b = LuaCargoBody::GetFromLua(1); lua_pushstring(l, LuaConstants::GetConstantString(l, "EquipType", b->GetCargoType())); return 1; }
/* * Attribute: type * * The type of cargo contained within this cargo body, as a * <Constants.EquipType> constant. * * Availability: * * alpha 10 * * Status: * * experimental */ static int l_cargobody_attr_type(lua_State *l) { CargoBody *b = LuaObject<CargoBody>::CheckFromLua(1); lua_pushstring(l, EnumStrings::GetString("EquipType", b->GetCargoType())); return 1; }