장비를 어떻게 만들어야 잘만든걸까 하고 UML 그리다가 이거 소스코드로 바꿔주나 싶어서 해봣는데
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | #include "CoreMinimal.h" #include "Components/ActorComponent.h" #include "UObject/Object.h" #include "Equipment.generated.h" // Forward declarations class UPlayerStat; class UPlayerAbility; // Delegate declaration for equipment abilities DECLARE_DYNAMIC_MULTICAST_DELEGATE(FEquipmentAbilityDelegate); // Equipment Ability struct USTRUCT() struct FEquipmentAbility { GENERATED_BODY() // Delegate instances for equip and unequip events FEquipmentAbilityDelegate OnEquip; FEquipmentAbilityDelegate OnUnequip; }; // Equipment class UCLASS() class UEquipment : public UObject { GENERATED_BODY() public: // List of abilities TArray<Ability*> Abilities; // Functions to be called when equipment is equipped/unequipped void OnEquip(); void OnUnequip(); }; // Player Ability component UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent)) class UPlayerAbility : public UActorComponent { GENERATED_BODY() // Your code here }; // Player Stat component UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent)) class UPlayerStat : public UActorComponent { GENERATED_BODY() // Your code here }; // Equipment component UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent)) class UEquipmentComponent : public UActorComponent { GENERATED_BODY() public: // Map of equipment TMap<Equipment*> Equipments; }; | cs |
왜 잘해줌?
이제 그림으로 코딩하는 시대온다.....
이거 어케함? 그림으로
정액제 결제
나도 결제해서 사용중인데 어떻게 그림 그려주면됨?
채팅 왼쪽에 클립모양
오 이거구나 고맙다 ㄳㄳ
최첨단 거시기 시대가 온다 ㄷㄷㄷ
이건 지리네
와 - dc App