SteamedPears / 3004-SevenWonders

Seven Wonders project for 3004
1 stars 1 forks source link

Routing fleshout #32

Closed Gankra closed 11 years ago

Gankra commented 11 years ago

@spratt I could really use your help on working out the future details on this will work.

Current plan:

{
 cards: <as seen in cards.json>
 wonders: <as seen in wonderlist.json>
 players: {
  <player id>: <wondername_wonderside>
  <player id>: <wondername_wonderside>
 ...
 }
 deck: [
  [<cardname_age_minplayers>,<cardname_age_minplayers>,...]
  [<cardname_age_minplayers>,...]
  [<cardname_age_minplayers>,...] 
 ]
 localPlayer: <player id of player this client has> <-- note this is the only unique data in this whole blob, might be worth sending as a separate message for this reason
 }
 {<player_id>: <playercommand>}
 {
<player_id>: <playercommand>
<player_id>: <playercommand>
<player_id>: <playercommand>
...
} 
Gankra commented 11 years ago

Clarification: moreso requesting help in the actual implementation of this, as I'm having trouble thinking in terms of multi-threaded networking at the moment.

spratt commented 11 years ago

I like the separation of ClientRouter and HostRouter.