mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-06 15:48:48 +00:00
Update README.md
This commit is contained in:
@@ -198,7 +198,6 @@ The Cog repository has the following structure:
|
|||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
|
||||||
- Setup up module dependencies:
|
- Setup up module dependencies:
|
||||||
```c#
|
```c#
|
||||||
// CogSample.Build.cs
|
// CogSample.Build.cs
|
||||||
@@ -286,7 +285,7 @@ void ACogSampleGameState::BeginPlay()
|
|||||||
CogWindowManager->CreateWindow<UCogEngineWindow_DebugSettings>("Engine.Debug Settings");
|
CogWindowManager->CreateWindow<UCogEngineWindow_DebugSettings>("Engine.Debug Settings");
|
||||||
CogWindowManager->CreateWindow<UCogEngineWindow_ImGui>("Engine.ImGui");
|
CogWindowManager->CreateWindow<UCogEngineWindow_ImGui>("Engine.ImGui");
|
||||||
|
|
||||||
// Add windows that uses a data asset. The data asset must be created inside Unreal Editor.
|
// Add windows that uses a data asset. The data asset must be created inside Unreal Editor.
|
||||||
const UCogAbilityDataAsset* AbilitiesAsset = GetFirstAssetByClass<UCogAbilityDataAsset>();
|
const UCogAbilityDataAsset* AbilitiesAsset = GetFirstAssetByClass<UCogAbilityDataAsset>();
|
||||||
|
|
||||||
UCogAbilityWindow_Abilities* AbilitiesWindow = CogWindowManager->CreateWindow<UCogAbilityWindow_Abilities>("Gameplay.Abilities");
|
UCogAbilityWindow_Abilities* AbilitiesWindow = CogWindowManager->CreateWindow<UCogAbilityWindow_Abilities>("Gameplay.Abilities");
|
||||||
@@ -327,11 +326,10 @@ void ACogSampleGameState::Tick(float DeltaSeconds)
|
|||||||
// CogSampleCharacter.h
|
// CogSampleCharacter.h
|
||||||
UCLASS(config=Game)
|
UCLASS(config=Game)
|
||||||
class ACogSampleCharacter : public ACharacter
|
class ACogSampleCharacter : public ACharacter
|
||||||
, public IAbilitySystemInterface
|
[...]
|
||||||
, public ICogCommonDebugFilteredActorInterface
|
, public ICogCommonDebugFilteredActorInterface
|
||||||
, public ICogCommonAllegianceActorInterface
|
, public ICogCommonAllegianceActorInterface
|
||||||
, public ICogSampleTeamInterface
|
[...]
|
||||||
, public ICogSampleTargetableInterface
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
@@ -342,5 +340,11 @@ class ACogSamplePlayerController
|
|||||||
, public ICogCommonPossessorInterface
|
, public ICogCommonPossessorInterface
|
||||||
```
|
```
|
||||||
|
|
||||||
__
|
- In Unreal Editor create and configure the following Data Assets:
|
||||||
- In Unreal Editor create and configure the Data Assets
|
- CogAbilityDataAsset
|
||||||
|
- CogEngineDataAsset
|
||||||
|
- CogInputDataAsset
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user