예제 #1
0
파일: Core.cs 프로젝트: sopindm/bjeb
        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();
        }
예제 #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();
        }
예제 #3
0
        public CelestialBody(Universe universe)
        {
            position = new Vector3();
            rotation = new Quaternion();

            radius = 0;

            mass = 0;
            gravParameter = 0;

            this.universe = universe;
        }
예제 #4
0
파일: Computer.cs 프로젝트: sopindm/bjeb
        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);
        }
예제 #5
0
파일: Main.cs 프로젝트: sopindm/bjeb
 public TestPlugin(Client client)
 {
     _protocol = new ClientProtocol(client);
     universe = new Universe();
 }
예제 #6
0
파일: Vessel.cs 프로젝트: sopindm/bjeb
        public Vessel(Universe universe)
        {
            _rootRotation = new Quaternion();
            _rotatingFrameVelocity = new Vector3();
            gravity = new Vector3();

            orbit = new math.Orbit(universe);
            body = new RigidBody();
        }
예제 #7
0
파일: Orbit.cs 프로젝트: sopindm/bjeb
 public Orbit(Universe universe)
     : this(0, 0, 0, 0, 0, 0, 0, new game.CelestialBody(universe))
 {
 }
예제 #8
0
 public CelestialBody(Universe universe, global::CelestialBody body)
     : this(universe)
 {
     update(body);
 }