23 lines
416 B
Python
23 lines
416 B
Python
from typing import Dict, Callable
|
|
|
|
|
|
class Game:
|
|
"""
|
|
Game state for one guild
|
|
"""
|
|
def __init__(self, config_dict: Dict, save_function: Callable):
|
|
self.config = config_dict
|
|
self.save_function = save_function
|
|
|
|
@staticmethod
|
|
def new_dict():
|
|
return {
|
|
"game_started": False,
|
|
}
|
|
|
|
def is_started(self):
|
|
return self.config["game_started"]
|
|
|
|
async def start(self):
|
|
raise NotImplementedError("Start game")
|