Exemplo n.º 1
0
        public MatchStateMachine()
        {
            MatchInputProvider = new MatchInputProvider();
            MatchEventProvider = new MatchSpawnService();
            CurrentMatchState  = new ReactiveProperty <IMatchState>();

            ChangeMatchState(new IdleMatchState());
        }
Exemplo n.º 2
0
 public MatchSimulation(byte localPlayerUnitId, Int64 matchStartTimestamp, MatchInputProvider matchInputProvider,
                        MatchSpawnService matchEventProvider, IUdpClient udpClient, NetworkTimeService networkTimeService)
 {
     this.localPlayerUnitId   = localPlayerUnitId;
     this.matchStartTimestamp = matchStartTimestamp;
     inputProvider            = matchInputProvider;
     eventProvider            = matchEventProvider;
     this.udpClient           = udpClient;
     this.networkTimeService  = networkTimeService;
     SimulationFrameSubject   = new Subject <byte>();
 }