{"id":287342,"date":"2018-08-16T14:07:08","date_gmt":"2018-08-16T10:07:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=287342"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=287342","title":{"rendered":"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"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/420115\/\" 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<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ww\/3x\/ib\/ww3xibttrcqtiuzon7ygobnwftu.png\" title=\"Dreampax\" align=\"left\">\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044f \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u043a \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u043c\u0443 Actor. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432 \u0438 \u043b\u043e\u0433\u0438\u043a\u0443 \u0438\u0445 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438\/\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438, \u0442\u043e \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u0432 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0435\u0433\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0438\u043b\u0438 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <em>Blueprint<\/em>, \u0442\u0430\u043a \u0441 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c <em>\u0421++<\/em>. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b <em>\u0421++<\/em>.<a name=\"habracut\"><\/a><\/p>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u044f\u0447\u0435\u0439\u043a\u0438 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c <em>.h<\/em> \u0444\u0430\u0439\u043b\u0435, \u0447\u0442\u043e\u0431\u044b \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043f\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u0430\u043c \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">StructContainerStack.h<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">\/\/\/ Copyright 2018 Dreampax Games, Inc. All Rights Reserved.  \/* Struct for Container Stack. This file is used as #include *\/  #pragma once  \/* Includes from Engine *\/ #include \"GameplayTagContainer.h\"  \/* Includes from Dreampax *\/ #include \"Data\/StructItemFactors.h\"  #include \"StructContainerStack.generated.h\"  \/* Declaration for contaiter stack structure. BlueprintType required to use in BP *\/ USTRUCT(BlueprintType) struct FContainerStack {     GENERATED_USTRUCT_BODY()      \/* Gameplay tag to store the name *\/     UPROPERTY(EditAnywhere)     FGameplayTag ItemNameTag;      UPROPERTY(EditAnywhere)     int ItemAmount;      \/* Specific factors such as durability, damage etc. *\/     UPROPERTY(EditAnywhere)     TArray &lt;FItemFactor&gt; ItemFactors;      FContainerStack()     {         Clear();     }      void Clear()     {         ItemNameTag.FromExportString(\"NAME_None\");         ItemAmount = 0;         ItemFactors.Empty();     }      FORCEINLINE FGameplayTag GetItemNameTag() const     {         return ItemNameTag;     }      void SetItemNameTag(FGameplayTag const &amp; ItemNameTagNew)     {         if (ItemNameTagNew.IsValid())         {             ItemNameTag = ItemNameTagNew;         }         else         {             Clear();         }     }      FORCEINLINE int GetItemAmount() const     {         return ItemAmount;     }      void SetItemAmount(int const &amp; ItemAmountNew)     {         if (ItemAmountNew &gt; 0)         {             ItemAmount = ItemAmountNew;         }         else         {             Clear();         }     }      FORCEINLINE TArray&lt;FItemFactor&gt; * GetItemFactors()     {         return &amp;ItemFactors;     }      void SetItemFactors(TArray&lt;FItemFactor&gt; const &amp; ItemFactorsNew)     {         if (ItemFactorsNew.Num() &gt; 0)         {             ItemFactors = ItemFactorsNew;         }     } };<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0414\u0430, \u043d\u0430\u0448\u0430 \u044f\u0447\u0435\u0439\u043a\u0430 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435\u0433\u043e 3 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435: \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u041d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e. \u0412\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0431\u044b\u0442\u044c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b, \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u0443\u0440, \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 <em>Actors<\/em> \u0438 \u0442.\u043f. \u0442\u0443\u0442 \u043d\u0435\u0442. \u0412\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u0438\u0437 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 <em>DataAsset<\/em>, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435.<\/p>\n<p>  <\/p>\n<p>\u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432\u044b \u0443\u0436\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0435\u0449\u0435 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <em>StructItemFactors.h<\/em>, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u0443\u044e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435. \u042d\u0442\u043e \u043d\u0435 \u0447\u0442\u043e \u0438\u043d\u043e\u0435 \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043b\u044e\u0431\u044b\u0445 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u0432 \u0432\u0438\u0434\u0435 <em>float<\/em>), \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u0438\u0437\u043d\u043e\u0441, \u0443\u0440\u043e\u043d \u0438 \u0442.\u043f. \u0422\u043e \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0441\u0443\u0449\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430, \u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435. \u042d\u0442\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">StructItemFactors.h<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">\/\/\/ Copyright 2018 Dreampax Games, Inc. All Rights Reserved.  \/* Struct for Factors. This file is used as #include *\/  #pragma once  \/* Includes from Engine *\/ #include \"GameplayTagContainer.h\"  \/* Includes from Dreampax *\/ \/\/ no includes  #include \"StructItemFactors.generated.h\"  USTRUCT(BlueprintType) struct FItemFactor {     GENERATED_USTRUCT_BODY()      \/* Name of Item Attribute Factor *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     FGameplayTag ItemFactorTag;      \/* Factor for the Item Attribute *\/     UPROPERTY(EditDefaultsOnly, Category = \"ItemsDatabase\")     float ItemFactor;      \/* for this type to be comparable *\/     friend bool operator==(const FItemFactor &amp; Lhs, const FItemFactor &amp; Rhs)     {         return Lhs.ItemFactorTag == Rhs.ItemFactorTag &amp;&amp; Lhs.ItemFactor == Rhs.ItemFactor;     }      FItemFactor()     {         Clear();     }      void Clear()     {         ItemFactorTag.EmptyTag;         ItemFactor = 0;     }      FORCEINLINE FGameplayTag GetItemFactorTag()     {         return ItemFactorTag;     }      void SetItemFactorTag(FGameplayTag const &amp;ItemFactorTagNew)     {         if (ItemFactorTagNew.IsValid())         {             ItemFactorTag = ItemFactorTagNew;         }         else         {             Clear();         }     }      FORCEINLINE float GetItemFactor()     {         return ItemFactor;     }      void SetItemFactor(float const &amp; ItemFactorNew)     {         if (ItemFactorNew &gt; 0.0f)         {             ItemFactor = ItemFactorNew;         }         else         {             Clear();         }     } };<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0432\u044b\u0448\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0437\u0432\u0430\u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u043c \u0436\u0438\u0437\u043d\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">friend bool operator==(const FItemFactor &amp; Lhs, const FItemFactor &amp; Rhs)     {         return Lhs.ItemFactorTag == Rhs.ItemFactorTag &amp;&amp; Lhs.ItemFactor == Rhs.ItemFactor;     }<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043d\u0435 \u0447\u0442\u043e \u0438\u043d\u043e\u0435 \u043a\u0430\u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f <em>==<\/em>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e. \u041e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DreampaxContainerComponent.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 \"Components\/ActorComponent.h\" #include \"GameplayTagContainer.h\"  \/* Includes from Dreampax *\/ #include \"Data\/StructItemFactors.h\" #include \"Data\/StructContainerStack.h\"  #include \"DreampaxContainerComponent.generated.h\"  \/\/UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) \/\/ currently not required UCLASS() class DREAMPAX_API UDreampaxContainerComponent : public UActorComponent {     GENERATED_BODY()  private:      UPROPERTY(Transient, Replicated, EditAnywhere, Category = \"Container\")     TArray&lt;FContainerStack&gt; ContentOfContainer;  public:      \/* Sets default values for this component's properties *\/     UDreampaxContainerComponent(const FObjectInitializer &amp; ObjectInitializer);      \/*     \u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0443\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0442.\u043f..     *\/ };<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0432\u044b\u0448\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )<\/code><\/pre>\n<p>  <\/p>\n<p>\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 <em>Blueprint<\/em>. \u042f \u0436\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432 <em>\u0421++<\/em>. \u0414\u043b\u044f <em>Character<\/em> \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">Inventory = CreateDefaultSubobject&lt;UDreampaxContainerComponent&gt;(TEXT(\"Inventory\"));<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0443, \u0430 \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0443\u043d\u0434\u0443\u043a\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"cpp\">ADreampaxActorContainer::ADreampaxActorContainer(const FObjectInitializer&amp; ObjectInitializer)     : Super(ObjectInitializer) {     Container = CreateDefaultSubobject&lt;UDreampaxContainerComponent&gt;(TEXT(\"Container\")); } <\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.<\/p>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0431 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u0445 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 (\u043f\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 <em>\u043d\u0430 \u043f\u0430\u043b\u044c\u0446\u0430\u0445<\/em>), \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0448 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u0435\u0440\u043d\u044b\u043c.<\/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\/420115\/\"> https:\/\/habr.com\/post\/420115\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/420115\/\" 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<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ww\/3x\/ib\/ww3xibttrcqtiuzon7ygobnwftu.png\" title=\"Dreampax\" align=\"left\">\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044f \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u043a \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u043c\u0443 Actor. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432 \u0438 \u043b\u043e\u0433\u0438\u043a\u0443 \u0438\u0445 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438\/\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438, \u0442\u043e \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u0432 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0435\u0433\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0438\u043b\u0438 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <em>Blueprint<\/em>, \u0442\u0430\u043a \u0441 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c <em>\u0421++<\/em>. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b <em>\u0421++<\/em>.<\/p>\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-287342","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287342","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=287342"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287342\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}