Bsp¶
- class valvebsp.Bsp(path=None, profile=None)[source]¶
Contains all the data from a Bsp file
- __init__(path=None, profile=None)[source]¶
Creates an empty instance of Bsp.
- Parameters:
path (str) – A path to an existing bsp file.
profile (str, optional) – A profile name corresponding to a specific game. See profiles page for appropriate values
- save(destination=None)[source]¶
Saves the current instance of the Bsp. Overwrites original bsp file if no destination is provided.
Note that the bsp is lazy loaded. When overwritting, only loaded lumps will be written. When saving to a new destination, The original bsp will be copied and loaded lumps will be written on top.
- Parameters:
destination (str, optional) – A path (directory + filename) to determine where to save the bsp file.