public MapGeometry(PRoConClient prcClient) { MapZones = new MapZoneDictionary(); if ((Client = prcClient) != null) { Client.Game.ServerInfo += new FrostbiteClient.ServerInfoHandler(m_prcClient_ServerInfo); Client.Game.LoadingLevel += new FrostbiteClient.LoadingLevelHandler(m_prcClient_LoadingLevel); Client.Game.LevelLoaded += new FrostbiteClient.LevelLoadedHandler(m_prcClient_LevelLoaded); Client.PlayerKilled += new PRoConClient.PlayerKilledHandler(m_prcClient_PlayerKilled); } }
public MapGeometry(PRoConClient prcClient) { // this.MapImagePacks = new MapImagePackDictionary(); // this.MapPath = Path.Combine(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Media"), "Maps"); //this.LoadMapImagePacks(); this.MapZones = new MapZoneDictionary(); //if (this.MapImagePacks.Count > 0) { // this.LoadedMapImagePack = this.MapImagePacks[0]; //} if ((this.m_prcClient = prcClient) != null) { this.m_prcClient.Game.ServerInfo += new FrostbiteClient.ServerInfoHandler(m_prcClient_ServerInfo); this.m_prcClient.Game.LoadingLevel += new FrostbiteClient.LoadingLevelHandler(m_prcClient_LoadingLevel); this.m_prcClient.Game.LevelLoaded += new FrostbiteClient.LevelLoadedHandler(m_prcClient_LevelLoaded); this.m_prcClient.PlayerKilled += new PRoConClient.PlayerKilledHandler(m_prcClient_PlayerKilled); // this.m_prcClient.LoadingLevel += new FrostbiteConnection.LoadingLevelHandler(m_prcClient_LoadingLevel); } }