Beispiel #1
0
        public void Initialize()
        {
            NetTime.AutomaticTimeKeeping = false;
            NetClient = new FakeNetClient();
            Controller = new FakeController();
            Client = new Client(null, Controller, NetClient);
            Client.Init(null, Controller.CanvasSize);

            var connections = new List<INetConnection>();
            var c = new FakeNetConnection();
            c.AverageRoundtripTime = 0.2f;
            connections.Add(c);
            NetClient.Connections = connections;
        }
Beispiel #2
0
 public void Cleanup()
 {
     Client = null;
     Controller = null;
     NetClient = null;
 }