stringtables package

Module contents

Provides access to server stringtables.

class stringtables.StringTable

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

add_string((StringTable)arg1, (str)arg2[, (str)user_data=None[, (Channel)length=-1[, (bool)is_server=True[, (bool)auto_unlock=True]]]]) → int :

Adds the given string to the table.

changed_since_tick((StringTable)arg1, (Channel)arg2) → bool :

Returns True if the table has been modified since the given tick, False otherwise.

get_user_data((StringTable)arg1, (Channel)arg2) → str :

Returns the user data of the given string index.

get_user_data( (StringTable)arg1, (str)arg2) -> str :
Returns the user data of the given string.
get_user_data_length((StringTable)arg1, (Channel)arg2) → int :

Returns the length of the user data of the given string index.

get_user_data_length( (StringTable)arg1, (str)arg2) -> int :
Returns the length of the user data of the given string.
set_tick((StringTable)arg1, (Channel)arg2) → None :

Set the tick on which the table has been last modified.

set_user_data((StringTable)arg1, (Channel)arg2, (str)arg3[, (Channel)length=-1]) → None :

Sets the user data of the given string index.

set_user_data( (StringTable)arg1, (str)arg2, (str)arg3 [, (Channel)length=-1]) -> None :
Sets the user data of the given string.
entry_bits

Returns the maximum entries of the table (read-only).

index

Returns the index of the table (read-only).

max_strings

Returns the max length of the table (read-only).

name

Returns the name of the table (read-only).