Beispiel #1
0
 void InitNetwork(CSEngineArgs args)
 {
     //NetManager = new NetManager(args.netEventListener)
     //{
     //	AutoRecycle = true
     //};
     LiteNet = new LiteNet(args.netEventListener);
 }
Beispiel #2
0
 public CSEngineApp(CSEngineArgs args)
 {
     //if (App != null)
     //         {
     //	throw new Exception("Only one instance of KBEngineApp!");
     //}
     //App = this;
     Initialize(args);
 }
Beispiel #3
0
        //public static CSEngineApp GetSingleton()
        //{
        //	if (CSEngineApp.App == null)
        //	{
        //		throw new Exception("Please create KBEngineApp!");
        //	}
        //	return CSEngineApp.App;
        //}

        public virtual bool Initialize(CSEngineArgs args)
        {
            InitNetwork(args);
            InstallEvents();
            return(true);
        }