Example #1
0
        public static void ClientMain(string[] args)
        {
            Root r = new Root(args, false);

            r.ClientClient(args);
            IUserInterface ui = r.UserInterface;

            Mod.Instance.Init();

            int  i;
            Flow f;

            if ((i = Array.FindIndex <string>(Root.Instance.Args, new Predicate <string>(delegate(string s) { return(s == "-connect"); }))) != -1)
            {
                string host = Root.Instance.Args[i + 1];

                f = new PhysicsClient(false);

                r.Scene.Clear();
                r.ClientConnect(host);
            }
            else
            {
                Root.Instance.IsAuthoritive = true;
                f = new PhysicsClient(true);
            }

            r.CurrentFlow = f;

            f.Start();

            r.ClientLoop();

            r.Dispose();
        }
Example #2
0
        public static void ClientMain(string[] args)
        {
            Root r = new Root(args, false);
            r.ClientClient(args);
            IUserInterface ui = r.UserInterface;

            Mod.Instance.Init();

            int i;
            Flow f;
            if ((i = Array.FindIndex<string>(Root.Instance.Args, new Predicate<string>(delegate(string s) { return s == "-connect"; }))) != -1)
            {
                string host = Root.Instance.Args[i + 1];

                f = new PhysicsClient(false);

                r.Scene.Clear();
                r.ClientConnect(host);
            }
            else
            {
                Root.Instance.IsAuthoritive = true;
                f = new PhysicsClient(true);
            }

            r.CurrentFlow = f;

            f.Start();

            r.ClientLoop();

            r.Dispose();
        }