S-ed

Untitled

Mar 19th, 2015
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.28 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "GameFramework/Actor.h"
  6. #include "PickupPowerup.generated.h"
  7.  
  8. UCLASS()
  9. class YTCPPTUTORIAL_API APickupPowerup : public AActor
  10. {
  11.     GENERATED_BODY()
  12.    
  13. public:
  14.     // Sets default values for this actor's properties
  15.     APickupPowerup(const FObjectInitializer& ObjectInitializer);
  16.  
  17.     // Called when the game starts or when spawned
  18.     virtual void BeginPlay() override;
  19.    
  20.     // Called every frame
  21.     virtual void Tick( float DeltaSeconds ) override;
  22.    
  23.     //Bool to determine can this object be 'picked up'
  24.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Pickup)
  25.         bool bIsActive;
  26.  
  27.     //Root collision primitive to interact with
  28.     UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = Pickup)
  29.         USphereComponent* BaseCollisionComponent;
  30.  
  31.     //Static mesh to represent pickup in world
  32.     UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = Pickup)
  33.         UStaticMeshComponent* PickupMesh;
  34.  
  35.     //Function called when Pickup is collected
  36.     UFUNCTION(BlueprintNativeEvent)
  37.         void OnPickedUp();
  38.  
  39. };
  40.  
  41.  
  42. 1>x:\ue4\projects\ytcpptutorial\source\ytcpptutorial\PickupPowerup.h(11): error C2059: syntax error : 'constant'
  43. 1>x:\ue4\projects\ytcpptutorial\source\ytcpptutorial\PickupPowerup.h(11): error C2143: syntax error : missing ';' before ''template<''
  44. 1>x:\ue4\projects\ytcpptutorial\source\ytcpptutorial\PickupPowerup.h(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  45. 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'
  46. 1>X:\UE4\Projects\YTCppTutorial\Source\YTCppTutorial\PickupPowerup.h(11): error C2059: syntax error : 'constant'
  47. 1>X:\UE4\Projects\YTCppTutorial\Source\YTCppTutorial\PickupPowerup.h(11): error C2143: syntax error : missing ';' before ''template<''
  48. 1>X:\UE4\Projects\YTCppTutorial\Source\YTCppTutorial\PickupPowerup.h(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  49. 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