Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "GameFramework/Actor.h"
- #include "PickupPowerup.generated.h"
- UCLASS()
- class YTCPPTUTORIAL_API APickupPowerup : public AActor
- {
- GENERATED_BODY()
- public:
- // Sets default values for this actor's properties
- APickupPowerup(const FObjectInitializer& ObjectInitializer);
- // Called when the game starts or when spawned
- virtual void BeginPlay() override;
- // Called every frame
- virtual void Tick( float DeltaSeconds ) override;
- //Bool to determine can this object be 'picked up'
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Pickup)
- bool bIsActive;
- //Root collision primitive to interact with
- UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = Pickup)
- USphereComponent* BaseCollisionComponent;
- //Static mesh to represent pickup in world
- UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = Pickup)
- UStaticMeshComponent* PickupMesh;
- //Function called when Pickup is collected
- UFUNCTION(BlueprintNativeEvent)
- void OnPickedUp();
- };
- 1>x:\ue4\projects\ytcpptutorial\source\ytcpptutorial\PickupPowerup.h(11): error C2059: syntax error : 'constant'
- 1>x:\ue4\projects\ytcpptutorial\source\ytcpptutorial\PickupPowerup.h(11): error C2143: syntax error : missing ';' before ''template<''
- 1>x:\ue4\projects\ytcpptutorial\source\ytcpptutorial\PickupPowerup.h(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- 1>x:\ue4\projects\ytcpptutorial\source\ytcpptutorial\PickupPowerup.h(11): error C4183: 'EMIT_CUSTOM_WARNING_AT_LINE': missing return type; assumed to be a member function returning 'int'
- 1>X:\UE4\Projects\YTCppTutorial\Source\YTCppTutorial\PickupPowerup.h(11): error C2059: syntax error : 'constant'
- 1>X:\UE4\Projects\YTCppTutorial\Source\YTCppTutorial\PickupPowerup.h(11): error C2143: syntax error : missing ';' before ''template<''
- 1>X:\UE4\Projects\YTCppTutorial\Source\YTCppTutorial\PickupPowerup.h(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- 1>X:\UE4\Projects\YTCppTutorial\Source\YTCppTutorial\PickupPowerup.h(11): error C4183: 'EMIT_CUSTOM_WARNING_AT_LINE': missing return type; assumed to be a member function returning 'int'
Advertisement
Add Comment
Please, Sign In to add comment