opensuspect-legacy icon indicating copy to clipboard operation
opensuspect-legacy copied to clipboard

Consolidate networking stuff into network.gd

Open TheSecondReal0 opened this issue 5 years ago • 3 comments

Right now connection handling is split between main.gd and network.gd, when ideally it should all be in network.gd. This includes names, version checking, etc..

TheSecondReal0 avatar Oct 18 '20 01:10 TheSecondReal0

Should players' names (and colors) be in network.gd or in player.gd? Each player has a name and color, and they need to be used for rendering.

vainiovano avatar Oct 18 '20 03:10 vainiovano

I think names should be stored in network.gd just so that they're accessible from anywhere, same with colors. Probably in dictionaries where names and colors are stored according to player IDs.

TheSecondReal0 avatar Oct 18 '20 04:10 TheSecondReal0

As per @TheSecondReal0, this issue should not be closed yet.

monban avatar Oct 19 '20 18:10 monban