players.dictionary module

Provides helper class to store player instances.

class players.dictionary.PlayerDictionary(factory=<class 'players.engines.orangebox.cstrike.Player'>, *args, **kwargs)[source]

Bases: entities.dictionary.EntityDictionary

Helper class used to store player instances.

__init__(factory=<class 'players.engines.orangebox.cstrike.Player'>, *args, **kwargs)[source]

Initialize the dictionary.

from_userid(userid)[source]

Get a player instance from a userid.

Parameters:userid (int) – The userid.
Return type:Player