/// <summary> /// 异地登录处理后推送的信息 /// </summary> /// <param name="infos"></param> /// <param name="heroInfos"></param> /// <param name="skillLst"></param> /// <param name="gameState"></param> public override void onNonLocalLogin(MATCHING_INFOS_LIST infos, HERO_INFOS heroInfos, SKILL_INFOS_LIST skillLst, Int32 gameState) { onPushMatchPlayersData(infos); onReqsChooseHeroResult(heroInfos, skillLst); onGameStateChanged(gameState); Debug.Log("gameState" + gameState); }
public override void onReqsChooseHeroResult(HERO_INFOS heroInfos, SKILL_INFOS_LIST skillLst) { Debug.Log("onReqsChooseHeroResult::" + heroInfos.name + "," + heroInfos.id + "," + heroInfos.skill_3 + ",onReqsSkillLstResult::" + skillLst.Count); for (int i = 0; i < skillLst.Count; i++) { Debug.Log("skillId[" + skillLst[i].id + "]" + ",name::" + skillLst[i].name + ",other::" + skillLst[i].skill_ap_growth); } }
public HERO_INFOS createFromStreamEx(MemoryStream stream) { HERO_INFOS datas = new HERO_INFOS(); datas.id = stream.readInt32(); datas.name = stream.readUnicode(); datas.nick_name = stream.readUnicode(); datas.race = stream.readInt32(); datas.race_desc = stream.readUnicode(); datas.skill_1 = stream.readInt32(); datas.skill_2 = stream.readInt32(); datas.skill_3 = stream.readInt32(); datas.skill_4 = stream.readInt32(); datas.hero_hp = stream.readInt32(); datas.hero_mp = stream.readInt32(); datas.hero_strength = stream.readInt32(); datas.hero_agile = stream.readInt32(); datas.hero_intelligence = stream.readInt32(); datas.hero_attacktime = stream.readInt32(); datas.hero_speed = stream.readInt32(); datas.hero_attackfront = stream.readInt32(); datas.hero_attackback = stream.readInt32(); datas.hero_skillfront = stream.readInt32(); datas.hero_skillback = stream.readInt32(); datas.hero_scope = stream.readInt32(); datas.hero_attack = stream.readInt32(); datas.hero_armor = stream.readInt32(); datas.hero_unarmor = stream.readInt32(); datas.hero_magic = stream.readInt32(); datas.hero_magicresist = stream.readInt32(); datas.hero_hprestored = stream.readInt32(); datas.hero_mprestored = stream.readInt32(); datas.hero_crit = stream.readInt32(); datas.hero_uncrit = stream.readInt32(); datas.hero_critunmber = stream.readInt32(); datas.hero_evade = stream.readInt32(); datas.hero_unevade = stream.readInt32(); datas.hero_parry = stream.readInt32(); datas.hero_unparry = stream.readInt32(); datas.hero_parrynumber = stream.readInt32(); datas.hero_xixue = stream.readInt32(); datas.atk_power = stream.readInt32(); datas.hurt_power = stream.readInt32(); datas.kill_power = stream.readInt32(); datas.hero_energe = stream.readInt32(); return(datas); }
public void addToStreamEx(Bundle stream, HERO_INFOS v) { stream.writeInt32(v.id); stream.writeUnicode(v.name); stream.writeUnicode(v.nick_name); stream.writeInt32(v.race); stream.writeUnicode(v.race_desc); stream.writeInt32(v.skill_1); stream.writeInt32(v.skill_2); stream.writeInt32(v.skill_3); stream.writeInt32(v.skill_4); stream.writeInt32(v.hero_hp); stream.writeInt32(v.hero_mp); stream.writeInt32(v.hero_strength); stream.writeInt32(v.hero_agile); stream.writeInt32(v.hero_intelligence); stream.writeInt32(v.hero_attacktime); stream.writeInt32(v.hero_speed); stream.writeInt32(v.hero_attackfront); stream.writeInt32(v.hero_attackback); stream.writeInt32(v.hero_skillfront); stream.writeInt32(v.hero_skillback); stream.writeInt32(v.hero_scope); stream.writeInt32(v.hero_attack); stream.writeInt32(v.hero_armor); stream.writeInt32(v.hero_unarmor); stream.writeInt32(v.hero_magic); stream.writeInt32(v.hero_magicresist); stream.writeInt32(v.hero_hprestored); stream.writeInt32(v.hero_mprestored); stream.writeInt32(v.hero_crit); stream.writeInt32(v.hero_uncrit); stream.writeInt32(v.hero_critunmber); stream.writeInt32(v.hero_evade); stream.writeInt32(v.hero_unevade); stream.writeInt32(v.hero_parry); stream.writeInt32(v.hero_unparry); stream.writeInt32(v.hero_parrynumber); stream.writeInt32(v.hero_xixue); stream.writeInt32(v.atk_power); stream.writeInt32(v.hurt_power); stream.writeInt32(v.kill_power); stream.writeInt32(v.hero_energe); }
public abstract void onReqsChooseHeroResult(HERO_INFOS arg1, SKILL_INFOS_LIST arg2);
public override void onRemoteMethodCall(MemoryStream stream) { ScriptModule sm = EntityDef.moduledefs["Avatar"]; UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; if (sm.useMethodDescrAlias) { componentPropertyUType = stream.readUint8(); methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); methodUtype = stream.readUint16(); } Method method = null; if (componentPropertyUType == 0) { method = sm.idmethods[methodUtype]; } else { Property pComponentPropertyDescription = sm.idpropertys[componentPropertyUType]; switch (pComponentPropertyDescription.properUtype) { case 17: componentFrameSync.onRemoteMethodCall(methodUtype, stream); break; default: break; } return; } switch (method.methodUtype) { case 18: Int32 onExitMatch_arg1 = stream.readInt32(); onExitMatch(onExitMatch_arg1); break; case 15: Int32 onHeroIdChanged_arg1 = stream.readInt32(); Int32 onHeroIdChanged_arg2 = stream.readInt32(); onHeroIdChanged(onHeroIdChanged_arg1, onHeroIdChanged_arg2); break; case 16: onLoadingToReadyBattleState(); break; case 13: UInt32 onPushAvatarCurrentScene_arg1 = stream.readUint32(); onPushAvatarCurrentScene(onPushAvatarCurrentScene_arg1); break; case 14: MATCHING_INFOS_LIST onPushMatchPlayersData_arg1 = ((DATATYPE_MATCHING_INFOS_LIST)method.args[0]).createFromStreamEx(stream); onPushMatchPlayersData(onPushMatchPlayersData_arg1); break; case 12: Int32 onPushStatisticalResult_arg1 = stream.readInt32(); onPushStatisticalResult(onPushStatisticalResult_arg1); break; case 17: onReadyBattle(); break; case 10: HERO_INFOS onReqsChooseHeroResult_arg1 = ((DATATYPE_HERO_INFOS)method.args[0]).createFromStreamEx(stream); SKILL_INFOS_LIST onReqsChooseHeroResult_arg2 = ((DATATYPE_SKILL_INFOS_LIST)method.args[1]).createFromStreamEx(stream); onReqsChooseHeroResult(onReqsChooseHeroResult_arg1, onReqsChooseHeroResult_arg2); break; case 11: SKILL_INFOS_LIST onReqsSkillLstResult_arg1 = ((DATATYPE_SKILL_INFOS_LIST)method.args[0]).createFromStreamEx(stream); onReqsSkillLstResult(onReqsSkillLstResult_arg1); break; default: break; } ; }