예제 #1
0
            // UI.
            //this.canvas = canvas;
            //this.status = status;

            public Server()
            {
                clients              = new List <Client>();
                entities             = new List <Entity>();
                last_processed_input = new List <long>();
                network              = new LagNetwork();
                setUpdateRate(10);
            }
예제 #2
0
            public Client()
            {
                entities  = new Dictionary <int, Entity>();
                key_left  = false;
                key_right = false;
                network   = new LagNetwork();
                server    = null;
                lag       = 100;
                entity_id = -1;
                client_side_prediction = false;
                server_reconciliation  = false;
                input_sequence_number  = 0;
                pending_inputs         = new List <Input>();
                entity_interpolation   = true;

                setUpdateRate(50);
            }