예제 #1
0
 public async Task Start(UdpHost host, IPEndPoint server)
 {
     var entitiesServiceLocation = new ServiceLocation(server, "entities");
     AvatarService = new AvatarService(entitiesServiceLocation);
     ViewerService = new ViewerService(entitiesServiceLocation, AvatarService.Id);
     
     await AvatarService.Start(host.CreateCommunicator());
     await ViewerService.Start(host.CreateCommunicator());
 }
예제 #2
0
 public async Task Start(UdpHost host)
 {
     var entitiesService = new EntitiesService();
     await entitiesService.Start(host.CreateCommunicator("entities"));
 }