public KBEngineApp(ClientApp c) { client = c; app = this; //networkInterface_ = new NetworkInterface(this); kbethread = new KBEThread(this); }
public KBEngineApp() { app = this; networkInterface_ = new NetworkInterface(this); kbethread = new KBEThread(this); t_ = new Thread(new ThreadStart(kbethread.run)); t_.Start(); // 注册事件 installEvents(); }
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(); }
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 (); // 注册事件 }
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; }