commands.client package

Provides client command and client command filter functionality.

class commands.client.ClientCommand(names, *args, **kwargs)[source]

Bases: commands.command._BaseCommand

Decorator class used to register a client command.

class commands.client.ClientCommandDispatcher

Bases: Boost.Python.instance


Raises an exception This class cannot be instantiated from Python

add_callback((ClientCommandDispatcher)arg1, (object)callable) → None :

Adds a callback to the client command’s list.

remove_callback((ClientCommandDispatcher)arg1, (object)callable) → None :

Removes a callback from the client command’s list.

class commands.client.ClientCommandFilter(callback)[source]

Bases: commands.filter._BaseFilter

Class used to register a client command filter.

class commands.client.ClientCommandGenerator

Bases: Boost.Python.instance

__init__((object)arg1) → None
commands.client.get_client_command((str)name) → ClientCommandDispatcher :

Returns the ClientCommandDispatcher instance for the given command

commands.client.register_client_command_filter((object)callable) → None :

Registers a callable to be called when clients use commands.

commands.client.unregister_client_command_filter((object)callable) → None :

Unregisters a client command filter.


The singleton object of the _ClientCommandManager class.