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.
Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Méthode 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 méthode

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

MultiDictionary() public méthode

public MultiDictionary ( ) : System
Résultat System

this() public méthode

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
Résultat List