int LuaPeak::getColor(lua_State *L) { Peak* obj = RefBinding<Peak>::check( L, 1); lua_pushnumber(L, obj->getColor() ); return 1; }