mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 16:12:23 -07:00
31 lines
675 B
C++
31 lines
675 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
|
|
|
|
// Get the cog subsystem
|
|
if (UCogSubsystem* CogSubSystem = GetSubsystem<UCogSubsystem>())
|
|
{
|
|
// Add all the built-in windows. You copy paste this function code to organize the menu differently.
|
|
Cog::AddAllWindows(*CogSubSystem);
|
|
|
|
// Add a custom window
|
|
CogSubSystem->AddWindow<FCogSampleWindow_Team>("Gameplay.Team");
|
|
|
|
// Activate Cog
|
|
CogSubSystem->Activate();
|
|
}
|
|
#endif
|
|
} |