Live Tree Gen
Added client-server communication to sync client techs with DB techs and visualize the tree of actual techs
This commit is contained in:
parent
dabfc62481
commit
6ca699be26
7 changed files with 159 additions and 111 deletions
|
|
@ -140,6 +140,12 @@ namespace ChatApp.Server
|
|||
StarDensity = mapLayers["StarDensity"]
|
||||
}));
|
||||
|
||||
server.AddMessageListener<BlueprintsRequestMessage>(blueprintRequest => blueprintRequest.Peer.Send(
|
||||
new BlueprintsResponseMessage
|
||||
{
|
||||
Blueprints = cache.GetAll<BlueprintData>().ToArray()
|
||||
}));
|
||||
|
||||
server.AddMessageListener<ZoneRequestMessage>(zoneRequest =>
|
||||
{
|
||||
var zone = cache.Get<ZoneData>(zoneRequest.ZoneID);
|
||||
|
|
|
|||
Loading…
Reference in a new issue