def createLeaveCtx(self, flags=FUNCTIONAL_FLAG.UNDEFINED, entityType=0): return LeaveUnitCtx(waitingID='prebattle/leave', flags=flags, entityType=entityType)
def __leaveOnError(self): SystemMessages.pushI18nMessage( '#system_messages:fortification/fortBattleFinished', type=SystemMessages.SM_TYPE.Error) self.prbEntity.leave(LeaveUnitCtx(flags=FUNCTIONAL_FLAG.UNDEFINED))