Go to the documentation of this file.00001 '''
00002 Anoria (c) Gsk 2010
00003 '''
00004
00005
00006
00007 import BigWorld
00008 import ResMgr
00009
00010 from Resources import ResourceDB as RDB
00011 from config.consts import SYSTEM_VERSION
00012
00013 DEFAULT_SPACE_NAME = "spaces/demo"
00014
00015 ChatMgr = None
00016
00017
00018 def onInit( isReload ):
00019 print "------------------------------------------------"
00020 print "INIT %s" % (SYSTEM_VERSION)
00021 print "------------------------------------------------"
00022
00023 RDB.load(isServer=True)
00024
00025
00026 def onBaseAppReady( isBootstrap ):
00027
00028 isRestoring = (len( BigWorld.entities ) != 0)
00029
00030 if isBootstrap and not isRestoring:
00031
00032 entity = BigWorld.createBaseLocally( "SpaceLoader",
00033 geometry = DEFAULT_SPACE_NAME,
00034 isDefault = True )
00035
00036
00037 Morgue = BigWorld.createBaseLocally("Morgue")
00038
00039
00040
00041
00042
00043
00044
00045
00046 global SystemChatChannel
00047 SystemChatChannel = BigWorld.createBaseLocally("ChatChannel", channelId=0)
00048
00049 def registerChatMgrCB(success):
00050 print 'registerChatMgrCB(): success=%s' % (success)
00051
00052
00053