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)