brs-py-0.5.2
توضیحات
Brickadia savefile reader/writer
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | brs-py-0.5.2 |
| نام | brs-py |
| نسخه کتابخانه | 0.5.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kevin Schroeder |
| ایمیل نویسنده | Kmschr@gmail.com |
| آدرس صفحه اصلی | https://www.github.com/Kmschr/brs-py |
| آدرس اینترنتی | https://pypi.org/project/brs-py/ |
| مجوز | - |
# brs-py
A savefile reader/writer for the Brickadia game
[Brickadia](https://www.brickadia.com) is a multiplayer brick building game
Made for version 8 savefiles (Brickadia Alpha 5)
## Install
```
pip3 install brs-py
```
## Example Usage
### Display info about a save
```python
import brs
save = brs.readBRS("Freebuild.brs")
print(save)
```
### Make a save from scratch, with bricks showing the default colorset
```python
import brs
save = brs.default()
for color_index in range(len(save.colors)):
brick = brs.Brick.default()
brick.position = [color_index * 10, 0, 6]
brick.color = brs.Color(save.colors[color_index])
save.bricks.append(brick)
brs.writeBRS("colors.brs", save)
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl brs-py-0.5.2:
pip install brs-py-0.5.2.whl
نصب پکیج tar.gz brs-py-0.5.2:
pip install brs-py-0.5.2.tar.gz