Beispiel #1
0
def update_cafeteria():
    """ 刷新食堂内食物 """
    food_judge = 1
    for food_type in cache.restaurant_data:
        food_list: Dict[UUID, game_type.Food] = cache.restaurant_data[food_type]
        for food_id in food_list:
            food: game_type.Food = food_list[food_id]
            if food.eat:
                food_judge = 0
            break
        if not food_judge:
            break
    if food_judge:
        cooking.init_restaurant_data()
def game_start():
    """ 初始化游戏数据 """
    character_handle.init_character_dormitory()
    character_handle.init_character_position()
    course.init_phase_course_hour()
    interest.init_character_interest()
    course.init_character_knowledge()
    course.init_class_teacher()
    course.init_class_time_table()
    course.init_teacher_table()
    cooking.init_recipes()
    cooking.init_restaurant_data()
    character_position = cache.character_data[0].position
    map_handle.character_move_scene(["0"], character_position, 0)
    cache.school_longitude = random.uniform(120.9, 122.12)
    cache.school_latitude = random.uniform(30.7, 31.53)
Beispiel #3
0
def init_game_start():
    """
    用于结束角色创建正式开始游戏的初始化流程
    """
    character_handle.init_character_dormitory()
    character_handle.init_character_position()
    course.init_phase_course_hour()
    interest.init_character_interest()
    course.init_character_knowledge()
    course.init_class_teacher()
    course.init_class_time_table()
    course.init_teacher_table()
    cooking.init_recipes()
    cooking.init_restaurant_data()
    character_position = cache_contorl.character_data[0].position
    map_handle.character_move_scene(["0"], character_position, 0)
    cache_contorl.now_flow_id = "main"