Ejemplo n.º 1
0
 public KBEngineApp(ClientApp c)
 {
     client = c;
     app    = this;
     //networkInterface_ = new NetworkInterface(this);
     kbethread = new KBEThread(this);
 }
Ejemplo n.º 2
0
        public KBEngineApp()
        {
            app = this;
            networkInterface_ = new NetworkInterface(this);
            kbethread = new KBEThread(this);
            t_ = new Thread(new ThreadStart(kbethread.run));
            t_.Start();

            // 注册事件
            installEvents();
        }
Ejemplo n.º 3
0
        public KBEngineApp()
        {
            app = this;

            loginappIP = ip;
            loginappPort = port;

            networkInterface_ = new NetworkInterface(this);
            kbethread_ = new KBEThread(this);
            t_ = new Thread(new ThreadStart(kbethread_.run));
            t_.Start();
        }
Ejemplo n.º 4
0
        public KBEngineApp(ClientApp c)
        {
            client = c;
            app    = this;


            networkInterface_ = new NetworkInterface(this);
            kbethread         = new KBEThread(this);
            t_ = new Thread(new ThreadStart(kbethread.run));
            t_.Start();

            //networkPeer = new NetworkPeer ();
            // 注册事件
        }
Ejemplo n.º 5
0
        public override bool initialize(KBEngineArgs args)
        {
            base.initialize(args);

            KBEngineAppThread.threadUpdateHZ = args.threadUpdateHZ;
            threadUpdatePeriod = 1000f / threadUpdateHZ;

            kbethread = new KBEThread(this);
            _t = new Thread(new ThreadStart(kbethread.run));
            _t.Start();

            return true;
        }