Update README.md

This commit is contained in:
Arnaud Jamin
2024-01-09 10:16:12 -05:00
committed by GitHub
parent cce91e1485
commit 90c3a54b0f
+6 -6
View File
@@ -272,6 +272,7 @@ The Cog repository has the following structure:
- `CogDebug` - Debug functionalities (Log, Debug Draw, Plot, Metric, ...) - `CogDebug` - Debug functionalities (Log, Debug Draw, Plot, Metric, ...)
- `CogImGui` - Integration of Imgui for Unreal, inspired by [UnrealImGui](https://github.com/segross/UnrealImGui) - `CogImGui` - Integration of Imgui for Unreal, inspired by [UnrealImGui](https://github.com/segross/UnrealImGui)
- `CogCommon` - Interfaces implemented by your project actor classes which cannot be excluded from a shipping build - `CogCommon` - Interfaces implemented by your project actor classes which cannot be excluded from a shipping build
- `Plugins/CogAll` - Only contains a utility function to easily add all the built-in windows from all the Cog plugins. Useful for projects that do not need to exclude some plugins.
Cog has multiple plugins to ease the integration for projects that do not use the `Ability System Component` or `Enhanced Input`. For the next steps, it is assumed all the plugins are used. Cog has multiple plugins to ease the integration for projects that do not use the `Ability System Component` or `Enhanced Input`. For the next steps, it is assumed all the plugins are used.
@@ -359,18 +360,17 @@ void ACogSampleGameState::BeginPlay()
CogWindowManager = NewObject<UCogWindowManager>(this); CogWindowManager = NewObject<UCogWindowManager>(this);
CogWindowManagerRef = CogWindowManager; CogWindowManagerRef = CogWindowManager;
// Add windows // Add all the built-in windows
CogWindowManager->AddWindow<FCogEngineWindow_DebugSettings>("Engine.Debug Settings"); Cog::AddAllWindows(*CogWindowManager);
CogWindowManager->AddWindow<FCogEngineWindow_ImGui>("Engine.ImGui");
CogWindowManager->AddWindow<FCogAbilityWindow_Abilities>("Gameplay.Abilities"); // Add a custom window
CogWindowManager->AddWindow<FCogAbilityWindow_Attributes>("Gameplay.Attributes"); CogWindowManager->AddWindow<FCogSampleWindow_Team>("Gameplay.Team");
[...] [...]
#endif //ENABLE_COG #endif //ENABLE_COG
} }
``` ```
- Tick the CogWindowManager: - Tick the CogWindowManager:
```cpp ```cpp
// ACogSampleGameState.cpp // ACogSampleGameState.cpp