{"id":318355,"date":"2021-02-20T15:01:08","date_gmt":"2021-02-20T15:01:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=318355"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=318355","title":{"rendered":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0443\u0442\u0438\u043d\u044b \u0432 DotA 2 \u0438\u043b\u0438 \u0447\u0438\u0442\u044b?"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f <s>\u043b\u0435\u0433\u0430\u043b\u044c\u043d\u044b\u0435<\/s> \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u043e\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u043a\u0430\u043a NodeJS, Electron \u0438 React, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u0445\u043e\u0434\u044f \u0431\u0430\u043d \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439. \u041d\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u043c\u0435\u043d\u044f \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u043b\u0430 \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f <a href=\"https:\/\/habr.com\/ru\/post\/446516\/\" rel=\"noopener noreferrer nofollow\">\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u043e\u0437\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0420\u043e\u0448\u0430\u043d\u0430<\/a> \u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0440\u0443\u0442\u0438\u043d\u044b. \u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043a\u0430\u043a\u0438\u043c \u043b\u0438\u0431\u043e \u043d\u0435\u0447\u0435\u0441\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438\u0433\u0440\u0443 &#8212; \u0432\u0441\u0435 API \u043e\u0442\u043a\u0440\u044b\u0442\u044b, \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0447\u0435\u0441\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438\u0433\u0440\u044b \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/46a\/926\/e50\/46a926e503d33f2a9e4bc0df7e9ef756.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0434\u0435\u043c\u043e \u0440\u0435\u0436\u0438\u043c\u0435 \u0438\u0433\u0440\u044b\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0434\u0435\u043c\u043e \u0440\u0435\u0436\u0438\u043c\u0435 \u0438\u0433\u0440\u044b\" width=\"1482\" height=\"1066\"><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0434\u0435\u043c\u043e \u0440\u0435\u0436\u0438\u043c\u0435 \u0438\u0433\u0440\u044b<\/figcaption><\/figure>\n<p>\u0412\u0435\u0441\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\" rel=\"noopener noreferrer nofollow\">\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043d\u0430 Github<\/a>, \u0441 \u043d\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0441\u044f, \u043b\u0430\u0439\u043a\u043d\u0443\u0442\u044c, \u0444\u043e\u0440\u043a\u043d\u0443\u0442\u044c, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u041f\u0438\u0441\u0430\u043b \u0435\u0433\u043e \u043b\u0435\u0432\u043e\u0439 \u043f\u044f\u0442\u043a\u043e\u0439 \u043f\u0440\u0430\u0432\u043e\u0439 \u043d\u043e\u0433\u0438, \u043f\u0440\u044f\u043c\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0433\u0440\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u044c\u0431\u0430 \u043d\u0435 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430 \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u043a\u0443.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e, \u0442\u043e \u044f \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b, \u0443\u0436\u0435 \u0432\u0441\u0451 \u0434\u043e \u043c\u0435\u043d\u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u0438 \u0434\u0430\u0436\u0435 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0443\u043c\u0435\u044e\u0442.<\/p>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u0432\u043e \u0438\u043c\u044f \u0434\u043e\u0431\u0440\u0430 &#8212; \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0441\u0442\u0443\u0434\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438, \u043a\u0438\u0431\u0435\u0440\u0441\u043f\u043e\u0440\u0442\u0430, \u0441\u0442\u0440\u0438\u043c\u043e\u0432 Twitch, \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0442.\u0434., \u0442\u0430\u043a \u0438 \u0432\u043e \u0438\u043c\u044f \u0437\u043b\u0430 &#8212; \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0447\u0438\u0442\u043e\u0432, \u0432\u044b\u0431\u043e\u0440 \u0437\u0430 \u0432\u0430\u043c\u0438.<\/p>\n<blockquote>\n<p><strong>Disclaimer: \u0410\u0432\u0442\u043e\u0440 \u043d\u0435 \u043d\u0435\u0441\u0451\u0442 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0437\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u0430\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0438\u043b\u0438 \u0443\u0449\u0435\u0440\u0431 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0434\u0435\u0441\u044c \u0438\u0437\u043b\u043e\u0436\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445 MOBA, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u043e\u0447\u044c \u0438\u043c \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0441 \u0447\u0438\u0442\u0435\u0440\u0430\u043c\u0438. \u0418, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0430\u0432\u0442\u043e\u0440 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u043e\u0442\u043e\u0432\u043e\u0434, \u0447\u0438\u0442\u0435\u0440 \u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043c \u0431\u044b\u043b.<\/strong><\/p>\n<\/blockquote>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0443\u043c\u0435\u044e\u0442:<\/p>\n<ul>\n<li>\n<p>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0432\u0443\u043a\u0438 \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0430\u0436\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0437\u043e\u043b\u043e\u0442\u0430 (GPM)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u0433\u0435\u0440\u043e\u044e \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 OpenDota.com<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0432\u043e\u0437\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0440\u043e\u0448\u0430\u043d\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u0433\u0435\u0440\u043e\u044f\u0445 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a\u0438\u0435 \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0438\u0433\u0440\u044b \u043f\u043e \u0435\u0451 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044e<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0445\/\u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 <\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c &#171;\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0439\u0442\u044b&#187;<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u0438\u0431\u0435\u0440\u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0445 \u0438\u0433\u0440<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439\u0448\u0438\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u0440\u044f\u043c\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0438 \u0442.\u0434&#8230;<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ef6\/91f\/7f2\/ef691f7f22bfb2ee12a83eaa9f46d3b0.png\" width=\"927\" height=\"413\"><figcaption><\/figcaption><\/figure>\n<h3>\u0421 \u0447\u0435\u0433\u043e \u0432\u0441\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c<\/h3>\n<p>\u0423 Dota 2 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0435\u0441\u0442\u044c GSI (<a href=\"https:\/\/developer.valvesoftware.com\/wiki\/Counter-Strike:_Global_Offensive_Game_State_Integration\" rel=\"noopener noreferrer nofollow\">Game State Integration<\/a>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \/ \u043e\u0432\u0435\u0440\u043b\u0435\u0435\u0432 (\u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043f\u043e\u0432\u0435\u0440\u0445 \u0438\u0433\u0440\u044b) \u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u0438\u0445 \u0441\u0430\u043c\u044b\u0445 \u043e\u0432\u0435\u0440\u043b\u0435\u0435\u0432 \u0441 \u0438\u0433\u0440\u043e\u0439 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438\u0433\u0440\u044b \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0447\u0442\u043e &#8212; \u0442\u043e \u0441 \u043d\u0438\u043c \u0434\u0435\u043b\u0430\u0442\u044c. \u0414\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 NodeJS \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 <a href=\"https:\/\/github.com\/xzion\/dota2-gsi\" rel=\"noopener noreferrer nofollow\">\u0432 \u0432\u0438\u0434\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/a>. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b GSI \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 &#171;Steam\\steamapps\\common\\dota&nbsp;2&nbsp;beta\\game\\dota\\cfg&#187;, \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u0438\u0435:<\/p>\n<pre><code>\"dota2-gsi Configuration\" {     \"uri\"               \"http:\/\/localhost:3001\/\"     \"timeout\"           \"5.0\"     \"buffer\"            \"0.1\"     \"throttle\"          \"0.1\"     \"heartbeat\"         \"30.0\"     \"data\"     {         \"buildings\"     \"1\"         \"provider\"      \"1\"         \"map\"           \"1\"         \"player\"        \"1\"         \"hero\"          \"1\"         \"abilities\"     \"1\"         \"items\"         \"1\"         \"draft\"         \"1\"         \"wearables\"     \"1\"     } }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u0433\u0440\u044b, \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440 GSI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e HTTP \u043d\u0430 localhost:3001, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/server\/index.js#L9-L11\" rel=\"noopener noreferrer nofollow\">NodeJS \u0441\u0435\u0440\u0432\u0435\u0440<\/a>:<\/p>\n<pre><code class=\"javascript\">var server = app.listen(3001, () =&gt; {   console.log(\"Dota 2 GSI listening on port \" + server.address().port); });<\/code><\/pre>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/server\/dota2.js\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u0434 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044f<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d \u0438\u0437 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 NodeJS<\/p>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u043c\u0438\u0440\u0435 \u0433\u043e\u0442\u043e\u0432.<\/p>\n<h3>\u0414\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0434\u0430\u044e\u0442 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430<\/h3>\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u043e\u0432\u043e\u0433\u043e \u043c\u0430\u0442\u0447\u0430 \u0432 Dota 2, GSI \u043e\u0442\u0434\u0430\u0451\u0442 \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u0437 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0448\u0435\u0434\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>ID \u0413\u0435\u0440\u043e\u044f<\/p>\n<\/li>\n<li>\n<p>\u0418\u0433\u0440\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u041b\u0438\u0447\u043d\u044b\u0439 GPM<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0432 \u0438\u0433\u0440\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u043a\u0430\u0440\u0442\u0430 \u0441 \u0434\u0435\u043c\u043e \u0440\u0435\u0436\u0438\u043c\u043e\u043c)<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"json\">{     \"ip\": \"::ffff:127.0.0.1\",     \"gamestate\": {         \"buildings\": {             \"radiant\": {                 \"dota_goodguys_tower1_top\": {                     \"health\": 1800,                     \"max_health\": 1800                 },                 \"dota_goodguys_tower2_top\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower3_top\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower1_mid\": {                     \"health\": 1800,                     \"max_health\": 1800                 },                 \"dota_goodguys_tower2_mid\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower3_mid\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower1_bot\": {                     \"health\": 1800,                     \"max_health\": 1800                 },                 \"dota_goodguys_tower2_bot\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower3_bot\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower4_top\": {                     \"health\": 2600,                     \"max_health\": 2600                 },                 \"dota_goodguys_tower4_bot\": {                     \"health\": 2600,                     \"max_health\": 2600                 },                 \"good_rax_melee_top\": { \"health\": 2200, \"max_health\": 2200 },                 \"good_rax_range_top\": { \"health\": 1300, \"max_health\": 1300 },                 \"good_rax_melee_mid\": { \"health\": 2200, \"max_health\": 2200 },                 \"good_rax_range_mid\": { \"health\": 1300, \"max_health\": 1300 },                 \"good_rax_melee_bot\": { \"health\": 2200, \"max_health\": 2200 },                 \"good_rax_range_bot\": { \"health\": 1300, \"max_health\": 1300 },                 \"dota_goodguys_fort\": { \"health\": 4500, \"max_health\": 4500 }             }         },         \"provider\": {             \"name\": \"Dota 2\",             \"appid\": 570,             \"version\": 47,             \"timestamp\": 1613780229         },         \"map\": {             \"name\": \"dota\",             \"matchid\": \"0\",             \"game_time\": 2,             \"clock_time\": 1,             \"daytime\": true,             \"nightstalker_night\": false,             \"game_state\": \"DOTA_GAMERULES_STATE_GAME_IN_PROGRESS\",             \"paused\": false,             \"win_team\": \"none\",             \"customgamename\": \"C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\dota 2 beta\\\\game\\\\dota_addons\\\\hero_demo\",             \"ward_purchase_cooldown\": 0         },         \"player\": {             \"steamid\": \"76561198282999022\",             \"name\": \"D1rty F0x\",             \"activity\": \"playing\",             \"kills\": 0,             \"deaths\": 0,             \"assists\": 0,             \"last_hits\": 0,             \"denies\": 0,             \"kill_streak\": 0,             \"commands_issued\": 0,             \"kill_list\": {},             \"team_name\": \"radiant\",             \"gold\": 99999,             \"gold_reliable\": 0,             \"gold_unreliable\": 99999,             \"gold_from_hero_kills\": 0,             \"gold_from_creep_kills\": 0,             \"gold_from_income\": 2,             \"gold_from_shared\": 0,             \"gpm\": 3913086,             \"xpm\": 0         },         \"hero\": {             \"xpos\": -6700,             \"ypos\": -6700,             \"id\": 6,             \"name\": \"npc_dota_hero_drow_ranger\",             \"level\": 1,             \"alive\": true,             \"respawn_seconds\": 0,             \"buyback_cost\": 8540,             \"buyback_cooldown\": 0,             \"health\": 560,             \"max_health\": 560,             \"health_percent\": 100,             \"mana\": 255,             \"max_mana\": 255,             \"mana_percent\": 100,             \"silenced\": false,             \"stunned\": false,             \"disarmed\": false,             \"magicimmune\": false,             \"hexed\": false,             \"muted\": false,             \"break\": false,             \"smoked\": false,             \"has_debuff\": false,             \"talent_1\": false,             \"talent_2\": false,             \"talent_3\": false,             \"talent_4\": false,             \"talent_5\": false,             \"talent_6\": false,             \"talent_7\": false,             \"talent_8\": false         },         \"abilities\": {             \"ability0\": {                 \"name\": \"drow_ranger_frost_arrows\",                 \"level\": 0,                 \"can_cast\": false,                 \"passive\": false,                 \"ability_active\": true,                 \"cooldown\": 0,                 \"ultimate\": false             },             \"ability1\": {                 \"name\": \"drow_ranger_wave_of_silence\",                 \"level\": 0,                 \"can_cast\": false,                 \"passive\": false,                 \"ability_active\": true,                 \"cooldown\": 0,                 \"ultimate\": false             },             \"ability2\": {                 \"name\": \"drow_ranger_multishot\",                 \"level\": 0,                 \"can_cast\": false,                 \"passive\": false,                 \"ability_active\": true,                 \"cooldown\": 0,                 \"ultimate\": false             },             \"ability3\": {                 \"name\": \"drow_ranger_marksmanship\",                 \"level\": 0,                 \"can_cast\": false,                 \"passive\": true,                 \"ability_active\": true,                 \"cooldown\": 0,                 \"ultimate\": true             }         },         \"items\": {             \"slot0\": { \"name\": \"empty\" },             \"slot1\": { \"name\": \"empty\" },             \"slot2\": { \"name\": \"empty\" },             \"slot3\": { \"name\": \"empty\" },             \"slot4\": { \"name\": \"empty\" },             \"slot5\": { \"name\": \"empty\" },             \"slot6\": { \"name\": \"empty\" },             \"slot7\": { \"name\": \"empty\" },             \"slot8\": { \"name\": \"empty\" },             \"stash0\": { \"name\": \"empty\" },             \"stash1\": { \"name\": \"empty\" },             \"stash2\": { \"name\": \"empty\" },             \"stash3\": { \"name\": \"empty\" },             \"stash4\": { \"name\": \"empty\" },             \"stash5\": { \"name\": \"empty\" }         },         \"draft\": {},         \"wearables\": {             \"wearable0\": 77,             \"wearable1\": 76,             \"wearable2\": 5841,             \"wearable3\": 80,             \"wearable4\": 78,             \"wearable5\": 267,             \"wearable6\": 79,             \"wearable7\": 8632,             \"wearable8\": 737,             \"wearable9\": 14912         },         \"previously\": { \"player\": { \"gpm\": 5000054 } }     } } <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043b\u0435\u0439 \u0438\u043b\u0438 \u0447\u0443\u0436\u0443\u044e \u0438\u0433\u0440\u0443, \u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 &#8212; \u0432\u0441\u044f \u043e\u043d\u0430 <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/src\/state\/state.ts#L5-L125\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0442\u0443\u0442<\/a>. \u0427\u0442\u043e-\u0436, \u0441\u0430\u043c\u0430\u044f \u0432\u0430\u0436\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430\u043c \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 &#8212; GPM, \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, Id \u0433\u0435\u0440\u043e\u044f.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441 \u043d\u0435\u0439 \u0447\u0442\u043e &#8212; \u0442\u043e \u043f\u043e\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u044c \u043e \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0432\u0448\u0435\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0435 \u0432 \u0438\u0433\u0440\u0435.<\/p>\n<h3>UI, \u041e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f, Electron<\/h3>\n<p>\u0414\u043b\u044f UI \u0440\u0435\u0448\u0435\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Electron \u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c React. \u0418\u0434\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c Electron \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0432\u0435\u0440\u0445 \u0438\u0433\u0440\u044b (\u043e\u0432\u0435\u0440\u043b\u0435\u0439). \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a \u043e\u0432\u0435\u0440\u043b\u0435\u044f \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/frame\/main.js\" rel=\"noopener noreferrer nofollow\">\u043d\u0430\u0439\u0442\u0438 \u0442\u0443\u0442<\/a>, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u043c\u0441\u044f \u043d\u0430 \u043d\u0451\u043c &#8212; \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u043a\u043d\u043e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0451 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f:<\/p>\n<pre><code class=\"javascript\">const win = new BrowserWindow({   width: 210,   height: 200,   \/\/ \u041e\u043a\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u0435\u0437 \u0440\u0430\u043c\u043a\u0438   frame: false,   \/\/ \u041e\u043a\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c   transparent: true,   webPreferences: {     \/\/ \u0424\u0438\u043a\u0441 \u0431\u0430\u0433\u043e\u0432 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0438\u043c\u043f\u043e\u0440\u0442\u0430\u043c\u0438 React     nodeIntegration: true,   }, }); \/\/ \u041e\u043a\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u044b\u0442\u044c \u043f\u043e\u0432\u0435\u0440\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 win.setAlwaysOnTop(true, \"screen-saver\");<\/code><\/pre>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0432\u0435\u0440\u0445 \u0434\u043e\u0442\u044b \u0447\u0442\u043e &#8212; \u0442\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0432 \u0444\u0430\u0439\u043b\u0435 machine_convars.vcfg (Dota 2) \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c &#171;dota_mouse_window_lock&#187;, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 &#171;0&#187;, \u0430 \u0432 \u0441\u0430\u043c\u043e\u0439 \u0438\u0433\u0440\u0435 (\u043b\u0438\u0431\u043e \u0432 \u0442\u0435\u0445 \u0436\u0435 \u0444\u0430\u0439\u043b\u0430\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438) \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u043e\u043a\u043d\u0435 \u0431\u0435\u0437 \u0440\u0430\u043c\u043a\u0438.<\/p>\n<p>UI \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c React, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u043e \u0435\u0433\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0441 dev \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (\u0434\u0430, \u044f \u043b\u0435\u043d\u0438\u0432\u044b\u0439):<\/p>\n<pre><code class=\"javascript\">function loadWindow() {   setTimeout(() =&gt; {     win.loadURL(\"http:\/\/localhost:3000\").catch(loadWindow);   }, 3000); } loadWindow();<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 dev \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0443\u0441\u043f\u0435\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f, \u0442\u043e \u043c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0435\u0449\u0451 \u0440\u0430\u0437\u043e\u043a \u0447\u0435\u0440\u0435\u0437 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u0432\u043e\u0442 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438 \u043d\u0443\u0436\u0435\u043d setTimeout. <\/p>\n<p>\u0412\u0441\u0451, \u0441 overlay \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438, \u0442\u0435\u043f\u0435\u0440\u044c UI \u0447\u0430\u0441\u0442\u044c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/09f\/c95\/46d\/09fc9546d629e9986b1ece98a75c8196.png\" alt=\"Styled-Components, Typescript, \u0425\u0443\u043a\u0438, - \u0441\u0442\u0438\u043b\u044c\u043d\u043e, \u043c\u043e\u0434\u043d\u043e, \u043c\u043e\u043b\u043e\u0434\u0451\u0436\u043d\u043e\" title=\"Styled-Components, Typescript, \u0425\u0443\u043a\u0438, - \u0441\u0442\u0438\u043b\u044c\u043d\u043e, \u043c\u043e\u0434\u043d\u043e, \u043c\u043e\u043b\u043e\u0434\u0451\u0436\u043d\u043e\" width=\"780\" height=\"480\"><figcaption>Styled-Components, Typescript, \u0425\u0443\u043a\u0438, &#8212; \u0441\u0442\u0438\u043b\u044c\u043d\u043e, \u043c\u043e\u0434\u043d\u043e, \u043c\u043e\u043b\u043e\u0434\u0451\u0436\u043d\u043e<\/figcaption><\/figure>\n<p>\u0412 UI \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u043c\u043e\u0439 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0441\u0442\u0435\u043a: TS, CRA (Styled \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e\/\u0434\u0432\u0443\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f &#8212; \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0442\u043e \u043e\u0441\u043e\u0431\u043e \u043d\u0435\u0447\u0435\u0433\u043e). \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a GSI Dota2 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 express \u0441\u0435\u0440\u0432\u0435\u0440, \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430 \u0444\u0440\u043e\u043d\u0442. \u041f\u0438\u0448\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f GET \u0440\u0443\u0447\u043a\u0430 <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/server\/index.js#L19-L21\" rel=\"noopener noreferrer nofollow\">\u0434\u043b\u044f \u043e\u0442\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445<\/a>. \u0417\u0430\u0442\u0435\u043c \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0445\u0443\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043e\u043d\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0441\u0440\u0430\u0437\u0443 \u0432\u043e \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0445\u0443\u043a\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u0445\u0443\u043a\u0438 &#8212; \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u0444\u0430\u043a\u0442, \u0432\u0435\u0434\u044c \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0445\u0443\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 (\u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0442\u043e \u0443 \u0432\u0430\u0441 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0432 \u043b\u0443\u0447\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0432\u0430 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0440\u044f\u0434, \u0432 \u0445\u0443\u0434\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0437\u0440\u044b\u0432 \u0438\u0437 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439). \u041b\u043e\u0433\u0438\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"javascript\">import { State } from \"..\/state\/state\"; import { useState } from \"react\"; import { useInterval } from \".\/useInterval\";  const SERVER_URL = \"http:\/\/localhost:3001\/time\"; const UPDATE_FREQUENTLY = Number(process.env.REACT_APP_SERVER_UPDATE_FREQUENTLY);  export function useServerState(): State {   const [state, setState] = useState&lt;State&gt;({});    useInterval(async () =&gt; {     try {       const data = await (await fetch(SERVER_URL)).json();       setState(data);     } catch {}   }, UPDATE_FREQUENTLY);    return state; }<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/src\/hooks\/useBountyRunes\/useBountyRunes.ts\" rel=\"noopener noreferrer nofollow\">\u0445\u0443\u043a \u0434\u043b\u044f \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0445 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439<\/a>, \u0447\u0442\u043e \u043f\u043e\u0440\u0430 \u0431\u044b \u043f\u043e\u0439\u0442\u0438 (\u0437\u0430 30 \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u043f\u043e\u0432\u0435\u0449\u0430\u0435\u0442) \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u0440\u0443\u043d\u044b \u0431\u043e\u0433\u0430\u0442\u0441\u0442\u0432\u0430, \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0438\u043d\u0443\u0442\u0435 \u043a\u0440\u0430\u0442\u043d\u043e\u0439 \u043f\u044f\u0442\u0438 (5, 10, 15, 20 \u043c\u0438\u043d\u0443\u0442\u0430):<\/p>\n<pre><code class=\"javascript\">export function useBountyRunes(state: State) {   const clockTime = clockTimeSelector(state);   const [play] = useSound(bountiesMp3, { volume: 0.25 });   const [lastIntervalPlay, setLastIntervalPlay] = useState&lt;number&gt;(-1);    useEffect(() =&gt; {     \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e  \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438\u0448\u043b\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435     if (!clockTime || isNegative(clockTime)) {       return;     }      \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u0438 \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430 4,5 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0442 \u0434\u0432\u043e\u0439\u043d\u043e\u0433\u043e \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f     if (isNeedToPlay(clockTime, lastIntervalPlay)) {       \/\/ \u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u043c \u0437\u0432\u0443\u043a       play();       \/\/ \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u0431\u044b\u043b\u043e \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435       setLastIntervalPlay(getInterval(clockTime + ALARM_BEFORE));     }   }, [clockTime, lastIntervalPlay, play]); }<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0438\u0441\u044c \u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0438 (setLastIntervalPlay) \u043d\u0443\u0436\u043d\u0430 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0434\u0432\u0430\u0436\u0434\u044b.<\/p>\n<p>\u0418 \u0432\u043e\u0442 \u0443\u0436\u0435 \u0432 \u0438\u0433\u0440\u0435 \u043e\u0434\u043d\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u043d\u043e \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u043d\u043e \u043a\u0430\u043a \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u0427\u0442\u043e &#8212; \u0436 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u0442\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0436\u0435 <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/src\/hooks\/useRoshanSpawn\/useRoshanSpawn.ts\" rel=\"noopener noreferrer nofollow\">\u043a\u043d\u043e\u043f\u043a\u0443 \u0432\u043e\u0437\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0440\u043e\u0448\u0430\u043d\u0430<\/a>, \u043a\u0430\u043a \u0438\u0437 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438: <\/p>\n<details class=\"spoiler\">\n<summary>\u0425\u0443\u043a useRoshanSpawn \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"javascript\">export function useRoshanSpawn(state: State) {   const currentGameTime = gameTimeSelector(state) || 0;   const [play] = useSound(roshanRespawnMp3, { volume: 0.25 });   const [roshanStopwatch, setRoshanStopwatch] = useState&lt;RoshanStopwatch&gt;({     isActive: false,     time: 0,     isPlayedSound: false,   });    \/\/ \u0424\u0438\u043a\u0441\u0430\u0446\u0438\u044f \u0441\u043c\u0435\u0440\u0442\u0438 \u0440\u043e\u0448\u0438   function handleDead() {     setRoshanStopwatch({       time: currentGameTime,       isActive: true,       isPlayedSound: false,     });   }    \/\/ \u0421\u0431\u0440\u043e\u0441 \u0442\u0430\u0439\u043c\u0435\u0440\u0430   function handleReset() {     setRoshanStopwatch({       time: 0,       isActive: false,       isPlayedSound: false,     });   }    \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u043e\u0448\u0430 \u0436\u0438\u0432, \u0436\u0438\u0432\/\u043c\u0451\u0440\u0442\u0432, \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0448\u043b\u043e \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0441\u043c\u0435\u0440\u0442\u0438   const isDead = roshanIsDead(roshanStopwatch, currentGameTime);   const isDeadOrLive = schrodingerRoshan(roshanStopwatch, currentGameTime);   const timeToSpawn = roshanTimeDeadSelector(roshanStopwatch, currentGameTime);    useEffect(() =&gt; {     \/\/ \u041e\u043f\u043e\u0432\u0435\u0449\u0430\u0435\u043c \u0437\u0432\u0443\u043a\u043e\u043c \u0437\u0430 30 \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f     if (needToPlaySound(roshanStopwatch, currentGameTime)) {       play();       setRoshanStopwatch({         ...roshanStopwatch,         isPlayedSound: true,       });     }   }, [roshanStopwatch, currentGameTime, setRoshanStopwatch]);    return { handleDead, handleReset, isDead, isDeadOrLive, timeToSpawn }; }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0421 \u0440\u043e\u0448\u0430\u043d\u043e\u043c \u0432\u0441\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u0435\u0435, \u0447\u0435\u043c \u0441 \u0440\u0443\u043d\u0430\u043c\u0438 &#8212; \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u0440\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0432 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 \u043e\u0442 9 \u0434\u043e 12 \u043c\u0438\u043d\u0443\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u0443 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>\u0422\u043e\u0447\u043d\u043e \u043c\u0451\u0440\u0442\u0432 (\u043f\u0440\u043e\u0448\u043b\u043e \u0434\u043e 9 \u043c\u0438\u043d\u0443\u0442 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0441\u043c\u0435\u0440\u0442\u0438)<\/p>\n<\/li>\n<li>\n<p>\u041e\u043d \u0436\u0438\u0432 \u0438\u043b\u0438 \u043c\u0451\u0440\u0442\u0432 (\u043f\u0440\u043e\u0448\u043b\u043e \u043e\u0442 9 \u0434\u043e 12 \u043c\u0438\u043d\u0443\u0442 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0441\u043c\u0435\u0440\u0442\u0438)<\/p>\n<\/li>\n<li>\n<p>\u041e\u043d \u0442\u043e\u0447\u043d\u043e \u0436\u0438\u0432 (\u043f\u0440\u043e\u0448\u043b\u043e \u0441\u0432\u044b\u0448\u0435 12 \u043c\u0438\u043d\u0443\u0442 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0441\u043c\u0435\u0440\u0442\u0438 \u0438\u043b\u0438 \u044d\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u043e \u0438\u0433\u0440\u044b)<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0435\u0441\u0442\u044c \u0442\u0440\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 &#8212; \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u0439\u043c\u0435\u0440 \u0442\u0438\u043a\u0430\u0435\u0442 \u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0440\u043e\u0448\u0430 \u0442\u043e\u0447\u043d\u043e \u043c\u0451\u0440\u0442\u0432<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u0439\u043c\u0435\u0440 \u0442\u0438\u043a\u0430\u0435\u0442 \u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0440\u043e\u0448\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0436\u0438\u0432, \u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043c\u0451\u0440\u0442\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u043e\u0434\u043d\u043e \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0435 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435: \u0420\u043e\u0448\u0430\u043d \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0428\u0440\u0435\u0434\u0438\u043d\u0433\u0435\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 30 \u0441\u0435\u043a\u0443\u043d\u0434 (\u0442\u043e \u0435\u0441\u0442\u044c, \u0438 \u0436\u0438\u0432, \u0438 \u043c\u0451\u0440\u0442\u0432 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e &#8212; \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0448\u044c, \u043d\u0435 \u0443\u0437\u043d\u0430\u0435\u0448\u044c). \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0442\u0430\u0439\u043c\u0435\u0440, \u0432\u0435\u0434\u044c \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0438 \u0438 \u0443\u0437\u043d\u0430\u043b\u0438, \u0447\u0442\u043e \u043e\u043d \u0436\u0438\u0432 &#8212; \u0442\u043e \u0442\u0430\u0439\u043c\u0435\u0440 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u0430 \u043d\u0443\u0436\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u043e \u0442\u043e\u043c \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043d\u043e\u0432\u043e\u0439 \u0441\u043c\u0435\u0440\u0442\u0438 \u0440\u043e\u0448\u0430\u043d\u0430. \u0418\u0437 \u043c\u0438\u043d\u0443\u0441\u043e\u0432 &#8212; \u0438\u043d\u043e\u0433\u0434\u0430 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u0448\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u0430\u0439\u043c\u0435\u0440, \u0431\u044b\u043b\u043e \u0431\u044b \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<h3>\u041e\u0431\u043e\u0433\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435<\/h3>\n<p>\u0415\u0449\u0451 \u0435\u0441\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0442\u043e\u043c, \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u0433\u0435\u0440\u043e\u0435 \u043c\u044b \u0438\u0433\u0440\u0430\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0443\u0441\u043a\u0430\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u0441 \u0441\u0430\u0439\u0442\u0430 <a href=\"https:\/\/www.opendota.com\/heroes\/102\/benchmarks\" rel=\"noopener noreferrer nofollow\">OpenDota.com<\/a> \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0438\u0445, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u043e\u0442\u0441\u0442\u0430\u0451\u043c \u043e\u0442 \u0440\u0438\u0442\u043c\u0430 \u0438\u0433\u0440\u044b. \u042f \u0432\u0437\u044f\u043b \u043f\u0435\u0440\u0446\u0435\u043d\u0442\u0438\u043b\u044c 99%, \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u043e\u0442\u044b\u0433\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f 1% \u043b\u0443\u0447\u0448\u0438\u0445 \u0438\u0433\u0440 \u043d\u0430 \u0442\u043e\u043c \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u0433\u0435\u0440\u043e\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/13e\/2fe\/554\/13e2fe554ba43e225432bfdaa1367d0b.png\" alt=\"\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u043d\u0430 \u0433\u0435\u0440\u043e\u044f Abaddon\" title=\"\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u043d\u0430 \u0433\u0435\u0440\u043e\u044f Abaddon\" width=\"1321\" height=\"1075\"><figcaption>\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u043d\u0430 \u0433\u0435\u0440\u043e\u044f Abaddon<\/figcaption><\/figure>\n<p>\u0412\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u0445\u0443\u043a\u0435 <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/src\/hooks\/useBenchmarks.ts\" rel=\"noopener noreferrer nofollow\">useBenchmark<\/a>:<\/p>\n<pre><code class=\"javascript\">export function useBenchmarks(state: State): State {   const [localState, setLocalState] = useState&lt;Benchmarks&gt;();    const updateBenchmarksForHero = useCallback(     async function (id: number) {       try {         \/\/ \u0417\u0430\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0433\u0435\u0440\u043e\u044e         const response = await fetch(`${BENCHMARKS_URL}?hero_id=${id}`);         const benchmarks = (await response.json()) as Benchmarks;          \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a         setLocalState(benchmarks);       } catch (error) {         setLocalState({           error,         });       }     },     [setLocalState]   );    useEffect(() =&gt; {     const heroId = heroIdSelector(state);     const benchmarksHeroId = localState?.hero_id;      \/\/ \u0417\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a, \u043f\u0440\u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0433\u0435\u0440\u043e\u0435     if (heroId &amp;&amp; heroId !== benchmarksHeroId &amp;&amp; !localState?.error) {       updateBenchmarksForHero(heroId);     }   }, [state, localState, updateBenchmarksForHero]);      \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0435   return { ...state, benchmarks: localState }; }<\/code><\/pre>\n<h3>\u0423\u0437\u043d\u0430\u0451\u043c \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0433\u0440\u043e\u043a\u0430<\/h3>\n<p>\u0411\u044b\u043b\u043e \u0431\u044b \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c, \u043d\u0430 \u043a\u0430\u043a\u0438\u0445 \u0433\u0435\u0440\u043e\u044f\u0445 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0431\u0430\u043d\u0438\u0442\u044c, \u043e\u0442\u043e\u0431\u0440\u0430\u0442\u044c, \u0437\u0430\u043a\u043e\u043d\u0442\u0440\u0438\u0442\u044c \u0438\u0445 \u0443 \u043d\u0435\u0433\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c <s>\u043f\u0430\u043c\u044f\u0442\u044c<\/s> \u0444\u0430\u0439\u043b \u0438\u0433\u0440\u044b: &#171;server_log.txt&#187; \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0435\u0433\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u043e\u0439, \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043c ID \u0432\u0430\u0448\u0438\u0445 \u043e\u043f\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0438\u0433\u0440 \u0432 OpenDota \u0438\u043b\u0438 Dotabuff. \u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0435\u0441\u0442\u044c \u043c\u0438\u043d\u0443\u0441\u044b &#8212; \u0435\u0441\u043b\u0438 \u043e\u043f\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u0432\u043e\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0441\u043a\u0440\u044b\u0442\u044b\u043c \u0432 Dota 2, \u0442\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043d\u0451\u043c \u0432\u044b \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435. \u0415\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0437\u0430\u0431\u044b\u043b \u0443\u0447\u0435\u0441\u0442\u044c &#8212; \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u043c\u0438, \u043d\u043e \u0432 \u043a\u043e\u0434\u0435 \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>Attention: <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/server\/server-log-reader.js\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u0434 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <\/a>\u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c BSoD \u0432\u0430\u0448\u0438\u0445 \u0433\u043b\u0430\u0437.<\/p>\n<pre><code class=\"javascript\">import fs from \"fs\";  const DEFAULT_FILE =   \"C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\dota 2 beta\\\\game\\\\dota\\\\server_log.txt\";  \/\/ \u041f\u0430\u0440\u0441\u0438\u043c \u0432\u0441\u0435 ID \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 const getDotaIdsFromLine = (line) =&gt; {   let playersRegex = \/\\d:(\\[U:\\d:(\\d+)])\/g;   let playersMatch;   let dotaIds = [];   while ((playersMatch = playersRegex.exec(line))) {     dotaIds.push(playersMatch[2]);   }   return dotaIds; };  const getState = () =&gt; {   return new Promise((res) =&gt; {     \/\/ \u0438\u0449\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u043e \u0441\u043b\u043e\u0432\u043e\u043c Lobby     fs.readFile(DEFAULT_FILE, (err, data) =&gt; {       const rowString = data.toString();       const startIndex = rowString.lastIndexOf(\"Lobby\");       const finishIndex = rowString.indexOf(\"\\n\", startIndex);       const lobbyString = rowString.slice(startIndex, finishIndex);        res(getDotaIdsFromLine(lobbyString));     });   }); };  export const getSteamIDs = () =&gt; {   return getState(); }; <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435, \u0431\u0443\u0434\u0435\u0442 \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0432\u044b\u0432\u0435\u0441\u0442\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 React \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 localhost:3002. \u0411\u0435\u0437 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u043c\u0443, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u044f \u0438\u043c \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c. \u0412 \u043d\u0451\u043c \u0435\u0441\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0434\u0435\u0441\u044f\u0442\u0438 \u0438\u0433\u0440\u0430\u0445. \u041a\u043d\u043e\u043f\u043e\u0447\u043a\u0430 &#171;Ban this id&#187;, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0440\u0443\u0437\u0435\u0439, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0438\u0433\u0440\u0430\u0435\u0448\u044c, \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0438 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 Dotabuff \u043f\u0440\u043e\u0444\u0438\u043b\u044c, \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e95\/f22\/ace\/e95f22ace0a50b6c1571d09d13407f42.png\" width=\"582\" height=\"744\"><figcaption><\/figcaption><\/figure>\n<p>\u042d\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 Electron \u043e\u0432\u0435\u0440\u043b\u0435\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u0433\u0435\u0440\u043e\u0435\u0432, \u043d\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0438\u0433\u0440\u0430\u044e \u0432 \u0438\u0433\u0440\u044b \u0438 \u043c\u0430\u043b\u043e \u0443\u0434\u0435\u043b\u044f\u044e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0432\u0435\u0449\u0430\u043c \ud83d\ude42<\/p>\n<p>\u0427\u0442\u043e \u0435\u0449\u0451 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c: <\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0441\u044f DLL Injection \u0438\u0437 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Rust, \u043d\u043e \u0442\u0430\u043c \u0431\u044b\u043b \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u0437\u044a\u044f\u043d \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0436\u0438\u043b\u0438 \u0434\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0433\u0440\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u0430 \u0438\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u0437\u0430\u0431\u0440\u043e\u0448\u0435\u043d\u0430. <\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u0433\u0435\u0440\u043e\u0435\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 ML \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0435 \u0438\u0433\u0440 \u0438\u0437 OpenDota.com \u0438\u043b\u0438 \u0441 \u0442\u0435\u0445 \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 Valve (\u043f\u0440\u043e\u0432\u0430\u043b &#8212; \u0445\u043e\u0442\u044f \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0441\u0443\u043c\u0435\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c ML \u0447\u0430\u0441\u0442\u044c)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u0440\u0441\u0438\u043d\u0433 Dota 2 \u0440\u0435\u043f\u043b\u0435\u0435\u0432 &#8212; \u0442\u0430\u043c \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Protobuff \u0438 \u0432\u0441\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u0441 \u044d\u0442\u0438\u043c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u043c \u043e\u0431\u044a\u0451\u043c\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u043b\u0430\u0442\u044c?<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u044b\u0432\u043e\u0434: \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 Dota2 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0440\u0443\u0434\u0430, \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043f\u0440\u044f\u043c\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0433\u0440\u044b, \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u043a\u0438\u0431\u0435\u0440\u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0445 \u0438\u0433\u0440 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e \u043e\u0432\u0435\u0440\u043b\u0435\u044f \u0434\u043b\u044f Twitch \u0441\u0442\u0440\u0438\u043c\u0430, \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0440\u0435\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u0437 \u0440\u0435\u043f\u043b\u0435\u0435\u0432, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u0430\u043c. <\/p>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0432\u0430\u043c \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u044f \u0441\u043e\u0431\u0440\u0430\u043b \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435 \u0447\u0438\u0442\u044b (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 &#8212; \u0447\u0438\u0442\u044b \u044d\u0442\u043e \u0438\u043b\u0438 \u043d\u0435\u0442?), \u0434\u0430 \u0435\u0449\u0451 \u0438 \u043d\u0430 JS, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043e\u0440\u0444\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u043b\u0438 \u043b\u0435\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0442\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432 \u041b\u0421, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<\/div>\n<p> \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\/post\/543354\/\"> https:\/\/habr.com\/ru\/post\/543354\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f <s>\u043b\u0435\u0433\u0430\u043b\u044c\u043d\u044b\u0435<\/s> \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u043e\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u043a\u0430\u043a NodeJS, Electron \u0438 React, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u0445\u043e\u0434\u044f \u0431\u0430\u043d \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439. \u041d\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u043c\u0435\u043d\u044f \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u043b\u0430 \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f <a href=\"https:\/\/habr.com\/ru\/post\/446516\/\" rel=\"noopener noreferrer nofollow\">\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u043e\u0437\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0420\u043e\u0448\u0430\u043d\u0430<\/a> \u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0440\u0443\u0442\u0438\u043d\u044b. \u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043a\u0430\u043a\u0438\u043c \u043b\u0438\u0431\u043e \u043d\u0435\u0447\u0435\u0441\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438\u0433\u0440\u0443 &#8212; \u0432\u0441\u0435 API \u043e\u0442\u043a\u0440\u044b\u0442\u044b, \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0447\u0435\u0441\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438\u0433\u0440\u044b \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/p>\n<figure class=\"full-width\"><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0434\u0435\u043c\u043e \u0440\u0435\u0436\u0438\u043c\u0435 \u0438\u0433\u0440\u044b<\/figcaption><\/figure>\n<p>\u0412\u0435\u0441\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\" rel=\"noopener noreferrer nofollow\">\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043d\u0430 Github<\/a>, \u0441 \u043d\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0441\u044f, \u043b\u0430\u0439\u043a\u043d\u0443\u0442\u044c, \u0444\u043e\u0440\u043a\u043d\u0443\u0442\u044c, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u041f\u0438\u0441\u0430\u043b \u0435\u0433\u043e \u043b\u0435\u0432\u043e\u0439 \u043f\u044f\u0442\u043a\u043e\u0439 \u043f\u0440\u0430\u0432\u043e\u0439 \u043d\u043e\u0433\u0438, \u043f\u0440\u044f\u043c\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0433\u0440\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u044c\u0431\u0430 \u043d\u0435 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430 \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u043a\u0443.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e, \u0442\u043e \u044f \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b, \u0443\u0436\u0435 \u0432\u0441\u0451 \u0434\u043e \u043c\u0435\u043d\u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u0438 \u0434\u0430\u0436\u0435 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0443\u043c\u0435\u044e\u0442.<\/p>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u0432\u043e \u0438\u043c\u044f \u0434\u043e\u0431\u0440\u0430 &#8212; \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0441\u0442\u0443\u0434\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438, \u043a\u0438\u0431\u0435\u0440\u0441\u043f\u043e\u0440\u0442\u0430, \u0441\u0442\u0440\u0438\u043c\u043e\u0432 Twitch, \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0442.\u0434., \u0442\u0430\u043a \u0438 \u0432\u043e \u0438\u043c\u044f \u0437\u043b\u0430 &#8212; \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0447\u0438\u0442\u043e\u0432, \u0432\u044b\u0431\u043e\u0440 \u0437\u0430 \u0432\u0430\u043c\u0438.<\/p>\n<blockquote>\n<p><strong>Disclaimer: \u0410\u0432\u0442\u043e\u0440 \u043d\u0435 \u043d\u0435\u0441\u0451\u0442 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0437\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u0430\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0438\u043b\u0438 \u0443\u0449\u0435\u0440\u0431 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0434\u0435\u0441\u044c \u0438\u0437\u043b\u043e\u0436\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445 MOBA, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u043e\u0447\u044c \u0438\u043c \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0441 \u0447\u0438\u0442\u0435\u0440\u0430\u043c\u0438. \u0418, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0430\u0432\u0442\u043e\u0440 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u043e\u0442\u043e\u0432\u043e\u0434, \u0447\u0438\u0442\u0435\u0440 \u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043c \u0431\u044b\u043b.<\/strong><\/p>\n<\/blockquote>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0443\u043c\u0435\u044e\u0442:<\/p>\n<ul>\n<li>\n<p>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0432\u0443\u043a\u0438 \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0430\u0436\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0437\u043e\u043b\u043e\u0442\u0430 (GPM)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u0433\u0435\u0440\u043e\u044e \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 OpenDota.com<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0432\u043e\u0437\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0440\u043e\u0448\u0430\u043d\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u0433\u0435\u0440\u043e\u044f\u0445 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a\u0438\u0435 \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0438\u0433\u0440\u044b \u043f\u043e \u0435\u0451 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044e<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0445\/\u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 <\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c &#171;\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0439\u0442\u044b&#187;<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u0438\u0431\u0435\u0440\u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0445 \u0438\u0433\u0440<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439\u0448\u0438\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u0440\u044f\u043c\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0438 \u0442.\u0434&#8230;<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3>\u0421 \u0447\u0435\u0433\u043e \u0432\u0441\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c<\/h3>\n<p>\u0423 Dota 2 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0435\u0441\u0442\u044c GSI (<a href=\"https:\/\/developer.valvesoftware.com\/wiki\/Counter-Strike:_Global_Offensive_Game_State_Integration\" rel=\"noopener noreferrer nofollow\">Game State Integration<\/a>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \/ \u043e\u0432\u0435\u0440\u043b\u0435\u0435\u0432 (\u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043f\u043e\u0432\u0435\u0440\u0445 \u0438\u0433\u0440\u044b) \u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u0438\u0445 \u0441\u0430\u043c\u044b\u0445 \u043e\u0432\u0435\u0440\u043b\u0435\u0435\u0432 \u0441 \u0438\u0433\u0440\u043e\u0439 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438\u0433\u0440\u044b \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0447\u0442\u043e &#8212; \u0442\u043e \u0441 \u043d\u0438\u043c \u0434\u0435\u043b\u0430\u0442\u044c. \u0414\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 NodeJS \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 <a href=\"https:\/\/github.com\/xzion\/dota2-gsi\" rel=\"noopener noreferrer nofollow\">\u0432 \u0432\u0438\u0434\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/a>. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b GSI \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 &#171;Steam\\steamapps\\common\\dota&nbsp;2&nbsp;beta\\game\\dota\\cfg&#187;, \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u0438\u0435:<\/p>\n<pre><code>\"dota2-gsi Configuration\" {     \"uri\"               \"http:\/\/localhost:3001\/\"     \"timeout\"           \"5.0\"     \"buffer\"            \"0.1\"     \"throttle\"          \"0.1\"     \"heartbeat\"         \"30.0\"     \"data\"     {         \"buildings\"     \"1\"         \"provider\"      \"1\"         \"map\"           \"1\"         \"player\"        \"1\"         \"hero\"          \"1\"         \"abilities\"     \"1\"         \"items\"         \"1\"         \"draft\"         \"1\"         \"wearables\"     \"1\"     } }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u0433\u0440\u044b, \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440 GSI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e HTTP \u043d\u0430 localhost:3001, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/server\/index.js#L9-L11\" rel=\"noopener noreferrer nofollow\">NodeJS \u0441\u0435\u0440\u0432\u0435\u0440<\/a>:<\/p>\n<pre><code class=\"javascript\">var server = app.listen(3001, () =&gt; {   console.log(\"Dota 2 GSI listening on port \" + server.address().port); });<\/code><\/pre>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/Luchanso\/dota-helper\/blob\/v0.1.0\/server\/dota2.js\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u0434 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044f<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d \u0438\u0437 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 NodeJS<\/p>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u043c\u0438\u0440\u0435 \u0433\u043e\u0442\u043e\u0432.<\/p>\n<h3>\u0414\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0434\u0430\u044e\u0442 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430<\/h3>\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u043e\u0432\u043e\u0433\u043e \u043c\u0430\u0442\u0447\u0430 \u0432 Dota 2, GSI \u043e\u0442\u0434\u0430\u0451\u0442 \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u0437 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0448\u0435\u0434\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0433\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>ID \u0413\u0435\u0440\u043e\u044f<\/p>\n<\/li>\n<li>\n<p>\u0418\u0433\u0440\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u041b\u0438\u0447\u043d\u044b\u0439 GPM<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0432 \u0438\u0433\u0440\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u043a\u0430\u0440\u0442\u0430 \u0441 \u0434\u0435\u043c\u043e \u0440\u0435\u0436\u0438\u043c\u043e\u043c)<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"json\">{     \"ip\": \"::ffff:127.0.0.1\",     \"gamestate\": {         \"buildings\": {             \"radiant\": {                 \"dota_goodguys_tower1_top\": {                     \"health\": 1800,                     \"max_health\": 1800                 },                 \"dota_goodguys_tower2_top\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower3_top\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower1_mid\": {                     \"health\": 1800,                     \"max_health\": 1800                 },                 \"dota_goodguys_tower2_mid\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower3_mid\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower1_bot\": {                     \"health\": 1800,                     \"max_health\": 1800                 },                 \"dota_goodguys_tower2_bot\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower3_bot\": {                     \"health\": 2500,                     \"max_health\": 2500                 },                 \"dota_goodguys_tower4_top\": {                     \"health\": 2600,                     \"max_health\": 2600                 },                 \"dota_goodguys_tower4_bot\": {                     \"health\": 2600,                     \"max_health\": 2600                 },                 \"good_rax_melee_top\": { \"health\": 2200, \"max_health\": 2200 },                 \"good_rax_range_top\": { \"health\": 1300, \"max_health\": 1300 },                 \"good_rax_melee_mid\": { \"health\": 2200, \"max_health\": 2200 },                 \"good_rax_range_mid\": { \"health\": 1300, \"max_health\": 1300 },                 \"good_rax_melee_bot\": { \"health\": 2200, \"max_health\": 2200 },                 \"good_rax_range_bot\": { \"health\": 1300, \"max_health\": 1300 },                 \"dota_goodguys_fort\": { \"health\": 4500, \"max_health\": 4500 }             }         },         \"provider\": {             \"name\": \"Dota 2\",             \"appid\": 570,             \"version\": 47,             \"timestamp\": 1613780229         },         \"map\": {             \"name\": \"dota\",             \"matchid\": \"0\",             \"game_time\": 2,             \"clock_time\": 1,             \"daytime\": true,             \"nightstalker_night\": false,             \"game_state\": \"DOTA_GAMERULES_STATE_GAME_IN_PROGRESS\",             \"paused\": false,             \"win_team\": \"none\",             \"customgamename\": \"C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\dota 2 beta\\\\game\\\\dota_addons\\\\hero_demo\",             \"ward_purchase_cooldown\": 0         },         \"player\": {             \"steamid\": \"76561198282999022\",             \"name\": \"D1rty F0x\",             \"activity\": \"playing\",             \"kills\": 0,             \"deaths\": 0,             \"assists\": 0,             \"last_hits\": 0,             \"denies\": 0,             \"kill_streak\": 0,             \"commands_issued\": 0,             \"kill_list\": {},             \"team_name\": \"radiant\",             \"gold\": 99999,             \"gold_reliable\": 0,             \"gold_unreliable\": 99999,             \"gold_from_hero_kills\": 0,             \"gold_from_creep_kills\": 0,             \"gold_from_income\": 2,             \"gold_from_shared\": 0,             \"gpm\": 3913086,             \"xpm\": 0         },         \"hero\": {             \"xpos\": -6700,             \"ypos\": -6700,             \"id\": 6,             \"name\": \"npc_dota_hero_drow_ranger\",             \"level\": 1,             \"alive\": true,             \"respawn_seconds\": 0,             \"buyback_cost\": 8540,             \"buyback_cooldown\": 0,             \"health\": 560,             \"max_health\": 560,             \"health_percent\": 100,             \"mana\": 255,             \"max_mana\": 255,             \"mana_percent\": 100,             \"silenced\": false,             \"stunned\": false,             \"disarmed\": false,             \"magicimmune\": false,             \"hexed\": false,             \"muted\": false,             \"break\": false,             \"smoked\": false,             \"has_debuff\": false,             \"talent_1\": false,             \"talent_2\": false,             \"talent_3\": false,             \"talent_4\": false,             \"talent_5\": false,             \"talent_6\": false,             \"talent_7\": false,             \"talent_8\": false         },         \"abilities\": {             \"ability0\": {                 \"name\": \"drow_ranger_frost_arrows\",                 \"level\": 0,                 \"can_cast\": false,                 \"passive\": false,                 \"ability_active\": true,                 \"cooldown\": 0,                 \"ultimate\": false             },             \"ability1\": {                 \"name\": \"drow_ranger_wave_of_silence\",                 \"level\": 0,                 \"can_cast\": false,                 \"passive\": false,                 \"ability_active\": true,                 \"cooldown\": 0,                 \"ultimate\": false             },             \"ability2\": {                 \"name\": \"drow_ranger_multishot\",                 \"level\": 0,                 \"can_cast\": false,                 \"passive\": false,                 \"ability_active\": true,                 \"cooldown\": 0,                 \"ultimate\": false             },             \"ability3\": {                 \"name\": \"drow_ranger_marksmanship\",                 \"level\": 0,                 \"can_cast\": false,                 \"passive\": true,                 \"ability_active\": true,                 \"cooldown\": 0,                 \"ultimate\": true             }         },         \"items\": {             \"slot0\": { \"name\": \"empty\" },             \"slot1\": { \"name\": \"empty\" },             \"slot2\": { \"name\": \"empty\" },             \"slot3\": { \"name\": \"empty\" },             \"slot4\": { \"name\": \"empty\" },             \"slot5\": { \"name\": \"empty\" },             \"slot6\": {<\/code><\/pre>\n<\/div>\n<\/details>\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-318355","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318355","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=318355"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318355\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}