public byte[] Write() { byte[] m; KMP kmp_data; kmp_data = new KMP(); kmp_data.KartPoint = StartPositions.ToKTPT(); kmp_data.EnemyPoint = EnemyRoutes.ToENPT(); kmp_data.EnemyPointPath = EnemyRoutes.ToENPH(); kmp_data.ItemPoint = ItemRoutes.ToITPT(); kmp_data.ItemPointPath = ItemRoutes.ToITPH(); kmp_data.CheckPoint = CheckPoints.ToCKPT(); kmp_data.CheckPointPath = CheckPoints.ToCKPH(); kmp_data.GlobalObject = Objects.ToGOBJ(); kmp_data.PointInfo = Routes.ToPOTI(); kmp_data.Area = Area.ToAREA(); kmp_data.Camera = Camera.ToCAME(); kmp_data.JugemPoint = RespawnPoints.ToJGPT(); kmp_data.CourseSect = new KMPSections.CORS(); kmp_data.CannonPoint = new KMPSections.CNPT(); kmp_data.MissionPoint = new KMPSections.MSPT(); kmp_data.StageInfo = StageInformation.ToSTGI(); kmp_data.GliderPoint = GliderRoutes.ToGLPT(); kmp_data.GliderPointPath = GliderRoutes.ToGLPH(); m = kmp_data.Write(); return(m); }