{"id":287789,"date":"2018-08-16T14:16:39","date_gmt":"2018-08-16T10:16:39","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=287789"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=287789","title":{"rendered":"UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #1 | \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 DataAsset"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/418913\/\" class=\"post__text post__text-html js-mediator-article\">\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\n<p><a href=\"https:\/\/habr.com\/post\/418913\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #1 | \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 DataAsset<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/418951\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #2 | \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 Blueprint \u043a C++<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/419347\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #3 | \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/420115\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #4 | \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0435\u0439\u043d\u0435\u0440\u0430<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/420233\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #5 | \u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u0421\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u041a\u043b\u0438\u0435\u043d\u0442\u043e\u043c<\/a><\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_s\/la\/0x\/_sla0x2mr61e4wocmt62pmtstj0.png\" alt=\"DataAsset\" align=\"left\">\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u0441\u043c\u044b\u0441\u043b \u0438 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f <strong><em>DataAsset<\/em><\/strong>, \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f <strong><em>Actors<\/em><\/strong> \u0438 \u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<p>  <\/p>\n<hr>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>\u041f\u0440\u0438\u043d\u044f\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u043e\u043a\u043e\u043b\u043e 2-\u0445 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434, \u043c\u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e \u0442\u043e, \u0447\u0442\u043e \u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043d\u0430\u0442\u043a\u043d\u0443\u0442\u0441\u044f \u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 <strong>Unreal Engine 4<\/strong> \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043a\u0430\u043a \u044d\u0442\u043e \u043a\u0440\u0443\u0442\u043e \u0438 \u043f\u0440\u043e\u0441\u0442\u043e. \u041d\u0430 \u0434\u0435\u043b\u0435 \u0436\u0435, \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 \u043d\u0435 \u0443\u043c\u0435\u044e\u0449\u0435\u043c\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 <em>(\u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435)<\/em> \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e, \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043e\u043a \u0438\u0437 \u0434\u0432\u0438\u0436\u043a\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0443\u043f\u0435\u0440-\u043c\u0435\u0433\u0430 \u0438\u0433\u0440\u0443, \u0441 \u0440\u043e\u0441\u0442\u043e\u043c \u0437\u043d\u0430\u043d\u0438\u0439 \u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u0440\u043e\u0441\u043b\u043e \u0432 \u0445\u043e\u0431\u0431\u0438. \u041f\u043e\u0434\u043d\u044f\u0442\u044c \u0432\u0441\u0435 \u043f\u043b\u0430\u0441\u0442\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u0433\u0440\u044b, \u043e\u0442 3D \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u0438 \u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430, \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0430\u043b\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u043c\u044b\u043c \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435\u043c. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0430 \u0434\u043b\u044f \u043c\u043e\u0437\u0433\u0430.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c?.. \u041d\u0430\u0432\u0435\u0440\u043d\u043e \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e. \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u0430\u043d\u0443\u0430\u043b\u044b \u043b\u0438\u0431\u043e \u0434\u0430\u044e\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f (\u0438 \u0442\u0430\u043a\u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e), \u043b\u0438\u0431\u043e \u0443\u0436 \u0434\u043b\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0444\u0438 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043b\u0438\u0448\u044c \u043e\u0431\u0449\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f.<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043b\u0443\u0447\u0448\u0435 \u0441 \u043d\u0430\u0447\u0430\u043b\u0430. \u041d\u0435 \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e \u0442\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0438\u0437\u043b\u0430\u0433\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043d\u043e, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0438\u043c\u0435\u044f \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u044f\u0449\u0438\u043a \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0441 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c. \u0422\u0430\u043a \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0436\u0435 \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u044d\u0442\u043e \u044f\u0449\u0438\u043a \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438.<\/p>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c. \u041f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e <strong><em>DataAsset<\/em><\/strong>?<\/p>\n<p>  <\/p>\n<ol>\n<li>\u041e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0438 \u201c\u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430\u0445\u201d \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 <strong><em>DataTable<\/em><\/strong>. \u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u043e? \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 <strong><em>Blueprint<\/em><\/strong>, \u0442\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0438 \u0435\u0433\u043e \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u0434\u0440\u0435\u0441 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0421\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u0441\u044c \u2014 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e? \u0421 <strong><em>DataAsset<\/em><\/strong> \u0436\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f. \u0412\u0441\u0435 \u0441\u0432\u044f\u0437\u0438 \u043e\u0431\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u044b \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0443\u0432\u0435\u0440\u0435\u043d\u044b \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 \u0433\u043e\u0434\u044b \u0432\u043f\u0435\u0440\u0435\u0434, \u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/li>\n<li>\u0412\u0442\u043e\u0440\u043e\u0435 \u043d\u0435\u043e\u0441\u043f\u043e\u0440\u0438\u043c\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u2014 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b (<strong><em>Struct<\/em><\/strong>).<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0431 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u0445. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044f \u0432\u0438\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d. \u042d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0430 <em>C++<\/em>. <\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0431\u0435\u0437 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u043e\u0434\u043e\u043c \u0432\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043d\u0438\u0447\u0435\u0433\u043e <em>\u044d\u043f\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e<\/em>, \u0442\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a, \u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c. <\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0434\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0439 \u0442\u0440\u044e\u043a \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong><em>Actor<\/em><\/strong> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u041d\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043d\u0438\u0435 \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0443\u0447\u0438\u0442\u044c \u0421++, \u0438 \u0442\u0430\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0443\u043f\u0438\u043a \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c.<br \/>  \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u044b \u0443\u0431\u0435\u0436\u0434\u0435\u043d\u044b, \u0447\u0442\u043e \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 <strong><em>Blueprint<\/em><\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/p>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0443\u0436\u0435 \u0443\u0432\u0435\u0440\u043e\u0432\u0430\u043b\u0438, \u0447\u0442\u043e <strong><em>DataAsset<\/em><\/strong> \u2014 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0435\u0449\u0435 \u0441\u043e\u0432\u0441\u0435\u043c &#8216;\u043d\u0435 \u0432 \u0442\u0430\u043d\u043a\u0435&#8217;<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>\u0415\u0441\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e \u0448\u0430\u0433\u0430\u043c \u0438 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u043c \u0444\u043e\u0440\u0443\u043c\u0435, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u043c\u0443 <strong>UE4<\/strong>. \u041f\u0440\u043e\u0441\u0442\u043e <em>\u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0442\u0435<\/em> \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 <em>\u201dUE4 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 DataAsset\u201d<\/em>. \u0421\u0430\u043c \u043e\u0441\u0432\u0430\u0438\u0432\u0430\u043b \u0430\u0437\u044b \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443 \u043e\u043a\u043e\u043b\u043e \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u0441\u043e\u0437\u0434\u0430\u0435\u043c <em>C++ Class<\/em>, \u043a\u0430\u043a <em>Child<\/em> \u043e\u0442 <strong><em>UDataAsset<\/em><\/strong>.<br \/>  (\u0412\u0435\u0441\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0438\u0436\u0435, \u0432\u0437\u044f\u0442 \u0438\u0437 \u043c\u043e\u0435\u0433\u043e, \u0435\u0449\u0435 \u043d\u0435 \u0440\u043e\u0436\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0439\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043a \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u0435\u0435.)<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">\/\/\/ Copyright 2018 Dreampax Games, Inc. All Rights Reserved.  #pragma once  \/* Includes from Engine *\/ #include \"Engine\/DataAsset.h\" #include \"Engine\/Texture2D.h\" #include \"GameplayTagContainer.h\"  \/* Includes from Dreampax *\/ \/\/no includes  #include \"DreampaxItemsDataAsset.generated.h\"  UCLASS(BlueprintType) class DREAMPAX_API UDreampaxItemsDataAsset : public UDataAsset {     GENERATED_BODY() }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0436\u0435 \u043d\u0430 \u0431\u0430\u0437\u0435 \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c <strong><em>Blueprint<\/em><\/strong>, \u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u043e\u043a\u0430 \u0440\u0430\u043d\u043e\u0432\u0430\u0442\u043e\u2026 \u043f\u043e\u043a\u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0443\u0441\u0442\u044b\u0448\u043a\u0430. \u0425\u043e\u0442\u044f, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0443\u0440 \u0438 \u0438\u043c\u0435\u043d \u0443\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u044b.<\/p>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430, \u0432\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441\u0432\u043e\u0435\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u041e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u0440\u0430\u0439\u043d\u0435 \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435. \u0422\u0440\u0438-\u043f\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044f, \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432. \u0418\u043d\u043e\u0433\u0434\u0430, \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0432\u0430\u0448 <strong><em>Blueprint<\/em><\/strong> \u043c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0434\u0435\u0432\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0443\u0441\u0442, \u0447\u0442\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u0443\u0436\u0435 \u0434\u0435\u0441\u044f\u0442\u043e\u043a-\u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u044f\u043c\u043e \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435, \u0442.\u043a. \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u0430 \u0432\u0440\u044f\u0434 \u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0433\u0434\u0435-\u0442\u043e \u0435\u0449\u0435. \u041e\u0431\u044b\u0447\u043d\u043e \u0436\u0435, \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0435 \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 <em>\u201cSrtuctName.h\u201d<\/em>, \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">USTRUCT(BlueprintType) struct FItemsDatabase {     GENERATED_USTRUCT_BODY()      \/* Storage for any float constant data *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     TMap&lt;FGameplayTag, float&gt; ItemData;      \/* Gameplay tag container to store the properties *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     FGameplayTagContainer ItemPropertyTags;      \/* Texture for showing in the inventory *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     UTexture2D* IconTexture;      \/* The class put on the Mesh on the character *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     TSubclassOf&lt;class ADreampaxOutfitActor&gt; ItemOutfitClass;      \/* The class to spawn the Mesh in the level then it is dropped *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     TSubclassOf&lt;class ADreampaxPickupActor&gt; ItemPickupClass;  \/\/TODO internal call functions };<\/code><\/pre>\n<p>  <\/p>\n<p><em>\u0411\u0443\u0434\u044c\u0442\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u0441<\/em> <strong><em>TMap<\/em><\/strong> <em>. \u041d\u0435 \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f! \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043d\u0435\u0432\u0430\u0436\u043d\u043e.<\/em><\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u044f \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <strong><em>FName<\/em><\/strong>. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0432\u0435\u044f\u043d\u0438\u044f\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong><em>FGameplayTag<\/em><\/strong> \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c, \u0442.\u043a. \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0440\u0438\u0441\u043a \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u0438\u043c\u0435\u0435\u0442 \u0440\u044f\u0434 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e\u0437\u0436\u0435.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">GameplayTag \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435<\/b><\/p>\n<div class=\"spoiler_text\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jl\/1p\/20\/jl1p20bzjqgw5p3nowvlnrejc2m.png\" alt=\"GameplayTag\"><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DataTable \u0434\u043b\u044f GameplayTag \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0438\u0437 Excel<\/b><\/p>\n<div class=\"spoiler_text\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dw\/pc\/mr\/dwpcmrmd11j4wba_uby_3eytaa8.png\" alt=\"DataTable\"><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0438\u043c \u0442\u043e\u043d\u043e\u043c \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a <strong>GetSomething()<\/strong>. \u0412\u0438\u0434\u0438\u043c\u043e, \u043d\u0430\u0434 \u043c\u043e\u0438\u043c \u0432\u043e\u0441\u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0449\u0435 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0432 \u044d\u0442\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0435\u0449\u0435 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">USTRUCT(BlueprintType) struct FBlocksDatabase {     GENERATED_USTRUCT_BODY()      \/* The class put on the Mesh for the building block *\/     UPROPERTY(EditDefaultsOnly, Category = \"BlocksDatabase\")     TSubclassOf&lt;class ADreampaxBuildingBlock&gt; BuildingBlockClass;      UPROPERTY(EditDefaultsOnly, Category = \"BlocksDatabase\")     FVector DefaultSize;      UPROPERTY(EditDefaultsOnly, Category = \"BlocksDatabase\")     FVector SizeLimits;      UPROPERTY(EditDefaultsOnly, Category = \"BlocksDatabase\")     TArray&lt;class UMaterialInterface *&gt; BlockMaterials;      FORCEINLINE TSubclassOf&lt;class ADreampaxBuildingBlock&gt; * GetBuildingBlockClass()     {         return &amp;BuildingBlockClass;     }      FORCEINLINE FVector GetDefaultSize()     {         return DefaultSize;     }      FORCEINLINE FVector GetSizeLimits()     {         return SizeLimits;     }      FORCEINLINE TArray&lt;class UMaterialInterface *&gt; GetBlockMaterials()     {         return BlockMaterials;     } };<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0418 \u0441\u0430\u043c\u044b\u0439 \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u044d\u0442\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = \"ItemsDatabase\") TMap&lt;FGameplayTag, FItemsDatabase&gt; ItemsDataBase;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430\u0448 <strong><em>Blueprint<\/em><\/strong> \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0435\u0433\u043e.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f DataAsset<\/b><\/p>\n<div class=\"spoiler_text\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/8q\/fm\/ke\/8qfmkepu_ehz2ptdnbwbbwzdtoq.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f DataAsset\"><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041d\u043e \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c, \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432\u044b\u0437\u043e\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0431\u0430\u0437\u044b.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DreampaxItemsDataAsset.h<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">\/\/\/ Copyright 2018 Dreampax Games, Inc. All Rights Reserved.  #pragma once  \/* Includes from Engine *\/ #include \"Engine\/DataAsset.h\" #include \"Engine\/Texture2D.h\" #include \"GameplayTagContainer.h\"  \/* Includes from Dreampax *\/ \/\/no includes  #include \"DreampaxItemsDataAsset.generated.h\"  USTRUCT(BlueprintType) struct FItemsDatabase {     GENERATED_USTRUCT_BODY()      \/* Storage for any float constant data *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     TMap&lt;FGameplayTag, float&gt; ItemData;      \/* Gameplay tag container to store the properties *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     FGameplayTagContainer ItemPropertyTags;      \/* Texture for showing in the inventory *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     UTexture2D* IconTexture;      \/* The class put on the Mesh on the character *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     TSubclassOf&lt;class ADreampaxOutfitActor&gt; ItemOutfitClass;      \/* The class to spawn the Mesh in the level then it is dropped *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     TSubclassOf&lt;class ADreampaxPickupActor&gt; ItemPickupClass;      \/\/TODO internal call functions };  UCLASS(BlueprintType) class DREAMPAX_API UDreampaxItemsDataAsset : public UDataAsset {     GENERATED_BODY()  protected:      \/* This GameplayTag is used to find a Max size of the stack for the Item. This tag can be missed in the ItemData *\/     UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = \"ItemsDatabase\")     FGameplayTag DefaultGameplayTagForMaxSizeOfStack;      \/* This is the main Database for all Items. It contains constant common variables *\/     UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = \"ItemsDatabase\")     TMap&lt;FGameplayTag, FItemsDatabase&gt; ItemsDataBase;  public:      FORCEINLINE TMap&lt;FGameplayTag, float&gt; * GetItemData(const FGameplayTag &amp;ItemNameTag);      FORCEINLINE FGameplayTagContainer * GetItemPropertyTags(const FGameplayTag &amp;ItemNameTag);      \/* Used in the widget *\/     UFUNCTION(BlueprintCallable, Category = \"ItemDatabase\")     FORCEINLINE UTexture2D * GetItemIconTexture(const FGameplayTag &amp; ItemNameTag) const;      FORCEINLINE TSubclassOf&lt;class ADreampaxOutfitActor&gt; * GetItemOutfitClass(const FGameplayTag &amp; ItemNameTag);      FORCEINLINE TSubclassOf&lt;class ADreampaxPickupActor&gt; * GetItemPickupClass(const FGameplayTag &amp; ItemNameTag);      int GetItemMaxStackSize(const FGameplayTag &amp; ItemNameTag);      FORCEINLINE bool ItemIsFound(const FGameplayTag &amp; ItemNameTag) const;  };<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DreampaxItemsDataAsset.\u0441pp<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">\/\/\/ Copyright 2018 Dreampax Games, Inc. All Rights Reserved.  #include \"DreampaxItemsDataAsset.h\"  \/* Includes from Engine *\/ \/\/ no includes  \/* Includes from Dreampax *\/ \/\/ no includes  TMap&lt;FGameplayTag, float&gt;* UDreampaxItemsDataAsset::GetItemData(const FGameplayTag &amp; ItemNameTag) {     return &amp; ItemsDataBase.Find(ItemNameTag)-&gt;ItemData; }  FGameplayTagContainer * UDreampaxItemsDataAsset::GetItemPropertyTags(const FGameplayTag &amp; ItemNameTag) {     return &amp; ItemsDataBase.Find(ItemNameTag)-&gt;ItemPropertyTags; }  UTexture2D* UDreampaxItemsDataAsset::GetItemIconTexture(const FGameplayTag &amp;ItemNameTag) const {     if (ItemNameTag.IsValid())     {          return ItemsDataBase.Find(ItemNameTag)-&gt;IconTexture;     }      return nullptr; }  TSubclassOf&lt;class ADreampaxOutfitActor&gt;* UDreampaxItemsDataAsset::GetItemOutfitClass(const FGameplayTag &amp;ItemNameTag) {     return &amp; ItemsDataBase.Find(ItemNameTag)-&gt;ItemOutfitClass; }  TSubclassOf&lt;class ADreampaxPickupActor&gt;* UDreampaxItemsDataAsset::GetItemPickupClass(const FGameplayTag &amp;ItemNameTag) {     return &amp; ItemsDataBase.Find(ItemNameTag)-&gt;ItemPickupClass; }  int UDreampaxItemsDataAsset::GetItemMaxStackSize(const FGameplayTag &amp; ItemNameTag) {     \/\/ if DefaultGameplayTagForMaxSizeOfStack is missed return 1 for all items     if (!DefaultGameplayTagForMaxSizeOfStack.IsValid())     {         return 1;     }      int MaxStackSize = floor(GetItemData(ItemNameTag)-&gt;FindRef(DefaultGameplayTagForMaxSizeOfStack));      if (MaxStackSize &gt; 0)     {         return MaxStackSize;     }      \/\/ if Tag for MaxStackSize is \"0\" return 1     return 1; }  bool UDreampaxItemsDataAsset::ItemIsFound(const FGameplayTag &amp; ItemNameTag) const {     if (ItemsDataBase.Find(ItemNameTag))     {         return true;     }      return false; }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u0435\u0440\u0430 \u0442\u0443\u0442 \u043f\u043e\u043a\u0430 \u0435\u0449\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442. \u041d\u043e \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0434\u0435\u043b\u0430\u043d \u0432 \u0432\u0435\u0440\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438.<\/p>\n<p>  <\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/post\/418951\/\">\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0430\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f <strong><em>DataAsset<\/em><\/strong> (\u0434\u0430, \u0438 \u043b\u044e\u0431\u043e\u0433\u043e <strong><em>Blueprint<\/em><\/strong>) \u0434\u043b\u044f \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 C++, \u0438 \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438\u043b\u0438 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0430\u0441\u043f\u0435\u043a\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/post\/418913\/\"> https:\/\/habr.com\/post\/418913\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/418913\/\" class=\"post__text post__text-html js-mediator-article\">\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\n<p><a href=\"https:\/\/habr.com\/post\/418913\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #1 | \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 DataAsset<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/418951\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #2 | \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 Blueprint \u043a C++<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/419347\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #3 | \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/420115\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #4 | \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0435\u0439\u043d\u0435\u0440\u0430<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/420233\/\">UE4 | \u0418\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Multiplayer #5 | \u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u0421\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u041a\u043b\u0438\u0435\u043d\u0442\u043e\u043c<\/a><\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_s\/la\/0x\/_sla0x2mr61e4wocmt62pmtstj0.png\" alt=\"DataAsset\" align=\"left\">\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u0441\u043c\u044b\u0441\u043b \u0438 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f <strong><em>DataAsset<\/em><\/strong>, \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f <strong><em>Actors<\/em><\/strong> \u0438 \u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<p>  <\/p>\n<hr>\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-287789","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287789","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=287789"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287789\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}