?? sitting.py
字號:
"""
sitting.py
"""
import shared
import shared.characterstatedata as _characterstatedata
import shared.fighting as _fighting
import shared.casting as _casting
import shared.stopped as _stopped
import shared.idle as _idle
shared.RegisterState(__name__)
def GetStateId():
return _characterstatedata.SITTING
def GetStateTypeId():
return _characterstatedata.POSTURE
def OnEnterState(actor):
# stop any movement and actions
actor.TransitionTo(_stopped)
actor.TransitionTo(_idle)
# cannot move while sitting
actor.BlockMovement()
# cannot fight or cast either
actor.BlockState(_fighting)
actor.BlockState(_casting)
def OnExitState(actor):
# restore movement on exit from sitting
actor.UnblockMovement()
# restore fighting and casting
actor.UnblockState(_fighting)
actor.UnblockState(_casting)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -