bind IsRegisteredType

This commit is contained in:
Glenn Maynard
2006-10-15 05:54:50 +00:00
parent d38897a6fd
commit 61e58cd51f
+6
View File
@@ -651,11 +651,17 @@ namespace
LuaHelpers::Push( L, sPath ); LuaHelpers::Push( L, sPath );
return 1; return 1;
} }
int IsRegisteredType( lua_State *L )
{
lua_pushboolean( L, IsRegistered(SArg(1)) );
return 1;
}
const luaL_Reg ActorUtilTable[] = const luaL_Reg ActorUtilTable[] =
{ {
LIST_METHOD( GetFileType ), LIST_METHOD( GetFileType ),
LIST_METHOD( ResolvePath ), LIST_METHOD( ResolvePath ),
LIST_METHOD( IsRegisteredType ),
{ NULL, NULL } { NULL, NULL }
}; };
} }