public static void requestAddHp(int hp) { ZMNetData zd = new ZMNetData((int)OpCode.ADD_HP); zd.writeInt(hp); ZealmConnector.sendRequest(zd); }
/// <summary> /// 改变战力值 /// </summary> /// <param name="Value"></param> public static void ChangeForceValue(int Value) { ZMNetData net = new ZMNetData((int)OpCode.ChangeForceValue); net.writeInt(Value); ZealmConnector.sendRequest(net); }
public static void requestTowerFloorFinish(int floorNum) { ZMNetData net = new ZMNetData((int)OpCode.TOWER_FLOOR_FINISH); net.writeInt(floorNum); ZealmConnector.sendRequest(net); }
public static void requestTtile(string mTitle) { ZMNetData zd = new ZMNetData((int)OpCode.playerTtile); zd.writeString(mTitle); ZealmConnector.sendRequest(zd); }
public static void requestAcceptDuel(int i) { ZMNetData zd = new ZMNetData((int)OpCode.DUEL_INVITE_FEEDBACK); zd.writeInt(i); ZealmConnector.sendRequest(zd); }
public static void requestHangUp(bool isHangUp) { ZMNetData zd = new ZMNetData((int)OpCode.IS_HANGUP); zd.writeBoolean(isHangUp); ZealmConnector.sendRequest(zd); }
public static void requestSetCurHP(int hp) { ZMNetData zd = new ZMNetData((int)OpCode.SET_CUR_HP); zd.writeInt(hp); ZealmConnector.sendRequest(zd); }
//邀请决斗 public static void requestDuelInvite(int instanceID) { ZMNetData zd = new ZMNetData((int)OpCode.DUEL_INVITE); zd.writeInt(instanceID); ZealmConnector.sendRequest(zd); }
public static void attachTarget(int targetInstanceID) { ZMNetData zd = new ZMNetData((int)OpCode.ATTACK_TARGET); zd.writeInt(targetInstanceID); ZealmConnector.sendRequest(zd); }
public static void requestSmelt(int state) { ZMNetData net = new ZMNetData((int)OpCode.SMELT); net.writeInt(state); ZealmConnector.sendRequest(net); }
public static void requestCanAddToInsMap(int InstanceID) { ZMNetData net = new ZMNetData((int)OpCode.CAN_ADD_TO_INSTANCE_MAP); net.writeInt(InstanceID); ZealmConnector.sendRequest(net); }
public static void requestChangeMapState(int state) { ZMNetData net = new ZMNetData((int)OpCode.CHANGE_MAP_STATE); net.writeInt(state); ZealmConnector.sendRequest(net); }
/// <summary> /// 移除骷髅 /// </summary> /// <param name="skullID">骷髅ID</param> public static void SkullRemove(int skullID) { ZMNetData zd = new ZMNetData((int)OpCode.SkullRemove); zd.writeInt(skullID); ZealmConnector.sendRequest(zd); }
public static void requestRunning(string state) { ZMNetData zd = new ZMNetData((int)OpCode.IS_RUNNING); zd.writeString(state); ZealmConnector.sendRequest(zd); }
public static void requestRide(bool isRide) { ZMNetData zd = new ZMNetData((int)OpCode.playerRide); zd.writeBoolean(isRide); ZealmConnector.sendRequest(zd); }
/// <summary> /// 通知副本主bosss挂了 - /// </summary> public static void RequestBoss2WasDie(int SpawnPointID) { ZMNetData zd = new ZMNetData((int)OpCode.Boss2WasDie); zd.writeInt(SpawnPointID); ZealmConnector.sendRequest(zd); // KDebug.Log ("发送boss挂了的包"); }
/// <summary> /// 获取公会宣言 /// </summary> public static void GetGuildDeclaration() { if (InRoom.GetInRoomInstantiate().ServerConnected) { ZMNetData data = new ZMNetData((short)OpCode.GetGuildDeclaration); ZealmConnector.sendRequest(data); } }
/// <summary> /// 设置公会公告 /// </summary> public static void SetGuildNotice(string mNotice) { if (InRoom.GetInRoomInstantiate().ServerConnected) { ZMNetData data = new ZMNetData((short)OpCode.SetGuildNotice); data.writeString(mNotice); ZealmConnector.sendRequest(data); } }
public static void requestSetMaxHP(int hp, bool isInit, int mana) { ZMNetData zd = new ZMNetData((int)OpCode.SET_MAX_HP); zd.writeBoolean(isInit); zd.writeInt(hp); zd.writeInt(mana); ZealmConnector.sendRequest(zd); }
/// <summary> /// 召唤骷髅 - /// </summary> public static void SummonSkull(int PlayerID, int MonsterMaxHP, string OtherData) { ZMNetData zd = new ZMNetData((int)OpCode.SummonSkull); zd.writeInt(PlayerID); zd.writeInt(MonsterMaxHP); zd.writeString(OtherData); ZealmConnector.sendRequest(zd); //Debug.Log("-------------------------------SummonSkull"); }
public static void requestDamage(int targetInstanceID, int damage, int skillID, string effect) { ZMNetData zd = new ZMNetData((int)OpCode.ATTACK_TARGET); zd.writeInt(targetInstanceID); zd.writeInt(damage); zd.writeInt(skillID); zd.writeString(effect); ZealmConnector.sendRequest(zd); }
/// <summary> /// 怪物受伤害 - /// </summary> public static void MonsterDamaged(int MonsterID, int DamageInfo, string OtherData) { //Debug.Log( "K________MonsterDamaged!!!!!!!!!!!MonsterID = " + MonsterID ); ZMNetData zd = new ZMNetData((int)OpCode.AttackMonster); zd.writeInt(MonsterID); zd.writeInt(DamageInfo); zd.writeString(OtherData); ZealmConnector.sendRequest(zd); }
public static void requestDamage(int damage, int skillID, int skillLevel, int skillBranch, int targetInstanceID) { ZMNetData zd = new ZMNetData((int)OpCode.ATTACK_TARGET); zd.writeInt(damage); zd.writeInt(skillID); zd.writeInt(skillLevel); zd.writeInt(skillBranch); zd.writeInt(targetInstanceID); ZealmConnector.sendRequest(zd); }
public static void requestAddToMap(int mapInstanceID, Vector3 position) { // Debug.Log("11111111111;sdkfj;alsdflk;asjdflkajsdfl;kajsdpf;jw[kdf';asdkf;djg;oiifhsfhofdklhg"); ZMNetData zd = new ZMNetData((int)OpCode.CLIENT_ADD_TO_INSTANCE_MAP); zd.writeInt(mapInstanceID); zd.putFloat((float)position.x); zd.putFloat((float)position.y); zd.putFloat((float)position.z); ZealmConnector.sendRequest(zd); }
public static void requestAddToMap(string mapid, Vector3 position) { KDebug.Log(Application.loadedLevelName + " =============== song ===== 5 "); // Debug.Log("------------------------------------------------------------------------------------;sdkfj;alsdflk;asjdflkajsdfl;kajsdpf;jw[kdf';asdkf;djg;oiifhsfhofdklhg"); ZMNetData zd = new ZMNetData((int)OpCode.CLIENT_ADD_TO_MAP); zd.writeString(mapid); zd.putFloat((float)position.x); zd.putFloat((float)position.y); zd.putFloat((float)position.z); ZealmConnector.sendRequest(zd); }
//强制移动类型,角度,距离 public static void requestForceMove(int instanceID, Vector3 direction, int[] info) { ZMNetData zd = new ZMNetData((int)OpCode.FORCE_MOVE); zd.writeInt(instanceID); zd.putFloat(direction.x); zd.putFloat(direction.z); zd.writeInt(info [0]); zd.writeInt(info [1]); zd.writeInt(info [2]); zd.writeInt(info [3]); ZealmConnector.sendRequest(zd); }
/// <summary> /// 通知服务器玩家进入了怪物生成点 - /// </summary> public static void RequestPlayerEnterMonsterSpawnArea(int SpawnPointID, int WaveID, int MonsterHP, string MonsterSpawnData) { ///此处普通 的 生成点,波ID为-1 ,返还也是-1,是Dota模式下怪物生成点的属性WaveID起始为0,返还时+1,且 MonsterSpawnData用“,”分割的最后多一位ATTime用于初始化怪物属性// //Debug.Log( "K______________________RequestPlayerEnterMonsterSpawnArea!!!!!!!!!!!SpawnPointID = " + SpawnPointID ); //KDebug.WriteLog( "申请出怪 : SpawnPointID = " + SpawnPointID + " WaveID = " + WaveID ); ZMNetData zd = new ZMNetData((int)OpCode.HitMonsterPoint); zd.writeInt(SpawnPointID); zd.writeInt(WaveID); zd.writeInt(MonsterHP); zd.writeString(MonsterSpawnData); ZealmConnector.sendRequest(zd); }
/// <summary> /// 怪物加buff的请求 - /// </summary> public static void MonsterAddHealthBuff(int MonsterID, int BuffStatusID, int BuffID, int BuffValue, float BuffTime, float BuffInterval) { //Debug.Log( "K________Monster_Add_HealthBuff!!!!缓伤代码在这里!!!!!!!MonsterID = " + MonsterID ); ZMNetData zd = new ZMNetData((int)OpCode.MonsterHealthBuff); zd.writeInt(MonsterID); zd.writeInt(BuffStatusID); zd.writeInt(BuffID); zd.writeInt(BuffValue); zd.putFloat(BuffTime); zd.putFloat(BuffInterval); ZealmConnector.sendRequest(zd); }
public static void requestUseSkill(int skillType, int skillid, Vector3 dir, int targetID) { //KDebug.WriteLog(System.DateTime.Now + "======================requestUseSkill================SkillID====" + skillid + " ,targetID"+ targetID); ZMNetData zd = new ZMNetData((int)OpCode.BROADCAST_USE_SKILL); zd.writeInt(PlayerUtil.myID); zd.writeInt(skillType); zd.writeInt(skillid); // Debug.Log("#######requestUseSkill####" + PlayerUtil.myID + " " + skillType + " " + skillid); if (skillType == CommonDefine.SKILL_TYPE_HAVE_DIRECT) { zd.putFloat(dir.x); zd.putFloat(dir.y); zd.putFloat(dir.z); } zd.writeInt(targetID); ZealmConnector.sendRequest(zd); }
// Warning!!!Warning!!!Warning!!!此处顶层分隔符使用“;” - /// <summary> /// 发起AI建议 - /// </summary> static void RquestCallAI(int MonsterID, int DecisionID, string DecisionData) { #if msr_AccumulateAI AIDecisionData nData = new AIDecisionData(); nData.MonsterID = MonsterID; nData.DecisionID = DecisionID; nData.DecisionData = DecisionData; MonsterHandler.RequestCallAI(nData); #endif #if !msr_AccumulateAI //Debug.Log( "K________RquestCallAI!!!!!!!!!!!MonsterID = " + MonsterID + " Data = " + DecisionData ); ZMNetData zd = new ZMNetData((int)OpCode.Decision); zd.writeInt(MonsterID); zd.writeInt(DecisionID); zd.writeString(DecisionData); ZealmConnector.sendRequest(zd); #endif }