{"id":456762,"date":"2025-04-21T15:00:19","date_gmt":"2025-04-21T15:00:19","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=456762"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2025-04-21T15:00:19","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=456762","title":{"rendered":"<span>\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Unity<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u044f \u043d\u0430\u043a\u0430\u043d\u0443\u043d\u0435 <a href=\"https:\/\/youtu.be\/d7K_77KRXHU?si=vj8hS4WaRVQlgo3Z\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e<\/a> \u0438 &#171;\u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u043b\u0441\u044f&#187;\u2026 \u0442\u0435\u043c, \u0447\u0442\u043e \u0432 \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0432\u0435\u0449\u044c &#8212; \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043c\u043e\u0435\u0433\u043e \u0431\u0430\u0442\u0442\u0445\u0435\u0440\u0442\u0430, \u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e, \u0435\u0441\u043b\u0438 \u0436\u0435 \u043d\u0435\u0442 &#8212; \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0441\u0440\u0430\u0437\u0443 \u0441\u044e\u0434\u0430 \u043a \u043c\u043e\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u0430\u0440\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c:<\/p>\n<ul>\n<li>\n<p>\u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e \u0432\u0441\u0435\u043c \u043a\u043e\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0432 GameDataV1 \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 GameDataV2. \u0410 \u044d\u0442\u043e, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0441\u043e\u0442\u043d\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u0434\u0430\u0436\u0435 \u043d\u0430 \u0433\u0438\u043f\u0435\u0440\/\u0433\u0438\u0431\u0440\u0438\u0434\/\u0433\u0438\u0434\u0440\u0430\/\u0433\u0438\u0433\u0430\/\u0438\u043b\u0438-\u043a\u0430\u043a-\u0438\u0445-\u0442\u0430\u043c-\u0441\u0435\u0439\u0447\u0430\u0441 \u043a\u0430\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0433\u0440\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u0432 \u0440\u0430\u0437\u044b \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0435\u0441\u043b\u0438 \u0432\u0435\u0441\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a GameStateBase (\u0431\u043e\u043b\u044c\u0448\u0435 \u044f \u043d\u0435 \u0432\u0438\u0436\u0443 \u043f\u0440\u0438\u0447\u0438\u043d \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043b\u0430\u0441\u0441) \u0438 \u043a\u0430\u0436\u0434\u043e\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0438\u0433\u0440\u043e\u0432\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u0431\u0443\u0434\u0435\u0442 c \u044f\u0432\u043d\u044b\u043c \u043f\u0440\u0438\u0432\u0438\u0434\u0435\u043d\u0438\u0435\u043c \u0432 \u0432\u0438\u0434\u0435 <em>int someData = ((GameDataV2)data).Value;<\/em><\/p>\n<\/li>\n<li>\n<p>\u043a\u0443\u0447\u0430 \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430 &#8212; \u0435\u0441\u043b\u0438 \u044f 100 \u0440\u0430\u0437 \u0438\u0437\u043c\u0435\u043d\u044e \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0432 \u043a\u043e\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 100 &#171;\u043b\u0438\u0448\u043d\u0438\u0445&#187; \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \u041d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u043a\u043e\u0434\u0430 \u0441\u0430\u043c\u0438\u0445 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439, \u043d\u043e \u043e\u043d \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0434\u0435\u0441\u044c \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0439 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0441\u043f\u043e\u0441\u043e\u0431 &#171;\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e&#187; \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e &#8212; \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0443\u043c\u0435\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e JsonUtility, \u0430 \u0435\u0449\u0435 Newtonsoft.Json (\u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u043b\u0438\u0441\u0442\u043d\u0443\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c 10-\u043c\u0438\u043d\u0443\u0442\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440). \u041d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0437\u0430 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0438 \u0442\u0430\u043a\u043e\u0435 \u043d\u0435 \u043f\u043e\u0434 \u0441\u0438\u043b\u0443.<\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Newtonsoft \u0438 (\u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435) \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <a href=\"https:\/\/www.newtonsoft.com\/json\/help\/html\/CustomJsonConverter.htm\" rel=\"noopener noreferrer nofollow\">\u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 JsonConverter&#8217;\u044b<\/a> \u0438 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0432\u0441\u0435\u0445 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u043e\u0432 \u0438\u0437 \u0432\u0438\u0434\u0435\u043e.<\/p>\n<h3>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440:<\/h3>\n<ul>\n<li>\n<p>\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e. \u0412 \u043d\u0435\u0439 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u044b \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u043d\u044e\u0430\u043d\u0441\u044b \u0440\u0430\u0434\u0438 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e\u0441\u0442\u0438. \u041a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0431\u0430\u0433\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u044b\u0445 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u0440\u043e\u0434\u0435 <a href=\"http:\/\/FastMigrations.Json.Net\" rel=\"noopener noreferrer nofollow\">FastMigrations.Json.Net<\/a>. \u041a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u044f\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u0431\u0443\u0434\u0443\u0442 \u0431\u043e\u043b\u0435\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438. \u0425\u043e\u0442\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u0438\u043a\u043e\u043c \u0432 \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041c\u043d\u0435 \u0432\u0441\u0435 \u0435\u0449\u0435 \u043e\u0447\u0435\u043d\u044c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0438\u0434\u0435\u044f \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0438 \u044f \u043d\u0435 \u0432\u0438\u0434\u0435\u043b \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0440\u043e\u043b\u0438\u043a\u043e\u0432. \u041d\u043e \u043a\u0440\u043e\u043c\u0435 \u0438\u0434\u0435\u0438, \u043c\u043d\u0435 \u0432 \u043d\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f. \u0421\u0430\u043c\u0430 \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0437 \u0441\u0442\u0440\u0430\u0445\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0442\u043e\u043b\u043f\u0443 \u043c\u0430\u0441\u043b\u044f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0435\u0437\u0434\u0443\u043c\u043d\u043e \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044f\u0442 \u0441\u0432\u043e\u0438 PlayerData\/SaveData\/GameData \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043e\u0439\u0442\u0438 (\u0438 \u0442\u043e, \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0435\u0441\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b), \u0435\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u043e\u0434 \u0432\u0435\u0431, \u0443 \u0432\u0430\u0441 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442 \u043d\u0430 \u0441\u0447\u0435\u0442\u0443, \u0430 newtonsoft \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0446\u0435\u043b\u044b\u0445 250 \u041a\u0411 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0431\u0438\u043b\u0434\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0434\u0443\u0448\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u0438\u0447\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0441\u043a\u043e\u0447\u0438\u0442\u044c \u043d\u0430 \u043c\u043e\u0439 <a href=\"https:\/\/t.me\/GamedevForge\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b<\/a> \u0438\u043b\u0438, \u0435\u0441\u043b\u0438 \u043e\u0442 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u0441 \u043e\u0442\u0434\u0435\u043b\u044f\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b, \u0434\u0430\u0436\u0435 \u0437\u0430\u0434\u0443\u043c\u0430\u0442\u044c\u0441\u044f \u043e <a href=\"https:\/\/teletype.in\/@redhurt\/mentoring\" rel=\"noopener noreferrer nofollow\">\u043c\u0435\u043d\u0442\u043e\u0440\u0441\u0442\u0432\u0435<\/a>.<\/p>\n<h3>\u041f\u043e\u0435\u0445\u0430\u043b\u0438<\/h3>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439. \u0415\u0441\u0442\u044c 3 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u0435\u0434\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, \u043c\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c \u0432 \u0422\u0417. \u0414\u0430\u043b\u044c\u0448\u0435 \u043e\u0442\u043e\u0439\u0434\u0435\u043c \u043e\u0442 \u0432\u044b\u0440\u043e\u0436\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432 \u0432\u0438\u0434\u0435\u043e, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0442\u043a\u0443 \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0432 \u043d\u0435\u0439 \u0431\u0435\u0437\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u043e \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c. \u0417\u0430\u0442\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c \u044d\u0442\u043e \u0434\u043b\u044f \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0422\u043e \u0435\u0441\u0442\u044c, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u0435\u0439\u0441 &#8212; \u043c\u044b \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0434\u0432\u0435 \u043d\u043e\u0432\u044b\u0445. <\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0430\u0448 \u0433\u0438\u0442 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7ef\/cc2\/c35\/7efcc2c359154dd536459412e403a901.png\" alt=\"image.png\" width=\"323\" height=\"130\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/7ef\/cc2\/c35\/7efcc2c359154dd536459412e403a901.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7ef\/cc2\/c35\/7efcc2c359154dd536459412e403a901.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>image.png<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0447\u0435\u0441\u0442\u043d\u043e: \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0438 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u044f \u043d\u0430 \u0432\u0435\u0442\u043a\u0438 \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 1 \u0438 2. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u043b\u0443\u0447\u0430\u0439 \u0441 &#171;\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c&#187;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0438\u0433\u0440\u0430\u043b \u043d\u0430 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u043a\u043e\u0447\u0438\u043b \u043e\u0434\u043d\u0443 \u0432\u0435\u0440\u0441\u0438\u044e. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0431\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438: \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 0 \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044e 1 \u0438 \u0441 1 \u043d\u0430 2.<\/p>\n<p>\u041a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445:<\/p>\n<ol>\n<li>\n<p>\u0425\u0440\u0430\u043d\u0438\u043c \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u043b\u0435 \u0438\u043c\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0435\u0440\u0435\u0432\u0430 \u0438 \u043a\u0430\u043c\u043d\u044f, \u0438 ,\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 , \u0432\u0435\u0440\u0441\u0438\u044e, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"cs\">[Serializable] public class GameData {     public string Version = \"0.1.0\";     public string PlayerName;     public int Wood;     public int Stone; }<\/code><\/pre>\n<p>   2. \u0417\u0430\u0442\u0435\u043c \u0431\u0440\u0430\u0432\u044b\u0435 \u0433\u0435\u0439\u043c\u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u0440\u0435\u0448\u0438\u043b\u0438, \u0447\u0442\u043e \u0443 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0438\u043c\u044f \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c   \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e:<\/p>\n<pre><code class=\"cs\">[Serializable]     public class GameData {     public string Version = \"0.1.0\";     public string FirstName;     public string LastName;     public int Wood;     public int Stone; }<\/code><\/pre>\n<p>   3. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u0445\u0440\u0430\u043d\u0438\u043c \u0438\u0445 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435, \u0430 \u043d\u0435 \u0432\u0442\u0443\u043f\u0443\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438. \u0420\u0435\u0441\u0443\u0440\u0441\u044b \u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0430 \u043d\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u0443\u0436\u0435 \u0437\u0430 2 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043d\u0435 \u0432\u0435\u0440\u0438\u0442\u044c \u0413\u0414 \u043d\u0430 \u0441\u043b\u043e\u0432\u043e \u0438 \u0441\u0440\u0430\u0437\u0443 \u0433\u043e\u0442\u043e\u0432\u0438\u043c\u0441\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043e\u0431\u0430\u0432\u044f\u0442\u0441\u044f \u0435\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0410 \u0435\u0449\u0435 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<pre><code class=\"cs\">[Serializable] public class GameData {     public string Version = \"0.1.0\";     public string FirstName;     public string LastName;     public List&lt;Resource&gt; Resources = new(); }  [Serializable] public class Resource {     public string Name;     public int Amount; }<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0438 \u043e\u0431\u0449\u0438\u0439 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c:<\/p>\n<pre><code class=\"cs\">public interface IMigration {     Version ToVersion { get; }     JObject Migrate(JObject data); }<\/code><\/pre>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e JObject \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/articles\/481514\/\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>, <a href=\"https:\/\/kodershop.com\/blog\/dot-net-tutorials-15\/what-is-jobject-in-json-net-345#:~:text=In%20the%20case%20of%20C%23,properties%20for%20manipulating%20JSON%20data.\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a> \u0438 <a href=\"https:\/\/dev.to\/iamrule\/how-to-c-using-the-jobject-class-47e2\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0415\u0441\u043b\u0438 \u043f\u043e \u0442\u0443\u043f\u043e\u043c\u0443 (\u0438\u043d\u0430\u0447\u0435 \u0438 \u043d\u0435 \u043c\u043e\u0433\u0443), \u0442\u043e \u044d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u0434\u0435-\u0442\u043e \u043f\u043e\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u044b\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u043c. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e \u043a\u043b\u044e\u0447\u0430\u043c, \u043a\u0430\u043a \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u043a \u043f\u043e\u043b\u044f\u043c \u0432 JSON \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0445 \u043a\u0430\u043a \u043d\u0430\u043c \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f. \u0418 \u0432\u0441\u0435 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0445 \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 &#8212; \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0432 \u0434\u0440\u0443\u0433\u0443\u044e. \u0422\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0437 \u0441\u0442\u0430\u0440\u044b\u0445 \u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0435. \u0425\u043e\u0442\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e &#8212; \u043e\u043d\u0438 \u0438 \u0441\u0430\u043c\u0438 \u0437\u0430\u0442\u0440\u0443\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 &#8212; \u043d\u043e \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u044d\u043d\u0442\u0440\u043e\u043f\u0438\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0443\u0434\u0430\u043b\u0438\u043c \u0441\u0440\u0430\u0437\u0443.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c System.Version. \u0412 \u043d\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (<a href=\"http:\/\/major.minor.build\" rel=\"noopener noreferrer nofollow\">major.minor.build<\/a>) \u0438 \u0443\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f (\u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0430\u043c\u043e\u043c\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c, \u043a\u0430\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u043e\u0432\u0435\u0435: &#171;1.2.3&#187; \u0438\u043b\u0438 &#171;1.3.2&#187;)<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439:<\/p>\n<pre><code class=\"cs\">public class Migrator {     private readonly IOrderedEnumerable&lt;IMigration&gt; _migrations;      public Migrator(params IMigration[] migrations) =&gt;          _migrations = migrations.OrderBy(x =&gt; x.ToVersion);      public T Execute&lt;T&gt;(string rawData)     {         JObject data = JObject.Parse(rawData);         Version version = new(data[\"Version\"]!.ToString());          if (version.CompareTo(_migrations.Last().ToVersion) &gt;= 0)             return Parse&lt;T&gt;(data);          foreach (IMigration migration in _migrations)         {             if (version.CompareTo(migration.ToVersion) &lt; 0)             {                 data = migration.Migrate(data);                 data[\"Version\"] = migration.ToVersion.ToString();                 version = migration.ToVersion;             }         }          return Parse&lt;T&gt;(data);     }      private T Parse&lt;T&gt;(JObject data) =&gt;          JsonConvert.DeserializeObject&lt;T&gt;(data.ToString()); }<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<ol start=\"4\">\n<li>\n<p>\u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043f\u043e\u0434\u0430\u0435\u043c \u0441\u0430\u043c\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c \u0438\u0433\u0440\u044b) \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e \u0432\u0435\u0440\u0441\u0438\u0438. System.Version \u0443\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 IComparable, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 OrderBy \u0441\u0430\u043c \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0430\u044f ToVersion \u043d\u043e\u0432\u0435\u0435.<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 Execute \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u0435 \u0441\u0442\u0430\u0440\u0448\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439, \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0449\u0435\u0439 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. \u0422\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u043e\u0432\u044b\u043c\u0438 \u0438 \u043c\u043e\u0436\u0435\u043c \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0438\u0445 \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u043f\u043e\u0434\u0440\u044f\u0434 \u0434\u0435\u043b\u0430\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443. \u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043c\u043b\u0430\u0434\u0448\u0435 \u0442\u043e\u0439, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438, \u0442\u043e \u044d\u0442\u0443 \u0441\u0430\u043c\u0443\u044e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c. \u0417\u0430\u0442\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u0440\u0441\u0438\u043c \u0438\u0437 JSON \u043d\u0430\u0448\u0438, \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439, \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ol>\n<blockquote>\n<p>\u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/system.version.compareto?view=net-9.0\" rel=\"noopener noreferrer nofollow\">Version.CompareTo<\/a>:<\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u0440\u0430\u0432\u043d\u044b, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 0<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442 (\u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a\u0430\u043a \u0431\u044b &#171;\u0441\u043b\u0435\u0432\u0430&#187; \u043e\u0442 CompareTo) \u043d\u043e\u0432\u0435\u0435, \u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 1<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u0440\u0448\u0435 &#8212; \u0442\u043e -1<\/p>\n<\/li>\n<\/ul>\n<\/blockquote>\n<h3>\u041d\u0430\u0448\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/h3>\n<p>\u041a\u0430\u043a \u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043c\u044f \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u044e \u0438\u0433\u0440\u043e\u043a\u0430 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u0449\u0435\u0433\u043e PlayerName. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0432\u0441\u0435 \u0438\u0433\u0440\u043e\u043a\u0438 \u043c\u043e\u043b\u043e\u0434\u0446\u044b \u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0438\u0441\u0430\u043b\u0438 \u0438\u043c\u044f \u0438\u0433\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u0434\u0432\u0430 \u0441\u043b\u043e\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u043f\u043e\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u0435\u043b\u0438\u0442\u044c. \u0417\u043d\u0430\u0447\u0438\u0442, \u043d\u0430\u0448\u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cs\">public class Migration_1_2 : IMigration {     public Version ToVersion { get; } = new Version(0, 2, 0);      public JObject Migrate(JObject data)     {         string fullName = data[\"PlayerName\"].ToString();         string[] names = fullName.Split(' ');          data[\"FirstName\"] = names[0];         data[\"LastName\"] = names[1];          data.Remove(\"PlayerName\");          return data;     } }<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043d\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0430 \u0441\u0440\u0430\u0437\u0443 \u0441\u043f\u0438\u0441\u043a\u043e\u043c. \u0422\u043e\u0433\u0434\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a Resources \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0437 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 Wood \u0438 Stone:<\/p>\n<pre><code class=\"cs\">public class Migration_2_3 : IMigration {     public Version ToVersion { get; } = new Version(0, 3, 0);      public JObject Migrate(JObject data)     {         int woodAmount = data[\"Wood\"]?.Value&lt;int&gt;() ?? 0;         int stoneAmount = data[\"Stone\"]?.Value&lt;int&gt;() ?? 0;         JArray resources = data[\"Resources\"] as JArray ?? new JArray();          resources.Add(JObject.FromObject(new { Name = \"Wood\", Amount = woodAmount }));         resources.Add(JObject.FromObject(new { Name = \"Stone\", Amount = stoneAmount }));          data[\"Resources\"] = resources;          data.Remove(\"Wood\");         data.Remove(\"Stone\");          return data;     } }<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0443\u043c\u0435\u0442\u044c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u0430\u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e, \u043d\u0430\u0434\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043a\u043e\u0434\u0430:<\/p>\n<pre><code class=\"cs\">string json = File.ReadAllText(Path); GameData data = new Migrator(new Migration_1_2(), new Migration_2_3())     .Execute&lt;GameData&gt;(json);<\/code><\/pre>\n<h3>\u0423\u0431\u0435\u0434\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h3>\n<p>\u0411\u0435\u0437 \u043b\u0438\u0448\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0442\u043a\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043b\u0435\u0439\u043c\u043e\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4d6\/ddb\/58f\/4d6ddb58f7657fb0d7c00bc15efd1a35.png\" alt=\"image.png\" width=\"505\" height=\"279\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/4d6\/ddb\/58f\/4d6ddb58f7657fb0d7c00bc15efd1a35.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4d6\/ddb\/58f\/4d6ddb58f7657fb0d7c00bc15efd1a35.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>image.png<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p>\u0432 Saved Data \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u044b\u0440\u043e\u0439 JSON, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435<\/p>\n<\/li>\n<li>\n<p>\u0432 Game Data \u0431\u0443\u0434\u0443\u0442 \u043f\u0430\u0440\u0441\u0438\u0442\u044c\u0441\u044f \u0441\u044b\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u043e\u0434 GameDataEditor:<\/p>\n<pre><code class=\"cs\">public class GameDataEditor : MonoBehaviour {     [SerializeField, TextArea, ReadOnly] private string _savedData;     [SerializeField] private GameData _gameData;      private string Path =&gt; System.IO.Path.Combine(Application.streamingAssetsPath, \"GameData.json\");      [Button]     private void Save() =&gt;         File.WriteAllText(Path, JsonConvert.SerializeObject(_gameData));      [Button]     private void Load()     {         string json = File.ReadAllText(Path);         _gameData = new Migrator(new Migration_1_2(), new Migration_2_3())             .Execute&lt;GameData&gt;(json);     }      [Button]     private void Show()     {         if (File.Exists(Path))             _savedData = File.ReadAllText(Path);     }      [Button]     private void Clean()     {         _savedData = null;         _gameData = null;     } }<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 Button \u0438 ReadOnly \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <a href=\"https:\/\/odininspector.com\/\" rel=\"noopener noreferrer nofollow\">Odin Inspector<\/a>, \u043d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u0430 Tri Inspector \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 ContextMenu (\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0442\u0430\u043a \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f).<\/p>\n<p>\u0412\u0432\u0435\u0434\u0435\u043c \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435, \u043d\u0430\u0436\u043c\u0435\u043c Save \u0438 Show. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 Saved Data:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/210\/826\/679\/210826679a2ab84435830c64e02c68c8.gif\" alt=\"migration_1.gif\" width=\"544\" height=\"306\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/210\/826\/679\/210826679a2ab84435830c64e02c68c8.gif 780w,&#10;       https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/210\/826\/679\/210826679a2ab84435830c64e02c68c8.gif 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>migration_1.gif<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u043f\u0440\u044b\u0433\u043d\u0435\u043c \u043d\u0430 \u0432\u0435\u0442\u043a\u0443 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439, \u043e\u0447\u0438\u0441\u0442\u0438\u043c \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f. \u041f\u0440\u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u0443\u0432\u0438\u0434\u0435\u043c John \u0438 Doe \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u043b\u044f\u0445 FirstName \u0438 SecondName \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a46\/ae7\/5ce\/a46ae75ce662c802327b853331b415c1.gif\" alt=\"migration_2.gif\" width=\"544\" height=\"306\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a46\/ae7\/5ce\/a46ae75ce662c802327b853331b415c1.gif 780w,&#10;       https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a46\/ae7\/5ce\/a46ae75ce662c802327b853331b415c1.gif 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>migration_2.gif<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0435 &#171;\u0441\u043c\u043e\u0442\u0440\u0435\u043b&#187; GameDataEditor, \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u043f\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441 1 \u0438 2.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bc5\/e7b\/370\/bc5e7b3701c7e177e2a1d21c1bd166f6.png\" alt=\"image.png\" width=\"261\" height=\"85\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/bc5\/e7b\/370\/bc5e7b3701c7e177e2a1d21c1bd166f6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bc5\/e7b\/370\/bc5e7b3701c7e177e2a1d21c1bd166f6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>image.png<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2 \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044e 3. \u041f\u043e\u0434\u0445\u043e\u0434 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439: \u0447\u0438\u0441\u0442\u0438\u043c \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Load:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5ed\/020\/b6b\/5ed020b6bb2790aef108bd665607dad1.gif\" alt=\"migration_3.gif\" width=\"544\" height=\"306\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5ed\/020\/b6b\/5ed020b6bb2790aef108bd665607dad1.gif 780w,&#10;       https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5ed\/020\/b6b\/5ed020b6bb2790aef108bd665607dad1.gif 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>migration_3.gif<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b GameData \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0443 GameData old \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e99\/ef4\/98f\/e99ef498f97fe87c335239fa753bbc89.gif\" alt=\"migration_4.gif\" width=\"544\" height=\"306\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e99\/ef4\/98f\/e99ef498f97fe87c335239fa753bbc89.gif 780w,&#10;       https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e99\/ef4\/98f\/e99ef498f97fe87c335239fa753bbc89.gif 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>migration_4.gif<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u0443\u0430\u043b\u044f! \u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434\u043e\u0441 \u043d\u0435 \u043f\u043b\u043e\u0445\u043e\u0439, \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u0441\u043a\u0440\u043e\u043c\u043d\u043e\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 (\u0445\u043e\u0442\u044f \u0438 \u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0434\u043d\u044b\u043c JsonUtility).<\/p>\n<p>\u0414\u043b\u044f \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0445, \u0432\u0441\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u043e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439. \u0422\u0430\u043c \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u0430 \u0434\u043b\u044f \u0442\u0435\u0445, \u0447\u0442\u043e \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 (\u0445\u043e\u0442\u044c \u0442\u0430\u043c \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0434 \u0441\u043e\u0442\u043d\u044e \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430). <\/p>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438 \u0438 \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430<\/h3>\n<p><a href=\"https:\/\/t.me\/GamedevForge\" rel=\"noopener noreferrer nofollow\">\u041c\u043e\u0439 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u043a\u0430\u043d\u0430\u043b<\/a><\/p>\n<p><a href=\"https:\/\/teletype.in\/@redhurt\/mentoring\" rel=\"noopener noreferrer nofollow\">\u041c\u0435\u043d\u0442\u043e\u0440\u0441\u0442\u0432\u043e<\/a><\/p>\n<p><a href=\"https:\/\/youtu.be\/d7K_77KRXHU?si=TNhqNlj9ebBvdOQk\" rel=\"noopener noreferrer nofollow\">\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e<\/a><\/p>\n<p><a href=\"http:\/\/FastMigrations.Json.Net\" rel=\"noopener noreferrer nofollow\">FastMigrations.Json.Net<\/a>: <a href=\"https:\/\/github.com\/vangogih\/FastMigrations.Json.Net\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/vangogih\/FastMigrations.Json.Net<\/a><\/p>\n<p><a href=\"https:\/\/www.newtonsoft.com\/json\" rel=\"noopener noreferrer nofollow\">NewtonSoft.Json<\/a><\/p>\n<p><a href=\"https:\/\/www.newtonsoft.com\/json\/help\/html\/CustomJsonConverter.htm\" rel=\"noopener noreferrer nofollow\">Custom JsonConverter<\/a><\/p>\n<p>JObject:<\/p>\n<ol start=\"8\">\n<li>\n<p><a href=\"https:\/\/dev.to\/iamrule\/how-to-c-using-the-jobject-class-47e2\" rel=\"noopener noreferrer nofollow\">https:\/\/dev.to\/iamrule\/how-to-c-using-the-jobject-class-47e2<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/kodershop.com\/blog\/dot-net-tutorials-15\/what-is-jobject-in-json-net-345#:~:text=In%20the%20case%20of%20C%23,properties%20for%20manipulating%20JSON%20data\" rel=\"noopener noreferrer nofollow\">https:\/\/kodershop.com\/blog\/dot-net-tutorials-15\/what-is-jobject-in-json-net-345#:~:text=In%20the%20case%20of%20C%23,properties%20for%20manipulating%20JSON%20data<\/a><a href=\"https:\/\/kodershop.com\/blog\/dot-net-tutorials-15\/what-is-jobject-in-json-net-345#:~:text=In%20the%20case%20of%20C%23,properties%20for%20manipulating%20JSON%20data.\" rel=\"noopener noreferrer nofollow\">.<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/481514\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/481514\/<\/a><\/p>\n<\/li>\n<\/ol>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/system.version.compareto?view=net-9.0\" rel=\"noopener noreferrer nofollow\">Version.CompareTo<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/902624\/\"> https:\/\/habr.com\/ru\/articles\/902624\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u044f \u043d\u0430\u043a\u0430\u043d\u0443\u043d\u0435 <a href=\"https:\/\/youtu.be\/d7K_77KRXHU?si=vj8hS4WaRVQlgo3Z\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e<\/a> \u0438 &#171;\u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u043b\u0441\u044f&#187;\u2026 \u0442\u0435\u043c, \u0447\u0442\u043e \u0432 \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0432\u0435\u0449\u044c &#8212; \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043c\u043e\u0435\u0433\u043e \u0431\u0430\u0442\u0442\u0445\u0435\u0440\u0442\u0430, \u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e, \u0435\u0441\u043b\u0438 \u0436\u0435 \u043d\u0435\u0442 &#8212; \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0441\u0440\u0430\u0437\u0443 \u0441\u044e\u0434\u0430 \u043a \u043c\u043e\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u0430\u0440\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c:<\/p>\n<ul>\n<li>\n<p>\u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e \u0432\u0441\u0435\u043c \u043a\u043e\u0434\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0432 GameDataV1 \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 GameDataV2. \u0410 \u044d\u0442\u043e, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0441\u043e\u0442\u043d\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u0434\u0430\u0436\u0435 \u043d\u0430 \u0433\u0438\u043f\u0435\u0440\/\u0433\u0438\u0431\u0440\u0438\u0434\/\u0433\u0438\u0434\u0440\u0430\/\u0433\u0438\u0433\u0430\/\u0438\u043b\u0438-\u043a\u0430\u043a-\u0438\u0445-\u0442\u0430\u043c-\u0441\u0435\u0439\u0447\u0430\u0441 \u043a\u0430\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0433\u0440\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u0432 \u0440\u0430\u0437\u044b \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0435\u0441\u043b\u0438 \u0432\u0435\u0441\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a GameStateBase (\u0431\u043e\u043b\u044c\u0448\u0435 \u044f \u043d\u0435 \u0432\u0438\u0436\u0443 \u043f\u0440\u0438\u0447\u0438\u043d \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043b\u0430\u0441\u0441) \u0438 \u043a\u0430\u0436\u0434\u043e\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0438\u0433\u0440\u043e\u0432\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u0431\u0443\u0434\u0435\u0442 c \u044f\u0432\u043d\u044b\u043c \u043f\u0440\u0438\u0432\u0438\u0434\u0435\u043d\u0438\u0435\u043c \u0432 \u0432\u0438\u0434\u0435 <em>int someData = ((GameDataV2)data).Value;<\/em><\/p>\n<\/li>\n<li>\n<p>\u043a\u0443\u0447\u0430 \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430 &#8212; \u0435\u0441\u043b\u0438 \u044f 100 \u0440\u0430\u0437 \u0438\u0437\u043c\u0435\u043d\u044e \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0432 \u043a\u043e\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 100 &#171;\u043b\u0438\u0448\u043d\u0438\u0445&#187; \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \u041d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u043a\u043e\u0434\u0430 \u0441\u0430\u043c\u0438\u0445 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439, \u043d\u043e \u043e\u043d \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0434\u0435\u0441\u044c \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0439 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0441\u043f\u043e\u0441\u043e\u0431 &#171;\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e&#187; \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e &#8212; \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0443\u043c\u0435\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e JsonUtility, \u0430 \u0435\u0449\u0435 Newtonsoft.Json (\u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u043b\u0438\u0441\u0442\u043d\u0443\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c 10-\u043c\u0438\u043d\u0443\u0442\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440). \u041d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0437\u0430 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0438 \u0442\u0430\u043a\u043e\u0435 \u043d\u0435 \u043f\u043e\u0434 \u0441\u0438\u043b\u0443.<\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Newtonsoft \u0438 (\u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435) \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <a href=\"https:\/\/www.newtonsoft.com\/json\/help\/html\/CustomJsonConverter.htm\" rel=\"noopener noreferrer nofollow\">\u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 JsonConverter&#8217;\u044b<\/a> \u0438 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0432\u0441\u0435\u0445 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u043e\u0432 \u0438\u0437 \u0432\u0438\u0434\u0435\u043e.<\/p>\n<h3>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440:<\/h3>\n<ul>\n<li>\n<p>\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e. \u0412 \u043d\u0435\u0439 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u044b \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u043d\u044e\u0430\u043d\u0441\u044b \u0440\u0430\u0434\u0438 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e\u0441\u0442\u0438. \u041a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0431\u0430\u0433\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u044b\u0445 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u0440\u043e\u0434\u0435 <a href=\"http:\/\/FastMigrations.Json.Net\" rel=\"noopener noreferrer nofollow\">FastMigrations.Json.Net<\/a>. \u041a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u044f\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u0431\u0443\u0434\u0443\u0442 \u0431\u043e\u043b\u0435\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438. \u0425\u043e\u0442\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u0438\u043a\u043e\u043c \u0432 \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041c\u043d\u0435 \u0432\u0441\u0435 \u0435\u0449\u0435 \u043e\u0447\u0435\u043d\u044c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0438\u0434\u0435\u044f \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0438 \u044f \u043d\u0435 \u0432\u0438\u0434\u0435\u043b \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0440\u043e\u043b\u0438\u043a\u043e\u0432. \u041d\u043e \u043a\u0440\u043e\u043c\u0435 \u0438\u0434\u0435\u0438, \u043c\u043d\u0435 \u0432 \u043d\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f. \u0421\u0430\u043c\u0430 \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0437 \u0441\u0442\u0440\u0430\u0445\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0442\u043e\u043b\u043f\u0443 \u043c\u0430\u0441\u043b\u044f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0435\u0437\u0434\u0443\u043c\u043d\u043e \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044f\u0442 \u0441\u0432\u043e\u0438 PlayerData\/SaveData\/GameData \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043e\u0439\u0442\u0438 (\u0438 \u0442\u043e, \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0435\u0441\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b), \u0435\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u043e\u0434 \u0432\u0435\u0431, \u0443 \u0432\u0430\u0441 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442 \u043d\u0430 \u0441\u0447\u0435\u0442\u0443, \u0430 newtonsoft \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0446\u0435\u043b\u044b\u0445 250 \u041a\u0411 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0431\u0438\u043b\u0434\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0434\u0443\u0448\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u0438\u0447\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0441\u043a\u043e\u0447\u0438\u0442\u044c \u043d\u0430 \u043c\u043e\u0439 <a href=\"https:\/\/t.me\/GamedevForge\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b<\/a> \u0438\u043b\u0438, \u0435\u0441\u043b\u0438 \u043e\u0442 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u0441 \u043e\u0442\u0434\u0435\u043b\u044f\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b, \u0434\u0430\u0436\u0435 \u0437\u0430\u0434\u0443\u043c\u0430\u0442\u044c\u0441\u044f \u043e <a href=\"https:\/\/teletype.in\/@redhurt\/mentoring\" rel=\"noopener noreferrer nofollow\">\u043c\u0435\u043d\u0442\u043e\u0440\u0441\u0442\u0432\u0435<\/a>.<\/p>\n<h3>\u041f\u043e\u0435\u0445\u0430\u043b\u0438<\/h3>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439. \u0415\u0441\u0442\u044c 3 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u0435\u0434\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, \u043c\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c \u0432 \u0422\u0417. \u0414\u0430\u043b\u044c\u0448\u0435 \u043e\u0442\u043e\u0439\u0434\u0435\u043c \u043e\u0442 \u0432\u044b\u0440\u043e\u0436\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432 \u0432\u0438\u0434\u0435\u043e, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0442\u043a\u0443 \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0432 \u043d\u0435\u0439 \u0431\u0435\u0437\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u043e \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c. \u0417\u0430\u0442\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c \u044d\u0442\u043e \u0434\u043b\u044f \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0422\u043e \u0435\u0441\u0442\u044c, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u0435\u0439\u0441 &#8212; \u043c\u044b \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0434\u0432\u0435 \u043d\u043e\u0432\u044b\u0445. <\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0430\u0448 \u0433\u0438\u0442 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<figure class=\"\">\n<div><figcaption>image.png<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0447\u0435\u0441\u0442\u043d\u043e: \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0438 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u044f \u043d\u0430 \u0432\u0435\u0442\u043a\u0438 \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 1 \u0438 2. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u043b\u0443\u0447\u0430\u0439 \u0441 &#171;\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c&#187;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0438\u0433\u0440\u0430\u043b \u043d\u0430 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u043a\u043e\u0447\u0438\u043b \u043e\u0434\u043d\u0443 \u0432\u0435\u0440\u0441\u0438\u044e. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0431\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438: \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 0 \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044e 1 \u0438 \u0441 1 \u043d\u0430 2.<\/p>\n<p>\u041a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445:<\/p>\n<ol>\n<li>\n<p>\u0425\u0440\u0430\u043d\u0438\u043c \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u043b\u0435 \u0438\u043c\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0435\u0440\u0435\u0432\u0430 \u0438 \u043a\u0430\u043c\u043d\u044f, \u0438 ,\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 , \u0432\u0435\u0440\u0441\u0438\u044e, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"cs\">[Serializable] public class GameData {     public string Version = \"0.1.0\";     public string PlayerName;     public int Wood;     public int Stone; }<\/code><\/pre>\n<p>   2. \u0417\u0430\u0442\u0435\u043c \u0431\u0440\u0430\u0432\u044b\u0435 \u0433\u0435\u0439\u043c\u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u0440\u0435\u0448\u0438\u043b\u0438, \u0447\u0442\u043e \u0443 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0438\u043c\u044f \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c   \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e:<\/p>\n<pre><code class=\"cs\">[Serializable]     public class GameData {     public string Version = \"0.1.0\";     public string FirstName;     public string LastName;     public int Wood;     public int Stone; }<\/code><\/pre>\n<p>   3. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u0445\u0440\u0430\u043d\u0438\u043c \u0438\u0445 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435, \u0430 \u043d\u0435 \u0432\u0442\u0443\u043f\u0443\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438. \u0420\u0435\u0441\u0443\u0440\u0441\u044b \u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0430 \u043d\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u0443\u0436\u0435 \u0437\u0430 2 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043d\u0435 \u0432\u0435\u0440\u0438\u0442\u044c \u0413\u0414 \u043d\u0430 \u0441\u043b\u043e\u0432\u043e \u0438 \u0441\u0440\u0430\u0437\u0443 \u0433\u043e\u0442\u043e\u0432\u0438\u043c\u0441\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0434\u043e\u0431\u0430\u0432\u044f\u0442\u0441\u044f \u0435\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0410 \u0435\u0449\u0435 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<pre><code class=\"cs\">[Serializable] public class GameData {     public string Version = \"0.1.0\";     public string FirstName;     public string LastName;     public List&lt;Resource&gt; Resources = new(); }  [Serializable] public class Resource {     public string Name;     public int Amount; }<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0438 \u043e\u0431\u0449\u0438\u0439 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c:<\/p>\n<pre><code class=\"cs\">public interface IMigration {     Version ToVersion { get; }     JObject Migrate(JObject data); }<\/code><\/pre>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e JObject \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/articles\/481514\/\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>, <a href=\"https:\/\/kodershop.com\/blog\/dot-net-tutorials-15\/what-is-jobject-in-json-net-345#:~:text=In%20the%20case%20of%20C%23,properties%20for%20manipulating%20JSON%20data.\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a> \u0438 <a href=\"https:\/\/dev.to\/iamrule\/how-to-c-using-the-jobject-class-47e2\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0415\u0441\u043b\u0438 \u043f\u043e \u0442\u0443\u043f\u043e\u043c\u0443 (\u0438\u043d\u0430\u0447\u0435 \u0438 \u043d\u0435 \u043c\u043e\u0433\u0443), \u0442\u043e \u044d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u0434\u0435-\u0442\u043e \u043f\u043e\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u044b\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u043c. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e \u043a\u043b\u044e\u0447\u0430\u043c, \u043a\u0430\u043a \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u043a \u043f\u043e\u043b\u044f\u043c \u0432 JSON \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0445 \u043a\u0430\u043a \u043d\u0430\u043c \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f. \u0418 \u0432\u0441\u0435 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0445 \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 &#8212; \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0432 \u0434\u0440\u0443\u0433\u0443\u044e. \u0422\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0437 \u0441\u0442\u0430\u0440\u044b\u0445 \u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0435. \u0425\u043e\u0442\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e &#8212; \u043e\u043d\u0438 \u0438 \u0441\u0430\u043c\u0438 \u0437\u0430\u0442\u0440\u0443\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 &#8212; \u043d\u043e \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u044d\u043d\u0442\u0440\u043e\u043f\u0438\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0443\u0434\u0430\u043b\u0438\u043c \u0441\u0440\u0430\u0437\u0443.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c System.Version. \u0412 \u043d\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (<a href=\"http:\/\/major.minor.build\" rel=\"noopener noreferrer nofollow\">major.minor.build<\/a>) \u0438 \u0443\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f (\u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0430\u043c\u043e\u043c\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c, \u043a\u0430\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u043e\u0432\u0435\u0435: &#171;1.2.3&#187; \u0438\u043b\u0438 &#171;1.3.2&#187;)<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439:<\/p>\n<pre><code class=\"cs\">public class Migrator {     private readonly IOrderedEnumerable&lt;IMigration&gt; _migrations;      public Migrator(params IMigration[] migrations) =&gt;          _migrations = migrations.OrderBy(x =&gt; x.ToVersion);      public T Execute&lt;T&gt;(string rawData)     {         JObject data = JObject.Parse(rawData);         Version version = new(data[\"Version\"]!.ToString());          if (version.CompareTo(_migrations.Last().ToVersion) &gt;= 0)             return Parse&lt;T&gt;(data);          foreach (IMigration migration in _migrations)         {             if (version.CompareTo(migration.ToVersion) &lt; 0)             {                 data = migration.Migrate(data);                 data[\"Version\"] = migration.ToVersion.ToString();                 version = migration.ToVersion;             }         }          return Parse&lt;T&gt;(data);     }      private T Parse&lt;T&gt;(JObject data) =&gt;          JsonConvert.DeserializeObject&lt;T&gt;(data.ToString()); }<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<ol start=\"4\">\n<li>\n<p>\u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043f\u043e\u0434\u0430\u0435\u043c \u0441\u0430\u043c\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c \u0438\u0433\u0440\u044b) \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e \u0432\u0435\u0440\u0441\u0438\u0438. System.Version \u0443\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 IComparable, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 OrderBy \u0441\u0430\u043c \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0430\u044f ToVersion \u043d\u043e\u0432\u0435\u0435.<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 Execute \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u0435 \u0441\u0442\u0430\u0440\u0448\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439, \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0449\u0435\u0439 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. \u0422\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u043e\u0432\u044b\u043c\u0438 \u0438 \u043c\u043e\u0436\u0435\u043c \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0438\u0445 \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u043f\u043e\u0434\u0440\u044f\u0434 \u0434\u0435\u043b\u0430\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443. \u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043c\u043b\u0430\u0434\u0448\u0435 \u0442\u043e\u0439, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438, \u0442\u043e \u044d\u0442\u0443 \u0441\u0430\u043c\u0443\u044e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c. \u0417\u0430\u0442\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u0440\u0441\u0438\u043c \u0438\u0437 JSON \u043d\u0430\u0448\u0438, \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439, \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ol>\n<blockquote>\n<p>\u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/system.version.compareto?view=net-9.0\" rel=\"noopener noreferrer nofollow\">Version.CompareTo<\/a>:<\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u0440\u0430\u0432\u043d\u044b, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 0<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442 (\u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a\u0430\u043a \u0431\u044b &#171;\u0441\u043b\u0435\u0432\u0430&#187; \u043e\u0442 CompareTo) \u043d\u043e\u0432\u0435\u0435, \u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 1<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u0440\u0448\u0435 &#8212; \u0442\u043e -1<\/p>\n<\/li>\n<\/ul>\n<\/blockquote>\n<h3>\u041d\u0430\u0448\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/h3>\n<p>\u041a\u0430\u043a \u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043c\u044f \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u044e \u0438\u0433\u0440\u043e\u043a\u0430 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u0449\u0435\u0433\u043e PlayerName. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0432\u0441\u0435 \u0438\u0433\u0440\u043e\u043a\u0438 \u043c\u043e\u043b\u043e\u0434\u0446\u044b \u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0438\u0441\u0430\u043b\u0438 \u0438\u043c\u044f \u0438\u0433\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u0434\u0432\u0430 \u0441\u043b\u043e\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u043f\u043e\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u0435\u043b\u0438\u0442\u044c. \u0417\u043d\u0430\u0447\u0438\u0442, \u043d\u0430\u0448\u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cs\">public class Migration_1_2 : IMigration {     public Version ToVersion { get; } = new Version(0, 2, 0);      public JObject Migrate(JObject data)     {         string fullName = data[\"PlayerName\"].ToString();         string[] names = fullName.Split(' ');          data[\"FirstName\"] = names[0];         data[\"LastName\"] = names[1];          data.Remove(\"PlayerName\");          return data;     } }<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043d\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0430 \u0441\u0440\u0430\u0437\u0443 \u0441\u043f\u0438\u0441\u043a\u043e\u043c. \u0422\u043e\u0433\u0434\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a Resources \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0437 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 Wood \u0438 Stone:<\/p>\n<pre><code class=\"cs\">public class Migration_2_3 : IMigration {     public Version ToVersion { get; } = new Version(0, 3, 0);      public JObject Migrate(JObject data)     {         int woodAmount = data[\"Wood\"]?.Value&lt;int&gt;() ?? 0;         int stoneAmount = data[\"Stone\"]?.Value&lt;int&gt;() ?? 0;         JArray resources = data[\"Resources\"] as JArray ?? new JArray();          resources.Add(JObject.FromObject(new { Name = \"Wood\", Amount = woodAmount }));         resources.Add(JObject.FromObject(new { Name = \"Stone\", Amount = stoneAmount }));          data[\"Resources\"] = resources;          data.Remove(\"Wood\");         data.Remove(\"Stone\");          return data;     } }<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0443\u043c\u0435\u0442\u044c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u0430\u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e, \u043d\u0430\u0434\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043a\u043e\u0434\u0430:<\/p>\n<pre><code class=\"cs\">string json = File.ReadAllText(Path); GameData data = new Migrator(new Migration_1_2(), new Migration_2_3())     .Execute&lt;GameData&gt;(json);<\/code><\/pre>\n<h3>\u0423\u0431\u0435\u0434\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h3>\n<p>\u0411\u0435\u0437 \u043b\u0438\u0448\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0442\u043a\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043b\u0435\u0439\u043c\u043e\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435:<\/p>\n<figure class=\"\">\n<div><figcaption>image.png<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p>\u0432 Saved Data \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u044b\u0440\u043e\u0439 JSON, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435<\/p>\n<\/li>\n<li>\n<p>\u0432 Game Data \u0431\u0443\u0434\u0443\u0442 \u043f\u0430\u0440\u0441\u0438\u0442\u044c\u0441\u044f \u0441\u044b\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u043e\u0434 GameDataEditor:<\/p>\n<pre><code class=\"cs\">public class<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-456762","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/456762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=456762"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/456762\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=456762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=456762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=456762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}