Пример #1
0
        public override void Start()
        {
            base.Start();

            if (server != null)
            {
                server.Start();
            }

            camera          = new Camera();
            camera.Position = new Vector3(40, 40, 40);
            camera.LookAt(0, 5, 0);
            Root.Instance.LocalObjects.Add(camera);

            Root.Instance.Scene.camera = camera;

            x = Root.Instance.UserInterface.Mouse.GetPosition(0);
            y = Root.Instance.UserInterface.Mouse.GetPosition(1);

            actor = new Actor();
            Root.Instance.Scene.Spawn(actor);
        }
Пример #2
0
        static void ServerMain(string[] args)
        {
            Root r = new Root(args, true);

            r.ServerServer(args);

            Mod.Instance.Init();

            r.NextIndex += 10;

            while (!Root.Instance.Quit)
            {
                Flow f = new PhysicsServer();
                r.CurrentFlow = f;
                f.Start();
                r.ServerRun(true);
                f.Stop();
            }

            r.ServerStop();
            r.Dispose();
        }
Пример #3
0
        static void ServerMain(string[] args)
        {
            Root r = new Root(args, true);
            r.ServerServer(args);

            Mod.Instance.Init();

            r.NextIndex += 10;

            while (!Root.Instance.Quit)
            {
                Flow f = new PhysicsServer();
                r.CurrentFlow = f;
                f.Start();
                r.ServerRun(true);
                f.Stop();
            }

            r.ServerStop();
            r.Dispose();
        }