Example #1
0
def initGameStart():
    '''
    用于结束角色创建正式开始游戏的初始化流程
    '''
    CharacterHandle.initCharacterDormitory()
    CharacterHandle.initCharacterPosition()
    Course.initPhaseCourseHour()
    Interest.initCharacterInterest()
    Course.initCharacterKnowledge()
    Course.initClassTeacher()
    Course.initClassTimeTable()
    characterPosition = CacheContorl.characterData['character'][0].Position
    MapHandle.characterMoveScene(['0'],characterPosition,0)
    CacheContorl.nowFlowId = 'main'
Example #2
0
def inputLoadSave(saveId:str):
    '''
    载入存档存档id对应数据,覆盖当前游戏内存
    Keyword arguments:
    saveId -- 存档id
    '''
    saveData = loadSave(saveId)
    CacheContorl.characterData = saveData['1']
    CacheContorl.characterData['characterId'] = '0'
    CacheContorl.gameTime = saveData['2']
    CacheContorl.sceneData = saveData['3']
    CacheContorl.mapData = saveData['4']
    CacheContorl.npcTemData = saveData['5']
    CacheContorl.randomNpcList = saveData['6']
    CacheContorl.occupationCharacterData = saveData['7']
    CharacterHandle.initCharacterPosition()
Example #3
0
def inputLoadSave(saveId: str):
    '''
    载入存档存档id对应数据,覆盖当前游戏内存
    Keyword arguments:
    saveId -- 存档id
    '''
    saveData = loadSave(saveId)
    CacheContorl.characterData = saveData['1']
    CacheContorl.characterData['characterId'] = 0
    CacheContorl.gameTime = saveData['2']
    CacheContorl.sceneData = saveData['3']
    CacheContorl.mapData = saveData['4']
    CacheContorl.npcTemData = saveData['5']
    CacheContorl.randomNpcList = saveData['6']
    CacheContorl.occupationCharacterData = saveData['7']
    CacheContorl.TotalBodyFatByage = saveData['8']
    CacheContorl.AverageBodyFatByage = saveData['9']
    CacheContorl.TotalNumberOfPeopleOfAllAges = saveData['10']
    CacheContorl.TotalHeightByage = saveData['11']
    CacheContorl.AverageHeightByage = saveData['12']
    CharacterHandle.initCharacterPosition()