/// <summary> /// Attempts to retrieve the defined pointer for the given build. /// </summary> /// <param name="version">The build version.</param> /// <returns>The pointer, otherwise -1.</returns> public PokingInformation RetrieveInformation(Version version) { PokingInformation output = null; _collection.TryGetValue(version, out output); return(output); }
/// <summary> /// Adds a builder version to the poking collection. /// </summary> /// <param name="version">The version string of the game.</param> /// <param name="pointer">The pointer for the map header.</param> public void AddName(Version version, PokingInformation info) { if (_collection.ContainsKey(version)) { throw new InvalidOperationException("Build version \"" + version + "\" has multiple poking definitions"); } _collection[version] = info; }