Esempio n. 1
0
 static int GetName(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         EffectRenderObj obj = (EffectRenderObj)ToLua.CheckObject(L, 1, typeof(EffectRenderObj));
         string          o   = obj.GetName();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }