#pragma once
#include “TimerManager.h”
#include “GameNetworkManager.generated.h”
/** Describes which standby detection event occured so the game can take appropriate action */
UENUM()
enum EStandbyType
{
STDBY_Rx,
STDBY_Tx,
STDBY_BadPing,
STDBY_MAX,
};
/**
* Handles game-specific networking management (cheat detection, bandwidth management, etc.).
*/
UCLASS(config=Game, notplaceable)
class ENGINE_API AGameNetworkManager : public AInfo
{
GENERATED_UCLASS_BODY()
This code generates error when i try to compile it. I have not changed a thing since I compiled it last evening.
error C2504: 'AInfo' : base class undefined
error C2146: syntax error : missing ';' before identifier 'Super'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C3668: 'AGameNetworkManager::_getUObject' : method with override specifier 'override' did not override any base class methods
error C3668: 'AGameNetworkManager::PostInitializeComponents' : method with override specifier 'override' did not override any base class methods
error C2440: 'return' : cannot convert from 'AGameNetworkManager *' to 'UObject *'
These errors are all inside the GENERATED_UCLASS_BODY() macro. These errors reminded me that I tried to compile from the editor, but then I got errors as well telling me to recompile from source. After I did as I was asked it compiled fine. When I woke up a few hours ago it refused to compile again.
Any ideas?
UPDATE:
The new projects I make triggers breakpoints whenever I select the add code to project option in the editor. Maybe this has something to do with it. I reinstalled several different engines, so maybe my Visual Studio is broken somehow?