Hello,
When I try to include iostream in my Hero.h header, I get a series of errors, including not finding the directive and some UCLASS() errors.
Hero.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include <iosteam>
#include "GameFramework/Pawn.h"
#include "Hero.generated.h"
UCLASS()
class MOBA_API AHero : public APawn
{
GENERATED_BODY()
public:
// Sets default values for this pawn's properties
AHero();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;
private:
float _health;
float _mana;
bool _alive;
std::vector<FVector> _waypoints;
};
also, everything runs extremely slowly, and I have to wait 15 seconds before i see any errors…