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

            // 注册事件
            installEvents();
        }
예제 #3
0
파일: KBEngine.cs 프로젝트: jsboys/kbengine
        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();
        }
예제 #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 ();
            // 注册事件
        }
예제 #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;
        }