move enum_* Lua utility functions into struct.lua
save curr_camera in camera.c only if not filtered out