mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 08:02:23 -07:00
32ca4dc2ba
Fix Config saving not working
27 lines
605 B
C++
27 lines
605 B
C++
#include "CogSampleGameInstance.h"
|
|
|
|
#include "CogCommon.h"
|
|
|
|
#if ENABLE_COG
|
|
#include "CogAll.h"
|
|
#include "CogSampleWindow_Team.h"
|
|
#include "CogSubsystem.h"
|
|
#endif
|
|
|
|
//--------------------------------------------------------------------------------------------------------------------------
|
|
void UCogSampleGameInstance::Init()
|
|
{
|
|
Super::Init();
|
|
|
|
#if ENABLE_COG
|
|
if (UCogSubsystem* CogSubSystem = GetSubsystem<UCogSubsystem>())
|
|
{
|
|
Cog::AddAllWindows(*CogSubSystem);
|
|
CogSubSystem->AddWindow<FCogSampleWindow_Team>("Gameplay.Team");
|
|
|
|
CogSubSystem->Activate();
|
|
}
|
|
#endif
|
|
}
|
|
|