Class PlayerDictionary<TValue>
Dictionary of Steamworks.CSteamID to a generic value.
public class PlayerDictionary<TValue> : IDictionary<ulong, TValue>, ICollection<KeyValuePair<ulong, TValue>>, IReadOnlyDictionary<ulong, TValue>, IReadOnlyCollection<KeyValuePair<ulong, TValue>>, IEnumerable<KeyValuePair<ulong, TValue>>, IDictionary<CSteamID, TValue>, ICollection<KeyValuePair<CSteamID, TValue>>, IReadOnlyDictionary<CSteamID, TValue>, IReadOnlyCollection<KeyValuePair<CSteamID, TValue>>, IEnumerable<KeyValuePair<CSteamID, TValue>>, IDictionary<Player, TValue>, ICollection<KeyValuePair<Player, TValue>>, IReadOnlyDictionary<Player, TValue>, IReadOnlyCollection<KeyValuePair<Player, TValue>>, IEnumerable<KeyValuePair<Player, TValue>>, IDictionary<SteamPlayer, TValue>, ICollection<KeyValuePair<SteamPlayer, TValue>>, IReadOnlyDictionary<SteamPlayer, TValue>, IReadOnlyCollection<KeyValuePair<SteamPlayer, TValue>>, IEnumerable<KeyValuePair<SteamPlayer, TValue>>, IDictionary<IPlayer, TValue>, ICollection<KeyValuePair<IPlayer, TValue>>, IReadOnlyDictionary<IPlayer, TValue>, IReadOnlyCollection<KeyValuePair<IPlayer, TValue>>, IEnumerable<KeyValuePair<IPlayer, TValue>>, IDictionary<WarfarePlayer, TValue>, ICollection<KeyValuePair<WarfarePlayer, TValue>>, IReadOnlyDictionary<WarfarePlayer, TValue>, IReadOnlyCollection<KeyValuePair<WarfarePlayer, TValue>>, IEnumerable<KeyValuePair<WarfarePlayer, TValue>>, IEnumerable
Type Parameters
TValue
- Inheritance
-
PlayerDictionary<TValue>
- Implements
-
IDictionary<ulong, TValue>IReadOnlyDictionary<ulong, TValue>IDictionary<CSteamID, TValue>IReadOnlyDictionary<CSteamID, TValue>IDictionary<Player, TValue>IReadOnlyDictionary<Player, TValue>IDictionary<SteamPlayer, TValue>IReadOnlyDictionary<SteamPlayer, TValue>IDictionary<IPlayer, TValue>IReadOnlyDictionary<IPlayer, TValue>IDictionary<WarfarePlayer, TValue>IReadOnlyDictionary<WarfarePlayer, TValue>
- Inherited Members
Constructors
PlayerDictionary()
public PlayerDictionary()
PlayerDictionary(IDictionary<ulong, TValue>)
public PlayerDictionary(IDictionary<ulong, TValue> dictionary)
Parameters
dictionaryIDictionary<ulong, TValue>
PlayerDictionary(int)
public PlayerDictionary(int capacity)
Parameters
capacityint
Properties
Count
Represents a generic collection of key/value pairs.
public int Count { get; }
Property Value
this[Player]
Get the value associated with the given player.
public TValue this[Player player] { get; set; }
Parameters
playerPlayer
Property Value
- TValue
this[SteamPlayer]
Get the value associated with the given player.
public TValue this[SteamPlayer player] { get; set; }
Parameters
playerSteamPlayer
Property Value
- TValue
this[CSteamID]
Get the value associated with the given player.
public TValue this[CSteamID steam64] { get; set; }
Parameters
steam64CSteamID
Property Value
- TValue
this[ulong]
Get the value associated with the given player.
public TValue this[ulong steam64] { get; set; }
Parameters
steam64ulong
Property Value
- TValue
this[IPlayer]
Get the value associated with the given player.
public TValue this[IPlayer player] { get; set; }
Parameters
playerIPlayer
Property Value
- TValue
this[WarfarePlayer]
Get the value associated with the given player.
public TValue this[WarfarePlayer player] { get; set; }
Parameters
playerWarfarePlayer
Property Value
- TValue
Keys
Represents a generic collection of key/value pairs.
public Dictionary<ulong, TValue>.KeyCollection Keys { get; }
Property Value
- Dictionary<ulong, TValue>.KeyCollection
Values
Represents a generic collection of key/value pairs.
public Dictionary<ulong, TValue>.ValueCollection Values { get; }
Property Value
- Dictionary<ulong, TValue>.ValueCollection
Methods
Add(Player, TValue)
Add the value for the given player.
public void Add(Player player, TValue value)
Parameters
playerPlayervalueTValue
Exceptions
- ArgumentException
The key already exists in the dictionary.
Add(SteamPlayer, TValue)
Add the value for the given player.
public void Add(SteamPlayer player, TValue value)
Parameters
playerSteamPlayervalueTValue
Exceptions
- ArgumentException
The key already exists in the dictionary.
Add(CSteamID, TValue)
Add the value for the given player.
public void Add(CSteamID steam64, TValue value)
Parameters
steam64CSteamIDvalueTValue
Exceptions
- ArgumentException
The key already exists in the dictionary.
Add(ulong, TValue)
Add the value for the given player.
public void Add(ulong steam64, TValue value)
Parameters
steam64ulongvalueTValue
Exceptions
- ArgumentException
The key already exists in the dictionary.
Add(IPlayer, TValue)
Add the value for the given player.
public void Add(IPlayer player, TValue value)
Parameters
playerIPlayervalueTValue
Exceptions
- ArgumentException
The key already exists in the dictionary.
Add(WarfarePlayer, TValue)
Add the value for the given player.
public void Add(WarfarePlayer player, TValue value)
Parameters
playerWarfarePlayervalueTValue
Exceptions
- ArgumentException
The key already exists in the dictionary.
AsReadOnly()
Returns a cached read-only dictionary referencing this dictionary.
public IReadOnlyDictionary<ulong, TValue> AsReadOnly()
Returns
- IReadOnlyDictionary<ulong, TValue>
Clear()
Represents a generic collection of key/value pairs.
public void Clear()
ContainsPlayer(Player)
Check if this dictionary has a value for the given player.
public bool ContainsPlayer(Player player)
Parameters
playerPlayer
Returns
ContainsPlayer(SteamPlayer)
Check if this dictionary has a value for the given player.
public bool ContainsPlayer(SteamPlayer player)
Parameters
playerSteamPlayer
Returns
ContainsPlayer(CSteamID)
Check if this dictionary has a value for the given player.
public bool ContainsPlayer(CSteamID steam64)
Parameters
steam64CSteamID
Returns
ContainsPlayer(ulong)
Check if this dictionary has a value for the given player.
public bool ContainsPlayer(ulong steam64)
Parameters
steam64ulong
Returns
ContainsPlayer(IPlayer)
Check if this dictionary has a value for the given player.
public bool ContainsPlayer(IPlayer player)
Parameters
playerIPlayer
Returns
ContainsPlayer(WarfarePlayer)
Check if this dictionary has a value for the given player.
public bool ContainsPlayer(WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
GetEnumerator()
public Dictionary<ulong, TValue>.Enumerator GetEnumerator()
Returns
- Dictionary<ulong, TValue>.Enumerator
Remove(Player)
Remove the value for the given player if it exists.
public bool Remove(Player player)
Parameters
playerPlayer
Returns
Remove(SteamPlayer)
Remove the value for the given player if it exists.
public bool Remove(SteamPlayer player)
Parameters
playerSteamPlayer
Returns
Remove(CSteamID)
Remove the value for the given player if it exists.
public bool Remove(CSteamID steam64)
Parameters
steam64CSteamID
Returns
Remove(ulong)
Remove the value for the given player if it exists.
public bool Remove(ulong steam64)
Parameters
steam64ulong
Returns
Remove(IPlayer)
Remove the value for the given player if it exists.
public bool Remove(IPlayer player)
Parameters
playerIPlayer
Returns
Remove(WarfarePlayer)
Remove the value for the given player if it exists.
public bool Remove(WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
TryGetValue(Player, out TValue)
Attempt to get the value for the given player if it exists.
public bool TryGetValue(Player player, out TValue value)
Parameters
playerPlayervalueTValue
Returns
TryGetValue(SteamPlayer, out TValue)
Attempt to get the value for the given player if it exists.
public bool TryGetValue(SteamPlayer player, out TValue value)
Parameters
playerSteamPlayervalueTValue
Returns
TryGetValue(CSteamID, out TValue)
Attempt to get the value for the given player if it exists.
public bool TryGetValue(CSteamID steam64, out TValue value)
Parameters
steam64CSteamIDvalueTValue
Returns
TryGetValue(ulong, out TValue)
Attempt to get the value for the given player if it exists.
public bool TryGetValue(ulong steam64, out TValue value)
Parameters
steam64ulongvalueTValue
Returns
TryGetValue(IPlayer, out TValue)
Attempt to get the value for the given player if it exists.
public bool TryGetValue(IPlayer player, out TValue value)
Parameters
playerIPlayervalueTValue
Returns
TryGetValue(WarfarePlayer, out TValue)
Attempt to get the value for the given player if it exists.
public bool TryGetValue(WarfarePlayer player, out TValue value)
Parameters
playerWarfarePlayervalueTValue