Followup to savegame notifications#16
Conversation
|
Wondering how to do Roads. Those pieces don't live on a plot, but between two plots. Could come up with a system of each plot/tile owning one of its edges, so if the Piece is a Road, then we use it's coordinate to get a plot/tile, and then get the edge it "owns". Then math a bit to see which two plots the the edge actually bridges... Or we add a CoordinateType to the ng model, and on Coordinate set a type and two sets of xy values. Plot or Tile, we use the first set only to generate a key. Road, we use both sets to generate a key. |
|
Can't use the Cube object to replace Coordinate. Forgot that this game has plots and edges, and the Cube Hex doesn't really address corners in it's coordinate system. :/ |
|
|
||
| class DartClient { | ||
| Client _client; | ||
| Stream events; |
There was a problem hiding this comment.
Stream get events => eventController.stream;?
There was a problem hiding this comment.
I suppose L44 does the same thing.
There was a problem hiding this comment.
we could do it either way, as long as we always make sure eventController is non-null before the getter is invoked
This starts to hook the net code into the real lifecycle of the application.