pytower.suitebro
- class pytower.suitebro.Suitebro(filename, directory, data)[source]
Suitebro file
Abstraction over the input CondoData/.map file, representing parsed tower-unite-suitebro data
- __init__(filename, directory, data)[source]
Instantiates a new Suitebro instance based on the input filename and directory
- add_object(obj)[source]
Adds a new object to the Suitebro file
- Parameters:
obj (
TowerObject) – The object to add
- add_objects(objs)[source]
Adds a list of objects to the Suitebro file
- Parameters:
objs (
Sequence[TowerObject]) – The list of objects to add
- find_item(name)[source]
Find a TowerObject by its name
- Parameters:
name (
str) – The proper name or the nickname of the TowerObject- Return type:
- Returns:
The first TowerObject matching the name, if found, or else None
- inventory_items()[source]
Lists all TowerObject instances that are non-property and are not I/O nor Game-World.
This is equivalent to getting all items that exist in a player’s inventory
- Return type:
- Returns:
List of TowerObject instances in the Suitebro that exist in a player’s Steam inventory
- items()[source]
Lists all non-property TowerObjects
- Return type:
- Returns:
List containing all of the non-property TowerObject instances in this Suitebro
- remove_object(obj)[source]
Removes object from the Suitebro file
- Parameters:
obj (
TowerObject) – The object to remove