GameMode, GameState, PlayerState, PlayerController, Pawn
| Game Mode | Game State | Player State | Player Controller |
|---|---|---|---|
| Server Only | Server & All Clients | Server & All Clients | Server & Owning Client |
|
Default Classes Pawn Player Controller HUD Rules Player Eliminated Respawning Players Match State Warmup Time Match Time |
State of the Game Top Scoring Players Teams in the Lead Team Scores Array of Player States |
State of the Player SCore Defeats Carried Ammo Team Slower Net Update(Player State에서는 Net Update 속도가 느리다) |
Access to the HUD Display Messages Update HUD Health Update HUD Score Update HUD Defeats Update HUD Ammo |
| Pawn | HUD/Widget |
|---|---|
| Server & All Clients | Owning Client Only |
Game Mode는 Server만 가지고 있다. Client가 Game Mode에 접근하면 nullptr을 반환한다.
반면, Game State는 Server와 Client 모두 가지고 있다. Server의 정보가 Replicated되어 Game State에 내려오고 이를 통해 Client에 정보가 전달된다.
GameMode, GameState, GameInstance 비교
| GameMode | 게임 규칙 정의Server 측에서만 존재하며, Client 측에서는 복제(Replicated)되지 않는다. |
| GameState |
GameMode가 정의한 규칙에 따라 게임의 현재 상태를 추적.GameState는 모든 Client에 복제(Replicated)된다. |
| GameInstance | 게임 실행 |
Top comments (0)