static int SaveRenderTexture(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WCG.FogForGame obj = (WCG.FogForGame)ToLua.CheckObject <WCG.FogForGame>(L, 1); obj.SaveRenderTexture(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }