ucsd-cse125-sp24 / group5

A character-based ability shooter 2v2 heavily inspired by Four Seasons
https://cse125.ucsd.edu/2024/cse125g5
6 stars 0 forks source link

Refactor client-server network communication #8

Closed Alanine42 closed 1 month ago

Alanine42 commented 2 months ago

Problem:

Every time we add a new game field, we have to update across ClientGame, ClientNetwork, NetworkData, ServerNetwork, ServerGame...

Pain.

Fix:

An easy fix would be to reuse the ServerToClientPacket struct (or give it a better name, plz) that holds all sync-able game data and use it across ClientGame, ServerGame, and network.

Alanine42 commented 1 month ago

welp, no longer needed