public static MechaInfo GetMechaInfo(this MechaConfig mechaConfig, MechaCamp mechaCamp) { MechaInfo mechaInfo = new MechaInfo(mechaConfig.MechaConfigName, mechaCamp, mechaConfig.Clone()); foreach (MechaConfig.Config config in mechaConfig.MechaComponentList) { MechaComponentConfig mcc = ConfigManager.Instance.GetMechaComponentConfig(config.MechaComponentKey); MechaComponentInfo mci = new MechaComponentInfo(mcc, config.MechaComponentQuality, config.MechaComponentAlias); GridPosR finalGPR = config.GridPosR + ConfigManager.EDIT_AREA_HALF_SIZE * GridPosR.One; mechaInfo.AddMechaComponentInfo(mci, finalGPR); } return(mechaInfo); }