2022-05-11 11:11:39 +08:00
|
|
|
# -------------------------------
|
|
|
|
# Difficult Rocket
|
|
|
|
# Copyright © 2021-2022 by shenjackyuanjie
|
|
|
|
# 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)
|