def UnLoadSkill_806(dynamicId, request_proto): '''卸下技能''' argument = UnLoadSkill_pb2.UnLoadSkillRequest() argument.ParseFromString(request_proto) response = UnLoadSkill_pb2.UnLoadSkillResponse() dynamicId = dynamicId characterId = argument.id skillId = argument.skillId skillPos = argument.skillPos data = skill.equipSkill(dynamicId, characterId, 0, skillPos) response.result = data.get('result', False) response.message = data.get('message', '') return response.SerializeToString()
def UnLoadSkill_806(dynamicId,request_proto): '''卸下技能''' argument = UnLoadSkill_pb2.UnLoadSkillRequest() argument.ParseFromString(request_proto) response = UnLoadSkill_pb2.UnLoadSkillResponse() dynamicId = dynamicId characterId = argument.id skillId = argument.skillId skillPos = argument.skillPos data = skill.equipSkill(dynamicId, characterId, 0, skillPos) response.result = data.get('result',False) response.message = data.get('message','') return response.SerializeToString()
def equipSkill(dynamicId, request_proto): '''装备技能''' argument = equipSkill_pb2.equipSkillRequest() argument.ParseFromString(request_proto) response = equipSkill_pb2.equipSkillResponse() characterId = argument.id skillInstanceId = argument.skillInstanceId skillPosition = argument.skillPosition data = skill.equipSkill(dynamicId, characterId, skillInstanceId, skillPosition) response.result = data.get('result', False) response.message = data.get('message', '') return response.SerializeToString()
def equipSkill(dynamicId,request_proto): '''装备技能''' argument = equipSkill_pb2.equipSkillRequest() argument.ParseFromString(request_proto) response = equipSkill_pb2.equipSkillResponse() characterId = argument.id skillInstanceId = argument.skillInstanceId skillPosition = argument.skillPosition data = skill.equipSkill(dynamicId, characterId, skillInstanceId, skillPosition) response.result = data.get('result',False) response.message = data.get('message','') return response.SerializeToString()