private IVRProjectConfig CreateIVRProjectConfig(IVRProject project) { IVRProjectConfig resProject = new IVRProjectConfig(); resProject.Name = project.Name; foreach (var curMenu in project.MenuList) { resProject.MenuList.Add(curMenu.GetConfig()); } return(resProject); }
private IVRProject GenerateIVRProjectFromConfig(IVRProjectConfig config) { IVRProject resproject = new IVRProject(); resproject.Name = config.Name; foreach (var curMenuConfig in config.MenuList) { resproject.MenuList.Add(GetIVRMenuFromConfig(curMenuConfig)); } return(resproject); }