C# Class DivineRightGame.ItemFactory.Object.MultiDictionary

A 'dictionary' which accepts duplicate keys. If a key is duplicate, it will pick a random value which has that key. This is slower than a real dictionary obviously.
Mostra file Open project: Haedrian/Divine-Right

Public Methods

Method Description
Add ( string key, List stringList ) : void

Adds an item to the MultiDictionary

MultiDictionary ( ) : System
this ( string key ) : List

Gets the item with the particular key. If the key is not found it will return null If more than one item has the same key, it will return one at random

Method Details

Add() public method

Adds an item to the MultiDictionary
public Add ( string key, List stringList ) : void
key string
stringList List
return void

MultiDictionary() public method

public MultiDictionary ( ) : System
return System

this() public method

Gets the item with the particular key. If the key is not found it will return null If more than one item has the same key, it will return one at random
public this ( string key ) : List
key string
return List