Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bemani/backend/bst/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from bemani.backend.bst.factory import BSTFactory
from bemani.backend.bst.base import BSTBase

__all__ = [
"BSTFactory",
"BSTBase",
]
23 changes: 23 additions & 0 deletions bemani/backend/bst/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from bemani.common import Profile
from bemani.data.types import UserID
from bemani.backend.base import Base
from bemani.backend.core import CoreHandler, CardManagerHandler, PASELIHandler
from bemani.common import GameConstants
from bemani.protocol import Node

class BSTBase(CoreHandler, CardManagerHandler, PASELIHandler, Base):
game = GameConstants.BST

# Helper method that enables events based on the server config
def get_events(self) -> Node:
return Node.void('event_ctrl')

def update_score(self, extid, songid, chartid, loc, points, gauge,
max_combo, grade, medal, fanta_count, great_count, fine_count, miss_count) -> None:
return None

def unformat_player_profile(self, profile: Node, refid: str, extid: int, userid: UserID) -> Profile:
return None

def format_player_profile(self, profile: Profile, userid: UserID) -> Node:
return None
Loading