Difficult-Rocket/Difficult_Rocket/client/screen.py

28 lines
683 B
Python
Raw Normal View History

2022-05-11 11:11:39 +08:00
# -------------------------------
# Difficult Rocket
2022-06-27 16:51:14 +08:00
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
2022-05-11 11:11:39 +08:00
# All rights reserved
# -------------------------------
import ctypes
from Difficult_Rocket.client import ClientWindow
2022-05-25 09:16:38 +08:00
from Difficult_Rocket.command.tree import CommandTree
2022-05-11 11:11:39 +08:00
class BaseScreen:
2022-05-25 09:16:38 +08:00
def __init__(self, main_window: "ClientWindow"):
self.command_tree = None
self.create_command_tree()
2022-05-11 11:11:39 +08:00
def update(self, tick: float):
pass
def create_command_tree(self):
2022-05-25 09:16:38 +08:00
self.command_tree = CommandTree({})
2022-05-11 11:11:39 +08:00
class DRScreen(BaseScreen):
2022-05-25 09:16:38 +08:00
def __init__(self, main_window: "ClientWindow"):
2022-05-11 11:11:39 +08:00
super().__init__(main_window)