mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-07 16:18:50 +00:00
Merge branch 'main' of https://github.com/arnaud-jamin/Cog
This commit is contained in:
@@ -379,6 +379,20 @@ void ACogSampleGameState::Tick(float DeltaSeconds)
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- In your PlayerController class, spawn the Cog Replicators. The Replicator are used to communicate between the client and the server, for example to apply cheats, spawn actors, etc.
|
||||||
|
```cpp
|
||||||
|
void ACogSamplePlayerController::BeginPlay()
|
||||||
|
{
|
||||||
|
Super::BeginPlay();
|
||||||
|
|
||||||
|
#if ENABLE_COG
|
||||||
|
// Spawn the Replicator of each plugin
|
||||||
|
ACogDebugReplicator::Spawn(this);
|
||||||
|
ACogAbilityReplicator::Spawn(this);
|
||||||
|
ACogEngineReplicator::Spawn(this);
|
||||||
|
#endif //ENABLE_COG
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
- Implement Cog Interfaces on your desired actor classes:
|
- Implement Cog Interfaces on your desired actor classes:
|
||||||
```cpp
|
```cpp
|
||||||
@@ -401,9 +415,14 @@ class ACogSamplePlayerController
|
|||||||
|
|
||||||
- In Unreal Editor create and configure the following Data Assets:
|
- In Unreal Editor create and configure the following Data Assets:
|
||||||
- CogAbilityDataAsset
|
- CogAbilityDataAsset
|
||||||
|
- CogAIDataAsset
|
||||||
- CogEngineDataAsset
|
- CogEngineDataAsset
|
||||||
- CogInputDataAsset
|
- CogInputDataAsset
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user