/// <summary> /// Initializes this instance. /// </summary> public static void Initialize() { NetManager._scrambler = new int[28]; NetManager._endPoints = new LogicArrayList <NetSocket> [28]; for (int i = 0; i < 28; i++) { NetManager._endPoints[i] = new LogicArrayList <NetSocket>(10); } string[][] ips = ServiceSettings.GetServerIPs(); for (int i = 0; i < ips.Length; i++) { int size = ips[i].Length; for (int j = 0; j < size; j++) { NetManager.CreateSocket(ips[i][j], i); } } }