19 lines
368 B
C
19 lines
368 B
C
#ifndef ENGINE_GAME_STATE_H
|
|
# define ENGINE_GAME_STATE_H
|
|
|
|
#pragma once
|
|
|
|
#include "player_controller.h"
|
|
#include "net_sync.h"
|
|
|
|
typedef struct {
|
|
PlayerState localPlayer;
|
|
PlayerNetState remotePlayers[MAX_REMOTE_PLAYERS];
|
|
int remoteCount;
|
|
} GameState;
|
|
|
|
void initialize_game(GameState *state);
|
|
void update_game(GameState *state, InputState *input, float delta);
|
|
|
|
#endif
|