stringtables package¶
Submodules¶
Module contents¶
Provides access to server stringtables.
- class stringtables.StringTable¶
Bases:
instance
- __init__()¶
Raises an exception This class cannot be instantiated from Python
- add_string((StringTable)arg1, (str)arg2[, (str)user_data=None[, (_engines._sound.Channel)length=-1[, (bool)is_server=True[, (bool)auto_unlock=True]]]]) int : ¶
Adds the given string to the table.
- changed_since_tick((StringTable)arg1, (_engines._sound.Channel)arg2) bool : ¶
Returns True if the table has been modified since the given tick, False otherwise.
- get_user_data((StringTable)arg1, (_engines._sound.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, (_engines._sound.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, (_engines._sound.Channel)arg2) None : ¶
Set the tick on which the table has been last modified.
- set_user_data((StringTable)arg1, (_engines._sound.Channel)arg2, (str)arg3[, (_engines._sound.Channel)length=-1]) None : ¶
Sets the user data of the given string index.
- set_user_data( (StringTable)arg1, (str)arg2, (str)arg3 [, (_engines._sound.Channel)length=-1]) -> None :
Sets the user data of the given string.
- property entry_bits¶
Returns the maximum entries of the table (read-only).
- property index¶
Returns the index of the table (read-only).
- property max_strings¶
Returns the max length of the table (read-only).
- property name¶
Returns the name of the table (read-only).