public static int InitMails(IntPtr l) { int result; try { MailComponent mailComponent = (MailComponent)LuaObject.checkSelf(l); List <ProMail> pbMails; LuaObject.checkType <List <ProMail> >(l, 2, out pbMails); mailComponent.InitMails(pbMails); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }