public void OnServerPerformanceDataMessageReceived(ServerPerformanceDataMessage message) { this.SessionCount = message.SessionCount; if (this.ClusterPerformances == null ? message.ClusterCount != 0 : this.ClusterPerformances.Length != message.ClusterCount) { this.ClusterPerformances = new ClusterPerformance[message.ClusterCount]; for (int i = 0; i < this.ClusterPerformances.Length; i++) { this.ClusterPerformances[i] = new ClusterPerformance(); } } }
public static void OnServerPerformanceDataMessageReceived(ServerPerformanceDataMessage message) { ServerManager.m_entry[message.SenderType][message.SenderId].OnServerPerformanceDataMessageReceived(message); }