Esempio n. 1
0
 public KSPWebSocketService(IKSPAPI kspAPI, IterationToEvent <UpdateTimerEventArgs> gameLoopEvent)
 {
     this.kspAPI             = kspAPI;
     this.gameLoopEvent      = gameLoopEvent;
     gameLoopEvent.Iterated += streamTimer.update;
 }
Esempio n. 2
0
 public KSPWebSocketService(IKSPAPI kspAPI, Servers.AsynchronousServer.ClientConnection clientConnection, IterationToEvent <UpdateTimerEventArgs> gameLoopEvent)
     : this(kspAPI, gameLoopEvent)
 {
     this.clientConnection = clientConnection;
     streamTimer.Interval  = streamRate;
     streamTimer.Elapsed  += streamData;
     streamTimer.Enabled   = true;
 }