コード例 #1
0
ファイル: PlayerServices.cs プロジェクト: Keldyn/Unreachable
 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
ファイル: ServerServices.cs プロジェクト: Keldyn/Unreachable
 public async Task Start(UdpHost host)
 {
     var entitiesService = new EntitiesService();
     await entitiesService.Start(host.CreateCommunicator("entities"));
 }
コード例 #3
0
ファイル: Host.cs プロジェクト: Keldyn/Unreachable
 public HostCommunicator(UdpHost host, string id)
 {
     this.host = host;
     Id = id;
     location = new ServiceLocation
     {
         EndPoint = host.PublicEndpoint,
         Id = id
     };
 }