public CTrafficMessage() { administration = Program._Administration; trafficMessages = new Dictionary<IPEndPoint, TrafficClient>(); int amountOfEnumValues = Enum.GetValues(typeof(ObjectType)).Length; receipentList = new Dictionary<string, IPEndPoint>[amountOfEnumValues]; for (int i = 0; i < amountOfEnumValues; ++i) { receipentList[i] = new Dictionary<string, IPEndPoint>(); } trainConnection = new TrainConnection(this); Program._CTrafficMessage = this; Console.WriteLine("CTrafficMessage Server initialized!"); }
public CTrafficMessage() { administration = Program._Administration; trafficMessages = new Dictionary <IPEndPoint, TrafficClient>(); int amountOfEnumValues = Enum.GetValues(typeof(ObjectType)).Length; receipentList = new Dictionary <string, IPEndPoint> [amountOfEnumValues]; for (int i = 0; i < amountOfEnumValues; ++i) { receipentList[i] = new Dictionary <string, IPEndPoint>(); } trainConnection = new TrainConnection(this); Program._CTrafficMessage = this; Console.WriteLine("CTrafficMessage Server initialized!"); }