Index: trunk/src/lua/lua_state.cc
===================================================================
--- trunk/src/lua/lua_state.cc	(revision 510)
+++ trunk/src/lua/lua_state.cc	(revision 511)
@@ -750,4 +750,16 @@
 }
 
+void nv::lua::state::register_enum( const type_entry* type )
+{
+	NV_ASSERT_ALWAYS( type, "type not found!" );
+	NV_ASSERT_ALWAYS( !type->enum_list.empty(), "type not enum!" );
+	type_database* db = type->type_db;
+	for ( auto e : type->enum_list )
+	{
+		lua_pushinteger( m_state, e.value );
+		lua_setglobal( m_state, db->resolve_name( e.name ).data() );
+	}
+}
+
 void nv::lua::state::register_rtti_type( thash64 tid, lua_rtti_push_function p, lua_rtti_read_function r )
 {
