XmdsManager.ice 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. // **********************************************************************
  2. //
  3. // Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
  4. //
  5. // **********************************************************************
  6. #pragma once
  7. module Xmds
  8. {
  9. /**onFinishPickItem*/
  10. class FinishPickItem {
  11. string itemIcon;
  12. int quality;
  13. int num;
  14. };
  15. /**getPlayerPKInfoData*/
  16. class PlayerPKInfoData {
  17. int pkMode;
  18. int pkValue;
  19. int pkLevel;
  20. };
  21. /**canTalkWithNpc*/
  22. class CanTalkWithNpc {
  23. int templateId;
  24. bool canTalk;
  25. };
  26. /**refreshPlayerPropertyChange*/
  27. class RefreshPlayerPropertyChange {
  28. string key;
  29. int changeType;
  30. int valueType;
  31. int value;
  32. int duration;
  33. long timestamp;
  34. };
  35. /**getPlayerData*/
  36. class SkillDataICE {
  37. int skillId;
  38. long skillTime;
  39. };
  40. sequence<SkillDataICE> SkillDataSeq;
  41. class GetPlayerData {
  42. float x;
  43. float y;
  44. float direction;
  45. int hp;
  46. int mp;
  47. int pkMode;
  48. int pkValue;
  49. int pkLevel;
  50. SkillDataSeq skillData;
  51. int combatState;
  52. };
  53. /**canTalkWithNpc*/
  54. class CanTalkWithNpcResult{
  55. int templateId;
  56. bool canTalk;
  57. };
  58. ["amd"] interface XmdsManager
  59. {
  60. //游戏服通知战斗服数据
  61. void notifyBattleServer(string instanceId, string name, string data);
  62. //获取场景副本实例静态数据
  63. string getZoneStaticData(string instanceId);
  64. //获取场景副本中有效的刷新区域
  65. string getZoneRegions(string instanceId);
  66. // 获取跨场景出生坐标
  67. string getBornPlace(string instanceId, int areaId);
  68. //获取场景副本所有的单位信息
  69. string getAllUnitInfo(string instanceId);
  70. //获取场景副本所有的npc信息
  71. string getAllNpcInfo(string instanceId);
  72. //获取所有玩家UUID信息
  73. string getAllPlayerUUID();
  74. // 获取玩家数据
  75. string getPlayerData(string playerId,bool changeArea);
  76. // 怪物死亡掉落
  77. void onMonsterDiedDrops(string instanceId,string data);
  78. // 拾取道具 data{itemIcon, quality, num}
  79. //void onPickItem(string playerId,string data);
  80. // 帮助复活角色
  81. void helpRevivePlayer(string playerId, string revivePlayerId, int time);
  82. // 复活角色
  83. void revivePlayer(string playerId, string data);
  84. // 角色坐骑
  85. void refreshSummonMount(string playerId, int time, int isUp);
  86. // 玩家战斗信息同步
  87. void refreshPlayerBasicData(string playerId, string basic);
  88. // 玩家组队信息同步
  89. void refreshPlayerTeamData(string playerId, string uuidList);
  90. // 玩家背包剩余格子数量信息同步
  91. void refreshPlayerRemainBagCountData(string playerId, int remainCount);
  92. // 玩家背包剩余格子数量信息同步
  93. void refreshPlayerRemainTeamBagCountData(string playerId, int remainCount);
  94. // 玩家宠物基础信息变更
  95. void refreshPlayerPetBaseInfoChange(string playerId, string data);
  96. // 玩家宠物全部信息变更
  97. void refreshPlayerPetDataChange(string playerId, int type, string data);
  98. // 玩家战斗信息同步
  99. void refreshPlayerBattleEffect(string playerId, string effects);
  100. // 添加玩家属性
  101. void addPlayerAtt(string playerId, string notifyPlayerIds, string key, int value);
  102. // 玩家技能信息同步
  103. void refreshPlayerSkill(string playerId, int operateID , string skills);
  104. // 玩家时装信息同步
  105. void refreshPlayerAvatar(string playerId, string avatars);
  106. // 获取玩家PK信息
  107. string getPlayerPKInfoData(string playerId);
  108. // 获取玩家技能cd信息
  109. string getPlayerSkillCDTime(string playerId);
  110. // 获取玩家技能cd信息
  111. string canTalkWithNpc(string playerId, int npcId);
  112. // 角色关联属性变更
  113. void refreshPlayerPropertyChange(string playerId, string data);
  114. // 玩家pk模式同步
  115. void refreshPlayerPKMode(string playerId, int mode);
  116. // 玩家pk值同步
  117. void refreshPlayerPKValue(string playerId, int value);
  118. // 玩家pk等级同步
  119. void refreshPlayerPKLevel(string playerId, int level);
  120. // 拾取道具 data{itemIcon, quality, num}
  121. void onFinishPickItem(string playerId, string data);
  122. // 宠物技能信息同步
  123. void refreshPlayerPetSkillChange(string playerId, int operateID , string skills);
  124. // 宠物加血判断
  125. bool canUseItem(string playerId);
  126. // 宠物加血
  127. void refreshPlayerPetPropertyChange(string playerId, string data);
  128. // 获取玩家数据
  129. string getPlayerPetData(string playerId);
  130. // 触发特殊战斗事件
  131. void triggrBattleFunction(string playerId, int eventId, string data);
  132. // 往场景内种怪
  133. void addUnits(string instanceId, string data);
  134. // 切换宠物pk模式
  135. void refreshPlayerPetFollowModeChange(string playerId, int mode);
  136. // 玩家准备就绪
  137. void playerReady(string playerId);
  138. // 刷新队伍数据
  139. void refreshTeamData(string playerId, string data);
  140. // 设置自动战斗
  141. void autoBattle(string instanceId, string playerId, bool enable);
  142. // 获取玩家统计
  143. string getPlayerStatistic(string playerId);
  144. // 获取场景统计
  145. string getInstanceStatistic(string instanceId);
  146. //刷NPC
  147. int addUnit(string instanceId, int unitTemplateID, string data);
  148. //移除NPC
  149. void removeUnit(string instanceId, int unitId);
  150. };
  151. };