public MailItemNode CreateMailItem(MailsData maildata) { MailItemNode node = null; node = new MailItemNode(); node.Init(maildata); node.InitItem(maildata); return(node); }
private bool OnCreateMailItem() { MailModule module = ModuleManager.Instance.FindModule <MailModule>(); if (module.mMailsList.Count > 0) { for (int id = 0; id < module.mMailsList.Count; id++) { if (module.mMailsList[id].state != 0) { mMailItemNode = MailItemManager.Instance.CreateMailItem(module.mMailsList[id]); } } return(true); } return(false); }