public Engine(IUpdateReceiver reciever, IUpdateBroadcaster broadcaster, IReceiverQueue <IGameUpdate> queue, IServerGameState serverGameState, IServerStateManager serverStateManager, ICommandDecoder decoder, ICommandEncoder encoder) { _reciever = reciever; _broadcaster = broadcaster; _queue = queue; _serverGameState = serverGameState; _serverStateManager = serverStateManager; _decoder = decoder; _encoder = encoder; }
public ClientEngine(IUpdateGatherer updateGatherer, IUpdateSender updateSender, ICommandEncoder commandEncoder, ICommandDecoder commandDecoder, IReceiverQueue <string> queue) { _updateGatherer = updateGatherer; _updateSender = updateSender; _commandEncoder = commandEncoder; _commandDecoder = commandDecoder; _queue = queue; _gathererThread = CreateUpdateGathererThread(); _processorThread = CreateProcessorThread(); }
public UpdateGatherer(IReceiverQueue <string> queue) { _queue = queue; _serverEndpoint = new IPEndPoint(IPAddress.Any, 0); // TODO change port / ip to a global config }
public QueueTests() { _queue = new ReceiverQueue <IGameUpdate>(); }
public UpdateReceiver(IReceiverQueue <IGameUpdate> queue) { _queue = queue; }