示例#1
0
elif options.startTime:
    galaxies = s.getInfo(OID_UNIVERSE).galaxies
    for galaxyID in galaxies:
        s.enableTime(galaxyID, 1)
elif options.shutdown:
    s.shutdown()
    sys.exit()
elif options.ping:
    pass
elif options.addUser:
    login, passwd, nick, email = options.addUser
    s.createAccount(login, passwd, nick, email)
elif options.newGalaxy:
    galaxy_name, galaxy_type = options.newGalaxy
    list_of_players = []
    s.createNewSubscribedGalaxy(OID_UNIVERSE, galaxy_name, galaxy_type, list_of_players)
elif options.deleteGalaxy:
    s.delete(options.deleteGalaxy)
elif options.chronicler:
    sys.path.insert(0, os.path.join(baseDir, '..', 'client'))
    sys.path.insert(0, os.path.join(baseDir, '..', 'client', 'osci'))
    sys.path.insert(0, os.path.join(baseDir, '..', 'client-ai'))
    import ige.ospace.Rules as Rules
    Rules.init(options.configDir)

    from osci.StarMap import StarMap
    import resources
    import osci.res
    import pygame, pygame.ftfont, pygame.freetype
    import pygameui, pygameui.SkinableTheme
    from osci.config import Config
示例#2
0
elif options.startTime:
    galaxies = s.getInfo(OID_UNIVERSE).galaxies
    for galaxyID in galaxies:
        s.enableTime(galaxyID, 1)
elif options.shutdown:
    s.shutdown()
    sys.exit()
elif options.ping:
    pass
elif options.addUser:
    login, passwd, nick, email = options.addUser
    s.createAccount(login, passwd, nick, email)
elif options.newGalaxy:
    galaxy_name, galaxy_type = options.newGalaxy
    list_of_players = []
    s.createNewSubscribedGalaxy(OID_UNIVERSE, galaxy_name, galaxy_type,
                                list_of_players)
elif options.deleteGalaxy:
    s.delete(options.deleteGalaxy)
elif options.chronicler:
    sys.path.insert(0, os.path.join(baseDir, '..', 'client'))
    sys.path.insert(0, os.path.join(baseDir, '..', 'client', 'osci'))
    sys.path.insert(0, os.path.join(baseDir, '..', 'client_ai'))
    import ige.ospace.Rules as Rules
    Rules.init(options.configDir)

    from osci.StarMap import StarMap
    import resources
    import osci.res
    import pygame, pygame.ftfont, pygame.freetype
    import pygameui, pygameui.SkinableTheme
    from osci.config import Config