/// <summary> /// /// </summary> /// <param name="iRace"></param> /// <param name="iClass"></param> /// <returns></returns> public GraveyardInfo GetGraveyardInfo(uint iMapId, uint iZoneId, uint iFaction) { SafeDictionary <uint, SafeDictionary <uint, GraveyardInfo> > mapGraveyardInfo = m_GraveyardInfo.GetValue(iMapId); if (mapGraveyardInfo == null) { return(null); } SafeDictionary <uint, GraveyardInfo> zoneGraveyardInfo = mapGraveyardInfo.GetValue(iZoneId); if (zoneGraveyardInfo == null) { return(null); } GraveyardInfo graveyardInfo = zoneGraveyardInfo.GetValue(iFaction); if (graveyardInfo == null) { return(null); } return(graveyardInfo); }
/// <summary> /// /// </summary> /// <param name="iRace"></param> /// <param name="iClass"></param> /// <param name="playerLevelStats"></param> public void AddGraveyardInfo( uint iMapId, uint iZoneId, uint iFaction, GraveyardInfo graveyardInfo ) { SafeDictionary<uint, SafeDictionary<uint, GraveyardInfo>> mapGraveyardInfo = m_GraveyardInfo.GetValue( iMapId ); if ( mapGraveyardInfo == null ) mapGraveyardInfo = new SafeDictionary<uint, SafeDictionary<uint, GraveyardInfo>>(); SafeDictionary<uint, GraveyardInfo> zoneGraveyardInfo = mapGraveyardInfo.GetValue( iZoneId ); if ( zoneGraveyardInfo == null ) zoneGraveyardInfo = new SafeDictionary<uint, GraveyardInfo>(); zoneGraveyardInfo.Add( iFaction, graveyardInfo ); mapGraveyardInfo.Add( iZoneId, zoneGraveyardInfo ); m_GraveyardInfo.Add( iMapId, mapGraveyardInfo ); }
/// <summary> /// /// </summary> /// <param name="iRace"></param> /// <param name="iClass"></param> /// <param name="playerLevelStats"></param> public void AddGraveyardInfo(uint iMapId, uint iZoneId, uint iFaction, GraveyardInfo graveyardInfo) { SafeDictionary <uint, SafeDictionary <uint, GraveyardInfo> > mapGraveyardInfo = m_GraveyardInfo.GetValue(iMapId); if (mapGraveyardInfo == null) { mapGraveyardInfo = new SafeDictionary <uint, SafeDictionary <uint, GraveyardInfo> >(); } SafeDictionary <uint, GraveyardInfo> zoneGraveyardInfo = mapGraveyardInfo.GetValue(iZoneId); if (zoneGraveyardInfo == null) { zoneGraveyardInfo = new SafeDictionary <uint, GraveyardInfo>(); } zoneGraveyardInfo.Add(iFaction, graveyardInfo); mapGraveyardInfo.Add(iZoneId, zoneGraveyardInfo); m_GraveyardInfo.Add(iMapId, mapGraveyardInfo); }