Exemple #1
0
        public override void OnStart(StartState state)
        {
            base.OnStart(state);

            var client = new Client("127.0.0.1", 4400, onConnectionSetup);
            _protocol = new ClientProtocol(client);
            _universe = new game.Universe();
        }
Exemple #2
0
        public override void OnStart(StartState state)
        {
            base.OnStart(state);

            var client = new Client("127.0.0.1", 4400, onConnectionSetup);

            _protocol = new ClientProtocol(client);
            _universe = new game.Universe();
        }
Exemple #3
0
        public CelestialBody(Universe universe)
        {
            position = new Vector3();
            rotation = new Quaternion();

            radius = 0;

            mass = 0;
            gravParameter = 0;

            this.universe = universe;
        }
Exemple #4
0
        public Computer()
        {
            modules = new List<Module>();

            attitude = new AttitudeController(this);

            modules.Add(new ASASModule(this));
            modules.Add(new InfoModule(this));
            modules.Add(attitude);

            _switches = new Dictionary<Module, ModuleSwitch>();

            settings = new DebugSettings() { guiUpdateRate = 30f, stateUpdateRate = 30f };

            universe = new Universe();
            vessel = new Vessel(universe);
        }
Exemple #5
0
 public TestPlugin(Client client)
 {
     _protocol = new ClientProtocol(client);
     universe = new Universe();
 }
Exemple #6
0
        public Vessel(Universe universe)
        {
            _rootRotation = new Quaternion();
            _rotatingFrameVelocity = new Vector3();
            gravity = new Vector3();

            orbit = new math.Orbit(universe);
            body = new RigidBody();
        }
Exemple #7
0
 public Orbit(Universe universe)
     : this(0, 0, 0, 0, 0, 0, 0, new game.CelestialBody(universe))
 {
 }
Exemple #8
0
 public CelestialBody(Universe universe, global::CelestialBody body)
     : this(universe)
 {
     update(body);
 }