mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
Update README.md
This commit is contained in:
@@ -375,7 +375,19 @@ void ACogSampleGameState::BeginPlay()
|
||||
|
||||
- Tick the CogWindowManager:
|
||||
```cpp
|
||||
|
||||
// ACogSampleGameState.cpp
|
||||
ACogSampleGameState::ACogSampleGameState(const FObjectInitializer & ObjectInitializer)
|
||||
: Super(ObjectInitializer)
|
||||
{
|
||||
// Enable ticking
|
||||
PrimaryActorTick.bCanEverTick = true;
|
||||
PrimaryActorTick.SetTickFunctionEnable(true);
|
||||
PrimaryActorTick.bStartWithTickEnabled = true;
|
||||
|
||||
[...]
|
||||
}
|
||||
|
||||
void ACogSampleGameState::Tick(float DeltaSeconds)
|
||||
{
|
||||
Super::Tick(DeltaSeconds);
|
||||
@@ -386,6 +398,8 @@ 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()
|
||||
|
||||
Reference in New Issue
Block a user