?? __init__.py
字號:
import string
import shared.characterstatedata as _characterstatedata
def RegisterState(stateName):
# Import the module.
module = __import__(stateName, {}, {}, ["nothing"])
# Determine the state id from the module name.
stateIdName = string.upper(stateName)
stateId = getattr(_characterstatedata, string.upper(string.split(stateName, ".")[-1]))
_characterstatedata.stateLookup[stateId] = module
#print 'modules registred = %s' % _characterstatedata.stateLookup
def _GetStateModuleById(stateId):
return _characterstatedata.stateLookup.get(stateId, None)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -