public bool Initialize() { NetworkStatusChangeEvent = null; NetPacketPool.CreatePool(); ByteBufferPool.CreatePool(); var len = Enum.GetValues(typeof(ConnectionID)).Length; _connections = new Connection[len]; for (int i = 0; i < _connections.Length; i++) { _connections[i] = new Connection(i, new PacketBuilder(GameApp.Options.EnableEncryption)); _connections[i].Regiester(this); } return(true); }