ZoneManager.cs 114 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823
  1. // **********************************************************************
  2. //
  3. // Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
  4. //
  5. // This copy of Ice is licensed to you under the terms described in the
  6. // ICE_LICENSE file included in this distribution.
  7. //
  8. // **********************************************************************
  9. //
  10. // Ice version 3.6.4
  11. //
  12. // <auto-generated>
  13. //
  14. // Generated from file `ZoneManager.ice'
  15. //
  16. // Warning: do not edit this file.
  17. //
  18. // </auto-generated>
  19. //
  20. using _System = global::System;
  21. using _Microsoft = global::Microsoft;
  22. #pragma warning disable 1591
  23. namespace IceCompactId
  24. {
  25. }
  26. namespace BattleIce
  27. {
  28. [_System.Runtime.InteropServices.ComVisible(false)]
  29. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704")]
  30. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707")]
  31. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709")]
  32. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710")]
  33. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711")]
  34. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1715")]
  35. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
  36. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720")]
  37. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1722")]
  38. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724")]
  39. public partial interface ZoneManagerCallback : Ice.Object, ZoneManagerCallbackOperations_, ZoneManagerCallbackOperationsNC_
  40. {
  41. }
  42. [_System.Runtime.InteropServices.ComVisible(false)]
  43. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704")]
  44. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707")]
  45. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709")]
  46. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710")]
  47. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711")]
  48. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1715")]
  49. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
  50. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720")]
  51. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1722")]
  52. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724")]
  53. public partial interface ZoneManager : Ice.Object, ZoneManagerOperations_, ZoneManagerOperationsNC_
  54. {
  55. }
  56. }
  57. namespace BattleIce
  58. {
  59. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  60. public delegate void Callback_ZoneManagerCallback_eventNotify();
  61. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  62. public delegate void Callback_ZoneManager_setCallback(int ret__);
  63. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  64. public delegate void Callback_ZoneManager_createZoneRequest(int ret__);
  65. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  66. public delegate void Callback_ZoneManager_destroyZoneRequest();
  67. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  68. public delegate void Callback_ZoneManager_clearAllPlayersRequest();
  69. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  70. public delegate void Callback_ZoneManager_getAllPlayerCountRequest(int ret__);
  71. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  72. public delegate void Callback_ZoneManager_playerEnterRequest();
  73. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  74. public delegate void Callback_ZoneManager_playerLeaveRequest();
  75. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  76. public delegate void Callback_ZoneManager_playerNetStateChanged();
  77. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  78. public delegate void Callback_ZoneManager_getServerState(string ret__);
  79. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  80. public delegate void Callback_ZoneManager_registerGameServer(string ret__);
  81. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  82. public delegate void Callback_ZoneManager_getUnitHP(int ret__);
  83. }
  84. namespace BattleIce
  85. {
  86. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  87. public interface ZoneManagerCallbackPrx : Ice.ObjectPrx
  88. {
  89. void eventNotify(string eventType, string msg);
  90. void eventNotify(string eventType, string msg, _System.Collections.Generic.Dictionary<string, string> ctx__);
  91. Ice.AsyncResult<BattleIce.Callback_ZoneManagerCallback_eventNotify> begin_eventNotify(string eventType, string msg);
  92. Ice.AsyncResult<BattleIce.Callback_ZoneManagerCallback_eventNotify> begin_eventNotify(string eventType, string msg, _System.Collections.Generic.Dictionary<string, string> ctx__);
  93. Ice.AsyncResult begin_eventNotify(string eventType, string msg, Ice.AsyncCallback cb__, object cookie__);
  94. Ice.AsyncResult begin_eventNotify(string eventType, string msg, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  95. void end_eventNotify(Ice.AsyncResult r__);
  96. }
  97. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  98. public interface ZoneManagerPrx : Ice.ObjectPrx
  99. {
  100. /// <summary>
  101. /// 场景管理器相关协议
  102. /// </summary>
  103. int setCallback(Ice.Identity ident, string srvUUID);
  104. /// <summary>
  105. /// 场景管理器相关协议
  106. /// </summary>
  107. /// <param name="ctx__">The Context map to send with the invocation.</param>
  108. int setCallback(Ice.Identity ident, string srvUUID, _System.Collections.Generic.Dictionary<string, string> ctx__);
  109. /// <summary>
  110. /// 场景管理器相关协议
  111. /// </summary>
  112. /// <returns>An asynchronous result object.</returns>
  113. Ice.AsyncResult<BattleIce.Callback_ZoneManager_setCallback> begin_setCallback(Ice.Identity ident, string srvUUID);
  114. /// <summary>
  115. /// 场景管理器相关协议
  116. /// </summary>
  117. /// <param name="ctx__">The Context map to send with the invocation.</param>
  118. /// <returns>An asynchronous result object.</returns>
  119. Ice.AsyncResult<BattleIce.Callback_ZoneManager_setCallback> begin_setCallback(Ice.Identity ident, string srvUUID, _System.Collections.Generic.Dictionary<string, string> ctx__);
  120. /// <summary>
  121. /// 场景管理器相关协议
  122. /// </summary>
  123. /// <param name="cb__">Asynchronous callback invoked when the operation completes.</param>
  124. /// <param name="cookie__">Application data to store in the asynchronous result object.</param>
  125. /// <returns>An asynchronous result object.</returns>
  126. Ice.AsyncResult begin_setCallback(Ice.Identity ident, string srvUUID, Ice.AsyncCallback cb__, object cookie__);
  127. /// <summary>
  128. /// 场景管理器相关协议
  129. /// </summary>
  130. /// <param name="ctx__">The Context map to send with the invocation.</param>
  131. /// <param name="cb__">Asynchronous callback invoked when the operation completes.</param>
  132. /// <param name="cookie__">Application data to store in the asynchronous result object.</param>
  133. /// <returns>An asynchronous result object.</returns>
  134. Ice.AsyncResult begin_setCallback(Ice.Identity ident, string srvUUID, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  135. /// <summary>
  136. /// 场景管理器相关协议
  137. /// </summary>
  138. /// <param name="r__">The asynchronous result object for the invocation.</param>
  139. int end_setCallback(Ice.AsyncResult r__);
  140. /// <summary>
  141. /// 场景副本相关协议
  142. /// </summary>
  143. int createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data);
  144. /// <summary>
  145. /// 场景副本相关协议
  146. /// </summary>
  147. /// <param name="ctx__">The Context map to send with the invocation.</param>
  148. int createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, _System.Collections.Generic.Dictionary<string, string> ctx__);
  149. /// <summary>
  150. /// 场景副本相关协议
  151. /// </summary>
  152. /// <returns>An asynchronous result object.</returns>
  153. Ice.AsyncResult<BattleIce.Callback_ZoneManager_createZoneRequest> begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data);
  154. /// <summary>
  155. /// 场景副本相关协议
  156. /// </summary>
  157. /// <param name="ctx__">The Context map to send with the invocation.</param>
  158. /// <returns>An asynchronous result object.</returns>
  159. Ice.AsyncResult<BattleIce.Callback_ZoneManager_createZoneRequest> begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, _System.Collections.Generic.Dictionary<string, string> ctx__);
  160. /// <summary>
  161. /// 场景副本相关协议
  162. /// </summary>
  163. /// <param name="cb__">Asynchronous callback invoked when the operation completes.</param>
  164. /// <param name="cookie__">Application data to store in the asynchronous result object.</param>
  165. /// <returns>An asynchronous result object.</returns>
  166. Ice.AsyncResult begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, Ice.AsyncCallback cb__, object cookie__);
  167. /// <summary>
  168. /// 场景副本相关协议
  169. /// </summary>
  170. /// <param name="ctx__">The Context map to send with the invocation.</param>
  171. /// <param name="cb__">Asynchronous callback invoked when the operation completes.</param>
  172. /// <param name="cookie__">Application data to store in the asynchronous result object.</param>
  173. /// <returns>An asynchronous result object.</returns>
  174. Ice.AsyncResult begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  175. /// <summary>
  176. /// 场景副本相关协议
  177. /// </summary>
  178. /// <param name="r__">The asynchronous result object for the invocation.</param>
  179. int end_createZoneRequest(Ice.AsyncResult r__);
  180. void destroyZoneRequest(string instanceId);
  181. void destroyZoneRequest(string instanceId, _System.Collections.Generic.Dictionary<string, string> ctx__);
  182. Ice.AsyncResult<BattleIce.Callback_ZoneManager_destroyZoneRequest> begin_destroyZoneRequest(string instanceId);
  183. Ice.AsyncResult<BattleIce.Callback_ZoneManager_destroyZoneRequest> begin_destroyZoneRequest(string instanceId, _System.Collections.Generic.Dictionary<string, string> ctx__);
  184. Ice.AsyncResult begin_destroyZoneRequest(string instanceId, Ice.AsyncCallback cb__, object cookie__);
  185. Ice.AsyncResult begin_destroyZoneRequest(string instanceId, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  186. void end_destroyZoneRequest(Ice.AsyncResult r__);
  187. /// <summary>
  188. /// 玩家相关协议
  189. /// </summary>
  190. void clearAllPlayersRequest();
  191. /// <summary>
  192. /// 玩家相关协议
  193. /// </summary>
  194. /// <param name="ctx__">The Context map to send with the invocation.</param>
  195. void clearAllPlayersRequest(_System.Collections.Generic.Dictionary<string, string> ctx__);
  196. /// <summary>
  197. /// 玩家相关协议
  198. /// </summary>
  199. /// <returns>An asynchronous result object.</returns>
  200. Ice.AsyncResult<BattleIce.Callback_ZoneManager_clearAllPlayersRequest> begin_clearAllPlayersRequest();
  201. /// <summary>
  202. /// 玩家相关协议
  203. /// </summary>
  204. /// <param name="ctx__">The Context map to send with the invocation.</param>
  205. /// <returns>An asynchronous result object.</returns>
  206. Ice.AsyncResult<BattleIce.Callback_ZoneManager_clearAllPlayersRequest> begin_clearAllPlayersRequest(_System.Collections.Generic.Dictionary<string, string> ctx__);
  207. /// <summary>
  208. /// 玩家相关协议
  209. /// </summary>
  210. /// <param name="cb__">Asynchronous callback invoked when the operation completes.</param>
  211. /// <param name="cookie__">Application data to store in the asynchronous result object.</param>
  212. /// <returns>An asynchronous result object.</returns>
  213. Ice.AsyncResult begin_clearAllPlayersRequest(Ice.AsyncCallback cb__, object cookie__);
  214. /// <summary>
  215. /// 玩家相关协议
  216. /// </summary>
  217. /// <param name="ctx__">The Context map to send with the invocation.</param>
  218. /// <param name="cb__">Asynchronous callback invoked when the operation completes.</param>
  219. /// <param name="cookie__">Application data to store in the asynchronous result object.</param>
  220. /// <returns>An asynchronous result object.</returns>
  221. Ice.AsyncResult begin_clearAllPlayersRequest(_System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  222. /// <summary>
  223. /// 玩家相关协议
  224. /// </summary>
  225. /// <param name="r__">The asynchronous result object for the invocation.</param>
  226. void end_clearAllPlayersRequest(Ice.AsyncResult r__);
  227. int getAllPlayerCountRequest();
  228. int getAllPlayerCountRequest(_System.Collections.Generic.Dictionary<string, string> ctx__);
  229. Ice.AsyncResult<BattleIce.Callback_ZoneManager_getAllPlayerCountRequest> begin_getAllPlayerCountRequest();
  230. Ice.AsyncResult<BattleIce.Callback_ZoneManager_getAllPlayerCountRequest> begin_getAllPlayerCountRequest(_System.Collections.Generic.Dictionary<string, string> ctx__);
  231. Ice.AsyncResult begin_getAllPlayerCountRequest(Ice.AsyncCallback cb__, object cookie__);
  232. Ice.AsyncResult begin_getAllPlayerCountRequest(_System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  233. int end_getAllPlayerCountRequest(Ice.AsyncResult r__);
  234. void playerEnterRequest(string playerId, string instanceId, string data);
  235. void playerEnterRequest(string playerId, string instanceId, string data, _System.Collections.Generic.Dictionary<string, string> ctx__);
  236. Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerEnterRequest> begin_playerEnterRequest(string playerId, string instanceId, string data);
  237. Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerEnterRequest> begin_playerEnterRequest(string playerId, string instanceId, string data, _System.Collections.Generic.Dictionary<string, string> ctx__);
  238. Ice.AsyncResult begin_playerEnterRequest(string playerId, string instanceId, string data, Ice.AsyncCallback cb__, object cookie__);
  239. Ice.AsyncResult begin_playerEnterRequest(string playerId, string instanceId, string data, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  240. void end_playerEnterRequest(Ice.AsyncResult r__);
  241. void playerLeaveRequest(string playerId, string instanceId, bool keepObject);
  242. void playerLeaveRequest(string playerId, string instanceId, bool keepObject, _System.Collections.Generic.Dictionary<string, string> ctx__);
  243. Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerLeaveRequest> begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject);
  244. Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerLeaveRequest> begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject, _System.Collections.Generic.Dictionary<string, string> ctx__);
  245. Ice.AsyncResult begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject, Ice.AsyncCallback cb__, object cookie__);
  246. Ice.AsyncResult begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  247. void end_playerLeaveRequest(Ice.AsyncResult r__);
  248. void playerNetStateChanged(string playerId, string state);
  249. void playerNetStateChanged(string playerId, string state, _System.Collections.Generic.Dictionary<string, string> ctx__);
  250. Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerNetStateChanged> begin_playerNetStateChanged(string playerId, string state);
  251. Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerNetStateChanged> begin_playerNetStateChanged(string playerId, string state, _System.Collections.Generic.Dictionary<string, string> ctx__);
  252. Ice.AsyncResult begin_playerNetStateChanged(string playerId, string state, Ice.AsyncCallback cb__, object cookie__);
  253. Ice.AsyncResult begin_playerNetStateChanged(string playerId, string state, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  254. void end_playerNetStateChanged(Ice.AsyncResult r__);
  255. string getServerState(string serverId);
  256. string getServerState(string serverId, _System.Collections.Generic.Dictionary<string, string> ctx__);
  257. Ice.AsyncResult<BattleIce.Callback_ZoneManager_getServerState> begin_getServerState(string serverId);
  258. Ice.AsyncResult<BattleIce.Callback_ZoneManager_getServerState> begin_getServerState(string serverId, _System.Collections.Generic.Dictionary<string, string> ctx__);
  259. Ice.AsyncResult begin_getServerState(string serverId, Ice.AsyncCallback cb__, object cookie__);
  260. Ice.AsyncResult begin_getServerState(string serverId, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  261. string end_getServerState(Ice.AsyncResult r__);
  262. string registerGameServer(int serverid, int crossid);
  263. string registerGameServer(int serverid, int crossid, _System.Collections.Generic.Dictionary<string, string> ctx__);
  264. Ice.AsyncResult<BattleIce.Callback_ZoneManager_registerGameServer> begin_registerGameServer(int serverid, int crossid);
  265. Ice.AsyncResult<BattleIce.Callback_ZoneManager_registerGameServer> begin_registerGameServer(int serverid, int crossid, _System.Collections.Generic.Dictionary<string, string> ctx__);
  266. Ice.AsyncResult begin_registerGameServer(int serverid, int crossid, Ice.AsyncCallback cb__, object cookie__);
  267. Ice.AsyncResult begin_registerGameServer(int serverid, int crossid, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  268. string end_registerGameServer(Ice.AsyncResult r__);
  269. int getUnitHP(string instanceId, int objectId);
  270. int getUnitHP(string instanceId, int objectId, _System.Collections.Generic.Dictionary<string, string> ctx__);
  271. Ice.AsyncResult<BattleIce.Callback_ZoneManager_getUnitHP> begin_getUnitHP(string instanceId, int objectId);
  272. Ice.AsyncResult<BattleIce.Callback_ZoneManager_getUnitHP> begin_getUnitHP(string instanceId, int objectId, _System.Collections.Generic.Dictionary<string, string> ctx__);
  273. Ice.AsyncResult begin_getUnitHP(string instanceId, int objectId, Ice.AsyncCallback cb__, object cookie__);
  274. Ice.AsyncResult begin_getUnitHP(string instanceId, int objectId, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  275. int end_getUnitHP(Ice.AsyncResult r__);
  276. }
  277. }
  278. namespace BattleIce
  279. {
  280. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  281. public interface ZoneManagerCallbackOperations_
  282. {
  283. void eventNotify(string eventType, string msg, Ice.Current current__);
  284. }
  285. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  286. public interface ZoneManagerCallbackOperationsNC_
  287. {
  288. void eventNotify(string eventType, string msg);
  289. }
  290. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  291. public interface ZoneManagerOperations_
  292. {
  293. /// <summary>
  294. /// 场景管理器相关协议
  295. /// </summary>
  296. /// <param name="current__">The Current object for the invocation.</param>
  297. int setCallback(Ice.Identity ident, string srvUUID, Ice.Current current__);
  298. /// <summary>
  299. /// 场景副本相关协议
  300. /// </summary>
  301. /// <param name="cb__">The callback object for the operation.</param>
  302. /// <param name="current__">The Current object for the invocation.</param>
  303. void createZoneRequest_async(BattleIce.AMD_ZoneManager_createZoneRequest cb__, string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, Ice.Current current__);
  304. void destroyZoneRequest_async(BattleIce.AMD_ZoneManager_destroyZoneRequest cb__, string instanceId, Ice.Current current__);
  305. /// <summary>
  306. /// 玩家相关协议
  307. /// </summary>
  308. /// <param name="cb__">The callback object for the operation.</param>
  309. /// <param name="current__">The Current object for the invocation.</param>
  310. void clearAllPlayersRequest_async(BattleIce.AMD_ZoneManager_clearAllPlayersRequest cb__, Ice.Current current__);
  311. void getAllPlayerCountRequest_async(BattleIce.AMD_ZoneManager_getAllPlayerCountRequest cb__, Ice.Current current__);
  312. void playerEnterRequest_async(BattleIce.AMD_ZoneManager_playerEnterRequest cb__, string playerId, string instanceId, string data, Ice.Current current__);
  313. void playerLeaveRequest_async(BattleIce.AMD_ZoneManager_playerLeaveRequest cb__, string playerId, string instanceId, bool keepObject, Ice.Current current__);
  314. void playerNetStateChanged_async(BattleIce.AMD_ZoneManager_playerNetStateChanged cb__, string playerId, string state, Ice.Current current__);
  315. void getServerState_async(BattleIce.AMD_ZoneManager_getServerState cb__, string serverId, Ice.Current current__);
  316. void registerGameServer_async(BattleIce.AMD_ZoneManager_registerGameServer cb__, int serverid, int crossid, Ice.Current current__);
  317. void getUnitHP_async(BattleIce.AMD_ZoneManager_getUnitHP cb__, string instanceId, int objectId, Ice.Current current__);
  318. }
  319. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  320. public interface ZoneManagerOperationsNC_
  321. {
  322. /// <summary>
  323. /// 场景管理器相关协议
  324. /// </summary>
  325. int setCallback(Ice.Identity ident, string srvUUID);
  326. /// <summary>
  327. /// 场景副本相关协议
  328. /// </summary>
  329. /// <param name="cb__">The callback object for the operation.</param>
  330. void createZoneRequest_async(BattleIce.AMD_ZoneManager_createZoneRequest cb__, string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data);
  331. void destroyZoneRequest_async(BattleIce.AMD_ZoneManager_destroyZoneRequest cb__, string instanceId);
  332. /// <summary>
  333. /// 玩家相关协议
  334. /// </summary>
  335. /// <param name="cb__">The callback object for the operation.</param>
  336. void clearAllPlayersRequest_async(BattleIce.AMD_ZoneManager_clearAllPlayersRequest cb__);
  337. void getAllPlayerCountRequest_async(BattleIce.AMD_ZoneManager_getAllPlayerCountRequest cb__);
  338. void playerEnterRequest_async(BattleIce.AMD_ZoneManager_playerEnterRequest cb__, string playerId, string instanceId, string data);
  339. void playerLeaveRequest_async(BattleIce.AMD_ZoneManager_playerLeaveRequest cb__, string playerId, string instanceId, bool keepObject);
  340. void playerNetStateChanged_async(BattleIce.AMD_ZoneManager_playerNetStateChanged cb__, string playerId, string state);
  341. void getServerState_async(BattleIce.AMD_ZoneManager_getServerState cb__, string serverId);
  342. void registerGameServer_async(BattleIce.AMD_ZoneManager_registerGameServer cb__, int serverid, int crossid);
  343. void getUnitHP_async(BattleIce.AMD_ZoneManager_getUnitHP cb__, string instanceId, int objectId);
  344. }
  345. }
  346. namespace BattleIce
  347. {
  348. [_System.Runtime.InteropServices.ComVisible(false)]
  349. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  350. public sealed class ZoneManagerCallbackPrxHelper : Ice.ObjectPrxHelperBase, ZoneManagerCallbackPrx
  351. {
  352. #region Synchronous operations
  353. public void eventNotify(string eventType, string msg)
  354. {
  355. this.eventNotify(eventType, msg, null, false);
  356. }
  357. public void eventNotify(string eventType, string msg, _System.Collections.Generic.Dictionary<string, string> ctx__)
  358. {
  359. this.eventNotify(eventType, msg, ctx__, true);
  360. }
  361. private void eventNotify(string eventType, string msg, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  362. {
  363. end_eventNotify(begin_eventNotify(eventType, msg, context__, explicitCtx__, true, null, null));
  364. }
  365. #endregion
  366. #region Asynchronous operations
  367. public Ice.AsyncResult<BattleIce.Callback_ZoneManagerCallback_eventNotify> begin_eventNotify(string eventType, string msg)
  368. {
  369. return begin_eventNotify(eventType, msg, null, false, false, null, null);
  370. }
  371. public Ice.AsyncResult<BattleIce.Callback_ZoneManagerCallback_eventNotify> begin_eventNotify(string eventType, string msg, _System.Collections.Generic.Dictionary<string, string> ctx__)
  372. {
  373. return begin_eventNotify(eventType, msg, ctx__, true, false, null, null);
  374. }
  375. public Ice.AsyncResult begin_eventNotify(string eventType, string msg, Ice.AsyncCallback cb__, object cookie__)
  376. {
  377. return begin_eventNotify(eventType, msg, null, false, false, cb__, cookie__);
  378. }
  379. public Ice.AsyncResult begin_eventNotify(string eventType, string msg, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  380. {
  381. return begin_eventNotify(eventType, msg, ctx__, true, false, cb__, cookie__);
  382. }
  383. private const string __eventNotify_name = "eventNotify";
  384. public void end_eventNotify(Ice.AsyncResult r__)
  385. {
  386. end__(r__, __eventNotify_name);
  387. }
  388. private Ice.AsyncResult<BattleIce.Callback_ZoneManagerCallback_eventNotify> begin_eventNotify(string eventType, string msg, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  389. {
  390. IceInternal.OnewayOutgoingAsync<BattleIce.Callback_ZoneManagerCallback_eventNotify> result__ = getOnewayOutgoingAsync<BattleIce.Callback_ZoneManagerCallback_eventNotify>(__eventNotify_name, eventNotify_completed__, cookie__);
  391. if(cb__ != null)
  392. {
  393. result__.whenCompletedWithAsyncCallback(cb__);
  394. }
  395. try
  396. {
  397. result__.prepare(__eventNotify_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  398. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  399. os__.writeString(eventType);
  400. os__.writeString(msg);
  401. result__.endWriteParams();
  402. result__.invoke();
  403. }
  404. catch(Ice.Exception ex__)
  405. {
  406. result__.abort(ex__);
  407. }
  408. return result__;
  409. }
  410. private void eventNotify_completed__(BattleIce.Callback_ZoneManagerCallback_eventNotify cb__)
  411. {
  412. if(cb__ != null)
  413. {
  414. cb__();
  415. }
  416. }
  417. #endregion
  418. #region Checked and unchecked cast operations
  419. public static ZoneManagerCallbackPrx checkedCast(Ice.ObjectPrx b)
  420. {
  421. if(b == null)
  422. {
  423. return null;
  424. }
  425. ZoneManagerCallbackPrx r = b as ZoneManagerCallbackPrx;
  426. if((r == null) && b.ice_isA(ice_staticId()))
  427. {
  428. ZoneManagerCallbackPrxHelper h = new ZoneManagerCallbackPrxHelper();
  429. h.copyFrom__(b);
  430. r = h;
  431. }
  432. return r;
  433. }
  434. public static ZoneManagerCallbackPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary<string, string> ctx)
  435. {
  436. if(b == null)
  437. {
  438. return null;
  439. }
  440. ZoneManagerCallbackPrx r = b as ZoneManagerCallbackPrx;
  441. if((r == null) && b.ice_isA(ice_staticId(), ctx))
  442. {
  443. ZoneManagerCallbackPrxHelper h = new ZoneManagerCallbackPrxHelper();
  444. h.copyFrom__(b);
  445. r = h;
  446. }
  447. return r;
  448. }
  449. public static ZoneManagerCallbackPrx checkedCast(Ice.ObjectPrx b, string f)
  450. {
  451. if(b == null)
  452. {
  453. return null;
  454. }
  455. Ice.ObjectPrx bb = b.ice_facet(f);
  456. try
  457. {
  458. if(bb.ice_isA(ice_staticId()))
  459. {
  460. ZoneManagerCallbackPrxHelper h = new ZoneManagerCallbackPrxHelper();
  461. h.copyFrom__(bb);
  462. return h;
  463. }
  464. }
  465. catch(Ice.FacetNotExistException)
  466. {
  467. }
  468. return null;
  469. }
  470. public static ZoneManagerCallbackPrx checkedCast(Ice.ObjectPrx b, string f, _System.Collections.Generic.Dictionary<string, string> ctx)
  471. {
  472. if(b == null)
  473. {
  474. return null;
  475. }
  476. Ice.ObjectPrx bb = b.ice_facet(f);
  477. try
  478. {
  479. if(bb.ice_isA(ice_staticId(), ctx))
  480. {
  481. ZoneManagerCallbackPrxHelper h = new ZoneManagerCallbackPrxHelper();
  482. h.copyFrom__(bb);
  483. return h;
  484. }
  485. }
  486. catch(Ice.FacetNotExistException)
  487. {
  488. }
  489. return null;
  490. }
  491. public static ZoneManagerCallbackPrx uncheckedCast(Ice.ObjectPrx b)
  492. {
  493. if(b == null)
  494. {
  495. return null;
  496. }
  497. ZoneManagerCallbackPrx r = b as ZoneManagerCallbackPrx;
  498. if(r == null)
  499. {
  500. ZoneManagerCallbackPrxHelper h = new ZoneManagerCallbackPrxHelper();
  501. h.copyFrom__(b);
  502. r = h;
  503. }
  504. return r;
  505. }
  506. public static ZoneManagerCallbackPrx uncheckedCast(Ice.ObjectPrx b, string f)
  507. {
  508. if(b == null)
  509. {
  510. return null;
  511. }
  512. Ice.ObjectPrx bb = b.ice_facet(f);
  513. ZoneManagerCallbackPrxHelper h = new ZoneManagerCallbackPrxHelper();
  514. h.copyFrom__(bb);
  515. return h;
  516. }
  517. public static readonly string[] ids__ =
  518. {
  519. "::BattleIce::ZoneManagerCallback",
  520. "::Ice::Object"
  521. };
  522. public static string ice_staticId()
  523. {
  524. return ids__[0];
  525. }
  526. #endregion
  527. #region Marshaling support
  528. public static void write__(IceInternal.BasicStream os__, ZoneManagerCallbackPrx v__)
  529. {
  530. os__.writeProxy(v__);
  531. }
  532. public static ZoneManagerCallbackPrx read__(IceInternal.BasicStream is__)
  533. {
  534. Ice.ObjectPrx proxy = is__.readProxy();
  535. if(proxy != null)
  536. {
  537. ZoneManagerCallbackPrxHelper result = new ZoneManagerCallbackPrxHelper();
  538. result.copyFrom__(proxy);
  539. return result;
  540. }
  541. return null;
  542. }
  543. #endregion
  544. }
  545. [_System.Runtime.InteropServices.ComVisible(false)]
  546. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  547. public sealed class ZoneManagerPrxHelper : Ice.ObjectPrxHelperBase, ZoneManagerPrx
  548. {
  549. #region Synchronous operations
  550. public void clearAllPlayersRequest()
  551. {
  552. this.clearAllPlayersRequest(null, false);
  553. }
  554. public void clearAllPlayersRequest(_System.Collections.Generic.Dictionary<string, string> ctx__)
  555. {
  556. this.clearAllPlayersRequest(ctx__, true);
  557. }
  558. private void clearAllPlayersRequest(_System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  559. {
  560. end_clearAllPlayersRequest(begin_clearAllPlayersRequest(context__, explicitCtx__, true, null, null));
  561. }
  562. public int createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data)
  563. {
  564. return this.createZoneRequest(playerId, gameServerId, mapTemplateId, instanceId, force, data, null, false);
  565. }
  566. public int createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, _System.Collections.Generic.Dictionary<string, string> ctx__)
  567. {
  568. return this.createZoneRequest(playerId, gameServerId, mapTemplateId, instanceId, force, data, ctx__, true);
  569. }
  570. private int createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  571. {
  572. checkTwowayOnly__(__createZoneRequest_name);
  573. return end_createZoneRequest(begin_createZoneRequest(playerId, gameServerId, mapTemplateId, instanceId, force, data, context__, explicitCtx__, true, null, null));
  574. }
  575. public void destroyZoneRequest(string instanceId)
  576. {
  577. this.destroyZoneRequest(instanceId, null, false);
  578. }
  579. public void destroyZoneRequest(string instanceId, _System.Collections.Generic.Dictionary<string, string> ctx__)
  580. {
  581. this.destroyZoneRequest(instanceId, ctx__, true);
  582. }
  583. private void destroyZoneRequest(string instanceId, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  584. {
  585. end_destroyZoneRequest(begin_destroyZoneRequest(instanceId, context__, explicitCtx__, true, null, null));
  586. }
  587. public int getAllPlayerCountRequest()
  588. {
  589. return this.getAllPlayerCountRequest(null, false);
  590. }
  591. public int getAllPlayerCountRequest(_System.Collections.Generic.Dictionary<string, string> ctx__)
  592. {
  593. return this.getAllPlayerCountRequest(ctx__, true);
  594. }
  595. private int getAllPlayerCountRequest(_System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  596. {
  597. checkTwowayOnly__(__getAllPlayerCountRequest_name);
  598. return end_getAllPlayerCountRequest(begin_getAllPlayerCountRequest(context__, explicitCtx__, true, null, null));
  599. }
  600. public string getServerState(string serverId)
  601. {
  602. return this.getServerState(serverId, null, false);
  603. }
  604. public string getServerState(string serverId, _System.Collections.Generic.Dictionary<string, string> ctx__)
  605. {
  606. return this.getServerState(serverId, ctx__, true);
  607. }
  608. private string getServerState(string serverId, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  609. {
  610. checkTwowayOnly__(__getServerState_name);
  611. return end_getServerState(begin_getServerState(serverId, context__, explicitCtx__, true, null, null));
  612. }
  613. public int getUnitHP(string instanceId, int objectId)
  614. {
  615. return this.getUnitHP(instanceId, objectId, null, false);
  616. }
  617. public int getUnitHP(string instanceId, int objectId, _System.Collections.Generic.Dictionary<string, string> ctx__)
  618. {
  619. return this.getUnitHP(instanceId, objectId, ctx__, true);
  620. }
  621. private int getUnitHP(string instanceId, int objectId, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  622. {
  623. checkTwowayOnly__(__getUnitHP_name);
  624. return end_getUnitHP(begin_getUnitHP(instanceId, objectId, context__, explicitCtx__, true, null, null));
  625. }
  626. public void playerEnterRequest(string playerId, string instanceId, string data)
  627. {
  628. this.playerEnterRequest(playerId, instanceId, data, null, false);
  629. }
  630. public void playerEnterRequest(string playerId, string instanceId, string data, _System.Collections.Generic.Dictionary<string, string> ctx__)
  631. {
  632. this.playerEnterRequest(playerId, instanceId, data, ctx__, true);
  633. }
  634. private void playerEnterRequest(string playerId, string instanceId, string data, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  635. {
  636. end_playerEnterRequest(begin_playerEnterRequest(playerId, instanceId, data, context__, explicitCtx__, true, null, null));
  637. }
  638. public void playerLeaveRequest(string playerId, string instanceId, bool keepObject)
  639. {
  640. this.playerLeaveRequest(playerId, instanceId, keepObject, null, false);
  641. }
  642. public void playerLeaveRequest(string playerId, string instanceId, bool keepObject, _System.Collections.Generic.Dictionary<string, string> ctx__)
  643. {
  644. this.playerLeaveRequest(playerId, instanceId, keepObject, ctx__, true);
  645. }
  646. private void playerLeaveRequest(string playerId, string instanceId, bool keepObject, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  647. {
  648. end_playerLeaveRequest(begin_playerLeaveRequest(playerId, instanceId, keepObject, context__, explicitCtx__, true, null, null));
  649. }
  650. public void playerNetStateChanged(string playerId, string state)
  651. {
  652. this.playerNetStateChanged(playerId, state, null, false);
  653. }
  654. public void playerNetStateChanged(string playerId, string state, _System.Collections.Generic.Dictionary<string, string> ctx__)
  655. {
  656. this.playerNetStateChanged(playerId, state, ctx__, true);
  657. }
  658. private void playerNetStateChanged(string playerId, string state, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  659. {
  660. end_playerNetStateChanged(begin_playerNetStateChanged(playerId, state, context__, explicitCtx__, true, null, null));
  661. }
  662. public string registerGameServer(int serverid, int crossid)
  663. {
  664. return this.registerGameServer(serverid, crossid, null, false);
  665. }
  666. public string registerGameServer(int serverid, int crossid, _System.Collections.Generic.Dictionary<string, string> ctx__)
  667. {
  668. return this.registerGameServer(serverid, crossid, ctx__, true);
  669. }
  670. private string registerGameServer(int serverid, int crossid, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  671. {
  672. checkTwowayOnly__(__registerGameServer_name);
  673. return end_registerGameServer(begin_registerGameServer(serverid, crossid, context__, explicitCtx__, true, null, null));
  674. }
  675. public int setCallback(Ice.Identity ident, string srvUUID)
  676. {
  677. return this.setCallback(ident, srvUUID, null, false);
  678. }
  679. public int setCallback(Ice.Identity ident, string srvUUID, _System.Collections.Generic.Dictionary<string, string> ctx__)
  680. {
  681. return this.setCallback(ident, srvUUID, ctx__, true);
  682. }
  683. private int setCallback(Ice.Identity ident, string srvUUID, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitCtx__)
  684. {
  685. checkTwowayOnly__(__setCallback_name);
  686. return end_setCallback(begin_setCallback(ident, srvUUID, context__, explicitCtx__, true, null, null));
  687. }
  688. #endregion
  689. #region Asynchronous operations
  690. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_clearAllPlayersRequest> begin_clearAllPlayersRequest()
  691. {
  692. return begin_clearAllPlayersRequest(null, false, false, null, null);
  693. }
  694. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_clearAllPlayersRequest> begin_clearAllPlayersRequest(_System.Collections.Generic.Dictionary<string, string> ctx__)
  695. {
  696. return begin_clearAllPlayersRequest(ctx__, true, false, null, null);
  697. }
  698. public Ice.AsyncResult begin_clearAllPlayersRequest(Ice.AsyncCallback cb__, object cookie__)
  699. {
  700. return begin_clearAllPlayersRequest(null, false, false, cb__, cookie__);
  701. }
  702. public Ice.AsyncResult begin_clearAllPlayersRequest(_System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  703. {
  704. return begin_clearAllPlayersRequest(ctx__, true, false, cb__, cookie__);
  705. }
  706. private const string __clearAllPlayersRequest_name = "clearAllPlayersRequest";
  707. public void end_clearAllPlayersRequest(Ice.AsyncResult r__)
  708. {
  709. end__(r__, __clearAllPlayersRequest_name);
  710. }
  711. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_clearAllPlayersRequest> begin_clearAllPlayersRequest(_System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  712. {
  713. IceInternal.OnewayOutgoingAsync<BattleIce.Callback_ZoneManager_clearAllPlayersRequest> result__ = getOnewayOutgoingAsync<BattleIce.Callback_ZoneManager_clearAllPlayersRequest>(__clearAllPlayersRequest_name, clearAllPlayersRequest_completed__, cookie__);
  714. if(cb__ != null)
  715. {
  716. result__.whenCompletedWithAsyncCallback(cb__);
  717. }
  718. try
  719. {
  720. result__.prepare(__clearAllPlayersRequest_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  721. result__.writeEmptyParams();
  722. result__.invoke();
  723. }
  724. catch(Ice.Exception ex__)
  725. {
  726. result__.abort(ex__);
  727. }
  728. return result__;
  729. }
  730. private void clearAllPlayersRequest_completed__(BattleIce.Callback_ZoneManager_clearAllPlayersRequest cb__)
  731. {
  732. if(cb__ != null)
  733. {
  734. cb__();
  735. }
  736. }
  737. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_createZoneRequest> begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data)
  738. {
  739. return begin_createZoneRequest(playerId, gameServerId, mapTemplateId, instanceId, force, data, null, false, false, null, null);
  740. }
  741. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_createZoneRequest> begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, _System.Collections.Generic.Dictionary<string, string> ctx__)
  742. {
  743. return begin_createZoneRequest(playerId, gameServerId, mapTemplateId, instanceId, force, data, ctx__, true, false, null, null);
  744. }
  745. public Ice.AsyncResult begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, Ice.AsyncCallback cb__, object cookie__)
  746. {
  747. return begin_createZoneRequest(playerId, gameServerId, mapTemplateId, instanceId, force, data, null, false, false, cb__, cookie__);
  748. }
  749. public Ice.AsyncResult begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  750. {
  751. return begin_createZoneRequest(playerId, gameServerId, mapTemplateId, instanceId, force, data, ctx__, true, false, cb__, cookie__);
  752. }
  753. private const string __createZoneRequest_name = "createZoneRequest";
  754. public int end_createZoneRequest(Ice.AsyncResult r__)
  755. {
  756. IceInternal.OutgoingAsync outAsync__ = IceInternal.OutgoingAsync.check(r__, this, __createZoneRequest_name);
  757. try
  758. {
  759. if(!outAsync__.wait())
  760. {
  761. try
  762. {
  763. outAsync__.throwUserException();
  764. }
  765. catch(Ice.UserException ex__)
  766. {
  767. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  768. }
  769. }
  770. int ret__;
  771. IceInternal.BasicStream is__ = outAsync__.startReadParams();
  772. ret__ = is__.readInt();
  773. outAsync__.endReadParams();
  774. return ret__;
  775. }
  776. finally
  777. {
  778. outAsync__.cacheMessageBuffers();
  779. }
  780. }
  781. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_createZoneRequest> begin_createZoneRequest(string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  782. {
  783. checkAsyncTwowayOnly__(__createZoneRequest_name);
  784. IceInternal.TwowayOutgoingAsync<BattleIce.Callback_ZoneManager_createZoneRequest> result__ = getTwowayOutgoingAsync<BattleIce.Callback_ZoneManager_createZoneRequest>(__createZoneRequest_name, createZoneRequest_completed__, cookie__);
  785. if(cb__ != null)
  786. {
  787. result__.whenCompletedWithAsyncCallback(cb__);
  788. }
  789. try
  790. {
  791. result__.prepare(__createZoneRequest_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  792. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  793. os__.writeString(playerId);
  794. os__.writeString(gameServerId);
  795. os__.writeInt(mapTemplateId);
  796. os__.writeString(instanceId);
  797. os__.writeBool(force);
  798. os__.writeString(data);
  799. result__.endWriteParams();
  800. result__.invoke();
  801. }
  802. catch(Ice.Exception ex__)
  803. {
  804. result__.abort(ex__);
  805. }
  806. return result__;
  807. }
  808. private void createZoneRequest_completed__(Ice.AsyncResult r__, BattleIce.Callback_ZoneManager_createZoneRequest cb__, Ice.ExceptionCallback excb__)
  809. {
  810. int ret__;
  811. try
  812. {
  813. ret__ = end_createZoneRequest(r__);
  814. }
  815. catch(Ice.Exception ex__)
  816. {
  817. if(excb__ != null)
  818. {
  819. excb__(ex__);
  820. }
  821. return;
  822. }
  823. if(cb__ != null)
  824. {
  825. cb__(ret__);
  826. }
  827. }
  828. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_destroyZoneRequest> begin_destroyZoneRequest(string instanceId)
  829. {
  830. return begin_destroyZoneRequest(instanceId, null, false, false, null, null);
  831. }
  832. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_destroyZoneRequest> begin_destroyZoneRequest(string instanceId, _System.Collections.Generic.Dictionary<string, string> ctx__)
  833. {
  834. return begin_destroyZoneRequest(instanceId, ctx__, true, false, null, null);
  835. }
  836. public Ice.AsyncResult begin_destroyZoneRequest(string instanceId, Ice.AsyncCallback cb__, object cookie__)
  837. {
  838. return begin_destroyZoneRequest(instanceId, null, false, false, cb__, cookie__);
  839. }
  840. public Ice.AsyncResult begin_destroyZoneRequest(string instanceId, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  841. {
  842. return begin_destroyZoneRequest(instanceId, ctx__, true, false, cb__, cookie__);
  843. }
  844. private const string __destroyZoneRequest_name = "destroyZoneRequest";
  845. public void end_destroyZoneRequest(Ice.AsyncResult r__)
  846. {
  847. end__(r__, __destroyZoneRequest_name);
  848. }
  849. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_destroyZoneRequest> begin_destroyZoneRequest(string instanceId, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  850. {
  851. IceInternal.OnewayOutgoingAsync<BattleIce.Callback_ZoneManager_destroyZoneRequest> result__ = getOnewayOutgoingAsync<BattleIce.Callback_ZoneManager_destroyZoneRequest>(__destroyZoneRequest_name, destroyZoneRequest_completed__, cookie__);
  852. if(cb__ != null)
  853. {
  854. result__.whenCompletedWithAsyncCallback(cb__);
  855. }
  856. try
  857. {
  858. result__.prepare(__destroyZoneRequest_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  859. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  860. os__.writeString(instanceId);
  861. result__.endWriteParams();
  862. result__.invoke();
  863. }
  864. catch(Ice.Exception ex__)
  865. {
  866. result__.abort(ex__);
  867. }
  868. return result__;
  869. }
  870. private void destroyZoneRequest_completed__(BattleIce.Callback_ZoneManager_destroyZoneRequest cb__)
  871. {
  872. if(cb__ != null)
  873. {
  874. cb__();
  875. }
  876. }
  877. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_getAllPlayerCountRequest> begin_getAllPlayerCountRequest()
  878. {
  879. return begin_getAllPlayerCountRequest(null, false, false, null, null);
  880. }
  881. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_getAllPlayerCountRequest> begin_getAllPlayerCountRequest(_System.Collections.Generic.Dictionary<string, string> ctx__)
  882. {
  883. return begin_getAllPlayerCountRequest(ctx__, true, false, null, null);
  884. }
  885. public Ice.AsyncResult begin_getAllPlayerCountRequest(Ice.AsyncCallback cb__, object cookie__)
  886. {
  887. return begin_getAllPlayerCountRequest(null, false, false, cb__, cookie__);
  888. }
  889. public Ice.AsyncResult begin_getAllPlayerCountRequest(_System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  890. {
  891. return begin_getAllPlayerCountRequest(ctx__, true, false, cb__, cookie__);
  892. }
  893. private const string __getAllPlayerCountRequest_name = "getAllPlayerCountRequest";
  894. public int end_getAllPlayerCountRequest(Ice.AsyncResult r__)
  895. {
  896. IceInternal.OutgoingAsync outAsync__ = IceInternal.OutgoingAsync.check(r__, this, __getAllPlayerCountRequest_name);
  897. try
  898. {
  899. if(!outAsync__.wait())
  900. {
  901. try
  902. {
  903. outAsync__.throwUserException();
  904. }
  905. catch(Ice.UserException ex__)
  906. {
  907. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  908. }
  909. }
  910. int ret__;
  911. IceInternal.BasicStream is__ = outAsync__.startReadParams();
  912. ret__ = is__.readInt();
  913. outAsync__.endReadParams();
  914. return ret__;
  915. }
  916. finally
  917. {
  918. outAsync__.cacheMessageBuffers();
  919. }
  920. }
  921. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_getAllPlayerCountRequest> begin_getAllPlayerCountRequest(_System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  922. {
  923. checkAsyncTwowayOnly__(__getAllPlayerCountRequest_name);
  924. IceInternal.TwowayOutgoingAsync<BattleIce.Callback_ZoneManager_getAllPlayerCountRequest> result__ = getTwowayOutgoingAsync<BattleIce.Callback_ZoneManager_getAllPlayerCountRequest>(__getAllPlayerCountRequest_name, getAllPlayerCountRequest_completed__, cookie__);
  925. if(cb__ != null)
  926. {
  927. result__.whenCompletedWithAsyncCallback(cb__);
  928. }
  929. try
  930. {
  931. result__.prepare(__getAllPlayerCountRequest_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  932. result__.writeEmptyParams();
  933. result__.invoke();
  934. }
  935. catch(Ice.Exception ex__)
  936. {
  937. result__.abort(ex__);
  938. }
  939. return result__;
  940. }
  941. private void getAllPlayerCountRequest_completed__(Ice.AsyncResult r__, BattleIce.Callback_ZoneManager_getAllPlayerCountRequest cb__, Ice.ExceptionCallback excb__)
  942. {
  943. int ret__;
  944. try
  945. {
  946. ret__ = end_getAllPlayerCountRequest(r__);
  947. }
  948. catch(Ice.Exception ex__)
  949. {
  950. if(excb__ != null)
  951. {
  952. excb__(ex__);
  953. }
  954. return;
  955. }
  956. if(cb__ != null)
  957. {
  958. cb__(ret__);
  959. }
  960. }
  961. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_getServerState> begin_getServerState(string serverId)
  962. {
  963. return begin_getServerState(serverId, null, false, false, null, null);
  964. }
  965. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_getServerState> begin_getServerState(string serverId, _System.Collections.Generic.Dictionary<string, string> ctx__)
  966. {
  967. return begin_getServerState(serverId, ctx__, true, false, null, null);
  968. }
  969. public Ice.AsyncResult begin_getServerState(string serverId, Ice.AsyncCallback cb__, object cookie__)
  970. {
  971. return begin_getServerState(serverId, null, false, false, cb__, cookie__);
  972. }
  973. public Ice.AsyncResult begin_getServerState(string serverId, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  974. {
  975. return begin_getServerState(serverId, ctx__, true, false, cb__, cookie__);
  976. }
  977. private const string __getServerState_name = "getServerState";
  978. public string end_getServerState(Ice.AsyncResult r__)
  979. {
  980. IceInternal.OutgoingAsync outAsync__ = IceInternal.OutgoingAsync.check(r__, this, __getServerState_name);
  981. try
  982. {
  983. if(!outAsync__.wait())
  984. {
  985. try
  986. {
  987. outAsync__.throwUserException();
  988. }
  989. catch(Ice.UserException ex__)
  990. {
  991. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  992. }
  993. }
  994. string ret__;
  995. IceInternal.BasicStream is__ = outAsync__.startReadParams();
  996. ret__ = is__.readString();
  997. outAsync__.endReadParams();
  998. return ret__;
  999. }
  1000. finally
  1001. {
  1002. outAsync__.cacheMessageBuffers();
  1003. }
  1004. }
  1005. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_getServerState> begin_getServerState(string serverId, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  1006. {
  1007. checkAsyncTwowayOnly__(__getServerState_name);
  1008. IceInternal.TwowayOutgoingAsync<BattleIce.Callback_ZoneManager_getServerState> result__ = getTwowayOutgoingAsync<BattleIce.Callback_ZoneManager_getServerState>(__getServerState_name, getServerState_completed__, cookie__);
  1009. if(cb__ != null)
  1010. {
  1011. result__.whenCompletedWithAsyncCallback(cb__);
  1012. }
  1013. try
  1014. {
  1015. result__.prepare(__getServerState_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  1016. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  1017. os__.writeString(serverId);
  1018. result__.endWriteParams();
  1019. result__.invoke();
  1020. }
  1021. catch(Ice.Exception ex__)
  1022. {
  1023. result__.abort(ex__);
  1024. }
  1025. return result__;
  1026. }
  1027. private void getServerState_completed__(Ice.AsyncResult r__, BattleIce.Callback_ZoneManager_getServerState cb__, Ice.ExceptionCallback excb__)
  1028. {
  1029. string ret__;
  1030. try
  1031. {
  1032. ret__ = end_getServerState(r__);
  1033. }
  1034. catch(Ice.Exception ex__)
  1035. {
  1036. if(excb__ != null)
  1037. {
  1038. excb__(ex__);
  1039. }
  1040. return;
  1041. }
  1042. if(cb__ != null)
  1043. {
  1044. cb__(ret__);
  1045. }
  1046. }
  1047. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_getUnitHP> begin_getUnitHP(string instanceId, int objectId)
  1048. {
  1049. return begin_getUnitHP(instanceId, objectId, null, false, false, null, null);
  1050. }
  1051. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_getUnitHP> begin_getUnitHP(string instanceId, int objectId, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1052. {
  1053. return begin_getUnitHP(instanceId, objectId, ctx__, true, false, null, null);
  1054. }
  1055. public Ice.AsyncResult begin_getUnitHP(string instanceId, int objectId, Ice.AsyncCallback cb__, object cookie__)
  1056. {
  1057. return begin_getUnitHP(instanceId, objectId, null, false, false, cb__, cookie__);
  1058. }
  1059. public Ice.AsyncResult begin_getUnitHP(string instanceId, int objectId, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1060. {
  1061. return begin_getUnitHP(instanceId, objectId, ctx__, true, false, cb__, cookie__);
  1062. }
  1063. private const string __getUnitHP_name = "getUnitHP";
  1064. public int end_getUnitHP(Ice.AsyncResult r__)
  1065. {
  1066. IceInternal.OutgoingAsync outAsync__ = IceInternal.OutgoingAsync.check(r__, this, __getUnitHP_name);
  1067. try
  1068. {
  1069. if(!outAsync__.wait())
  1070. {
  1071. try
  1072. {
  1073. outAsync__.throwUserException();
  1074. }
  1075. catch(Ice.UserException ex__)
  1076. {
  1077. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  1078. }
  1079. }
  1080. int ret__;
  1081. IceInternal.BasicStream is__ = outAsync__.startReadParams();
  1082. ret__ = is__.readInt();
  1083. outAsync__.endReadParams();
  1084. return ret__;
  1085. }
  1086. finally
  1087. {
  1088. outAsync__.cacheMessageBuffers();
  1089. }
  1090. }
  1091. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_getUnitHP> begin_getUnitHP(string instanceId, int objectId, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  1092. {
  1093. checkAsyncTwowayOnly__(__getUnitHP_name);
  1094. IceInternal.TwowayOutgoingAsync<BattleIce.Callback_ZoneManager_getUnitHP> result__ = getTwowayOutgoingAsync<BattleIce.Callback_ZoneManager_getUnitHP>(__getUnitHP_name, getUnitHP_completed__, cookie__);
  1095. if(cb__ != null)
  1096. {
  1097. result__.whenCompletedWithAsyncCallback(cb__);
  1098. }
  1099. try
  1100. {
  1101. result__.prepare(__getUnitHP_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  1102. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  1103. os__.writeString(instanceId);
  1104. os__.writeInt(objectId);
  1105. result__.endWriteParams();
  1106. result__.invoke();
  1107. }
  1108. catch(Ice.Exception ex__)
  1109. {
  1110. result__.abort(ex__);
  1111. }
  1112. return result__;
  1113. }
  1114. private void getUnitHP_completed__(Ice.AsyncResult r__, BattleIce.Callback_ZoneManager_getUnitHP cb__, Ice.ExceptionCallback excb__)
  1115. {
  1116. int ret__;
  1117. try
  1118. {
  1119. ret__ = end_getUnitHP(r__);
  1120. }
  1121. catch(Ice.Exception ex__)
  1122. {
  1123. if(excb__ != null)
  1124. {
  1125. excb__(ex__);
  1126. }
  1127. return;
  1128. }
  1129. if(cb__ != null)
  1130. {
  1131. cb__(ret__);
  1132. }
  1133. }
  1134. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerEnterRequest> begin_playerEnterRequest(string playerId, string instanceId, string data)
  1135. {
  1136. return begin_playerEnterRequest(playerId, instanceId, data, null, false, false, null, null);
  1137. }
  1138. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerEnterRequest> begin_playerEnterRequest(string playerId, string instanceId, string data, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1139. {
  1140. return begin_playerEnterRequest(playerId, instanceId, data, ctx__, true, false, null, null);
  1141. }
  1142. public Ice.AsyncResult begin_playerEnterRequest(string playerId, string instanceId, string data, Ice.AsyncCallback cb__, object cookie__)
  1143. {
  1144. return begin_playerEnterRequest(playerId, instanceId, data, null, false, false, cb__, cookie__);
  1145. }
  1146. public Ice.AsyncResult begin_playerEnterRequest(string playerId, string instanceId, string data, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1147. {
  1148. return begin_playerEnterRequest(playerId, instanceId, data, ctx__, true, false, cb__, cookie__);
  1149. }
  1150. private const string __playerEnterRequest_name = "playerEnterRequest";
  1151. public void end_playerEnterRequest(Ice.AsyncResult r__)
  1152. {
  1153. end__(r__, __playerEnterRequest_name);
  1154. }
  1155. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerEnterRequest> begin_playerEnterRequest(string playerId, string instanceId, string data, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  1156. {
  1157. IceInternal.OnewayOutgoingAsync<BattleIce.Callback_ZoneManager_playerEnterRequest> result__ = getOnewayOutgoingAsync<BattleIce.Callback_ZoneManager_playerEnterRequest>(__playerEnterRequest_name, playerEnterRequest_completed__, cookie__);
  1158. if(cb__ != null)
  1159. {
  1160. result__.whenCompletedWithAsyncCallback(cb__);
  1161. }
  1162. try
  1163. {
  1164. result__.prepare(__playerEnterRequest_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  1165. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  1166. os__.writeString(playerId);
  1167. os__.writeString(instanceId);
  1168. os__.writeString(data);
  1169. result__.endWriteParams();
  1170. result__.invoke();
  1171. }
  1172. catch(Ice.Exception ex__)
  1173. {
  1174. result__.abort(ex__);
  1175. }
  1176. return result__;
  1177. }
  1178. private void playerEnterRequest_completed__(BattleIce.Callback_ZoneManager_playerEnterRequest cb__)
  1179. {
  1180. if(cb__ != null)
  1181. {
  1182. cb__();
  1183. }
  1184. }
  1185. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerLeaveRequest> begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject)
  1186. {
  1187. return begin_playerLeaveRequest(playerId, instanceId, keepObject, null, false, false, null, null);
  1188. }
  1189. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerLeaveRequest> begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1190. {
  1191. return begin_playerLeaveRequest(playerId, instanceId, keepObject, ctx__, true, false, null, null);
  1192. }
  1193. public Ice.AsyncResult begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject, Ice.AsyncCallback cb__, object cookie__)
  1194. {
  1195. return begin_playerLeaveRequest(playerId, instanceId, keepObject, null, false, false, cb__, cookie__);
  1196. }
  1197. public Ice.AsyncResult begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1198. {
  1199. return begin_playerLeaveRequest(playerId, instanceId, keepObject, ctx__, true, false, cb__, cookie__);
  1200. }
  1201. private const string __playerLeaveRequest_name = "playerLeaveRequest";
  1202. public void end_playerLeaveRequest(Ice.AsyncResult r__)
  1203. {
  1204. end__(r__, __playerLeaveRequest_name);
  1205. }
  1206. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerLeaveRequest> begin_playerLeaveRequest(string playerId, string instanceId, bool keepObject, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  1207. {
  1208. IceInternal.OnewayOutgoingAsync<BattleIce.Callback_ZoneManager_playerLeaveRequest> result__ = getOnewayOutgoingAsync<BattleIce.Callback_ZoneManager_playerLeaveRequest>(__playerLeaveRequest_name, playerLeaveRequest_completed__, cookie__);
  1209. if(cb__ != null)
  1210. {
  1211. result__.whenCompletedWithAsyncCallback(cb__);
  1212. }
  1213. try
  1214. {
  1215. result__.prepare(__playerLeaveRequest_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  1216. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  1217. os__.writeString(playerId);
  1218. os__.writeString(instanceId);
  1219. os__.writeBool(keepObject);
  1220. result__.endWriteParams();
  1221. result__.invoke();
  1222. }
  1223. catch(Ice.Exception ex__)
  1224. {
  1225. result__.abort(ex__);
  1226. }
  1227. return result__;
  1228. }
  1229. private void playerLeaveRequest_completed__(BattleIce.Callback_ZoneManager_playerLeaveRequest cb__)
  1230. {
  1231. if(cb__ != null)
  1232. {
  1233. cb__();
  1234. }
  1235. }
  1236. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerNetStateChanged> begin_playerNetStateChanged(string playerId, string state)
  1237. {
  1238. return begin_playerNetStateChanged(playerId, state, null, false, false, null, null);
  1239. }
  1240. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerNetStateChanged> begin_playerNetStateChanged(string playerId, string state, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1241. {
  1242. return begin_playerNetStateChanged(playerId, state, ctx__, true, false, null, null);
  1243. }
  1244. public Ice.AsyncResult begin_playerNetStateChanged(string playerId, string state, Ice.AsyncCallback cb__, object cookie__)
  1245. {
  1246. return begin_playerNetStateChanged(playerId, state, null, false, false, cb__, cookie__);
  1247. }
  1248. public Ice.AsyncResult begin_playerNetStateChanged(string playerId, string state, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1249. {
  1250. return begin_playerNetStateChanged(playerId, state, ctx__, true, false, cb__, cookie__);
  1251. }
  1252. private const string __playerNetStateChanged_name = "playerNetStateChanged";
  1253. public void end_playerNetStateChanged(Ice.AsyncResult r__)
  1254. {
  1255. end__(r__, __playerNetStateChanged_name);
  1256. }
  1257. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_playerNetStateChanged> begin_playerNetStateChanged(string playerId, string state, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  1258. {
  1259. IceInternal.OnewayOutgoingAsync<BattleIce.Callback_ZoneManager_playerNetStateChanged> result__ = getOnewayOutgoingAsync<BattleIce.Callback_ZoneManager_playerNetStateChanged>(__playerNetStateChanged_name, playerNetStateChanged_completed__, cookie__);
  1260. if(cb__ != null)
  1261. {
  1262. result__.whenCompletedWithAsyncCallback(cb__);
  1263. }
  1264. try
  1265. {
  1266. result__.prepare(__playerNetStateChanged_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  1267. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  1268. os__.writeString(playerId);
  1269. os__.writeString(state);
  1270. result__.endWriteParams();
  1271. result__.invoke();
  1272. }
  1273. catch(Ice.Exception ex__)
  1274. {
  1275. result__.abort(ex__);
  1276. }
  1277. return result__;
  1278. }
  1279. private void playerNetStateChanged_completed__(BattleIce.Callback_ZoneManager_playerNetStateChanged cb__)
  1280. {
  1281. if(cb__ != null)
  1282. {
  1283. cb__();
  1284. }
  1285. }
  1286. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_registerGameServer> begin_registerGameServer(int serverid, int crossid)
  1287. {
  1288. return begin_registerGameServer(serverid, crossid, null, false, false, null, null);
  1289. }
  1290. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_registerGameServer> begin_registerGameServer(int serverid, int crossid, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1291. {
  1292. return begin_registerGameServer(serverid, crossid, ctx__, true, false, null, null);
  1293. }
  1294. public Ice.AsyncResult begin_registerGameServer(int serverid, int crossid, Ice.AsyncCallback cb__, object cookie__)
  1295. {
  1296. return begin_registerGameServer(serverid, crossid, null, false, false, cb__, cookie__);
  1297. }
  1298. public Ice.AsyncResult begin_registerGameServer(int serverid, int crossid, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1299. {
  1300. return begin_registerGameServer(serverid, crossid, ctx__, true, false, cb__, cookie__);
  1301. }
  1302. private const string __registerGameServer_name = "registerGameServer";
  1303. public string end_registerGameServer(Ice.AsyncResult r__)
  1304. {
  1305. IceInternal.OutgoingAsync outAsync__ = IceInternal.OutgoingAsync.check(r__, this, __registerGameServer_name);
  1306. try
  1307. {
  1308. if(!outAsync__.wait())
  1309. {
  1310. try
  1311. {
  1312. outAsync__.throwUserException();
  1313. }
  1314. catch(Ice.UserException ex__)
  1315. {
  1316. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  1317. }
  1318. }
  1319. string ret__;
  1320. IceInternal.BasicStream is__ = outAsync__.startReadParams();
  1321. ret__ = is__.readString();
  1322. outAsync__.endReadParams();
  1323. return ret__;
  1324. }
  1325. finally
  1326. {
  1327. outAsync__.cacheMessageBuffers();
  1328. }
  1329. }
  1330. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_registerGameServer> begin_registerGameServer(int serverid, int crossid, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  1331. {
  1332. checkAsyncTwowayOnly__(__registerGameServer_name);
  1333. IceInternal.TwowayOutgoingAsync<BattleIce.Callback_ZoneManager_registerGameServer> result__ = getTwowayOutgoingAsync<BattleIce.Callback_ZoneManager_registerGameServer>(__registerGameServer_name, registerGameServer_completed__, cookie__);
  1334. if(cb__ != null)
  1335. {
  1336. result__.whenCompletedWithAsyncCallback(cb__);
  1337. }
  1338. try
  1339. {
  1340. result__.prepare(__registerGameServer_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  1341. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  1342. os__.writeInt(serverid);
  1343. os__.writeInt(crossid);
  1344. result__.endWriteParams();
  1345. result__.invoke();
  1346. }
  1347. catch(Ice.Exception ex__)
  1348. {
  1349. result__.abort(ex__);
  1350. }
  1351. return result__;
  1352. }
  1353. private void registerGameServer_completed__(Ice.AsyncResult r__, BattleIce.Callback_ZoneManager_registerGameServer cb__, Ice.ExceptionCallback excb__)
  1354. {
  1355. string ret__;
  1356. try
  1357. {
  1358. ret__ = end_registerGameServer(r__);
  1359. }
  1360. catch(Ice.Exception ex__)
  1361. {
  1362. if(excb__ != null)
  1363. {
  1364. excb__(ex__);
  1365. }
  1366. return;
  1367. }
  1368. if(cb__ != null)
  1369. {
  1370. cb__(ret__);
  1371. }
  1372. }
  1373. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_setCallback> begin_setCallback(Ice.Identity ident, string srvUUID)
  1374. {
  1375. return begin_setCallback(ident, srvUUID, null, false, false, null, null);
  1376. }
  1377. public Ice.AsyncResult<BattleIce.Callback_ZoneManager_setCallback> begin_setCallback(Ice.Identity ident, string srvUUID, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1378. {
  1379. return begin_setCallback(ident, srvUUID, ctx__, true, false, null, null);
  1380. }
  1381. public Ice.AsyncResult begin_setCallback(Ice.Identity ident, string srvUUID, Ice.AsyncCallback cb__, object cookie__)
  1382. {
  1383. return begin_setCallback(ident, srvUUID, null, false, false, cb__, cookie__);
  1384. }
  1385. public Ice.AsyncResult begin_setCallback(Ice.Identity ident, string srvUUID, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1386. {
  1387. return begin_setCallback(ident, srvUUID, ctx__, true, false, cb__, cookie__);
  1388. }
  1389. private const string __setCallback_name = "setCallback";
  1390. public int end_setCallback(Ice.AsyncResult r__)
  1391. {
  1392. IceInternal.OutgoingAsync outAsync__ = IceInternal.OutgoingAsync.check(r__, this, __setCallback_name);
  1393. try
  1394. {
  1395. if(!outAsync__.wait())
  1396. {
  1397. try
  1398. {
  1399. outAsync__.throwUserException();
  1400. }
  1401. catch(Ice.UserException ex__)
  1402. {
  1403. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  1404. }
  1405. }
  1406. int ret__;
  1407. IceInternal.BasicStream is__ = outAsync__.startReadParams();
  1408. ret__ = is__.readInt();
  1409. outAsync__.endReadParams();
  1410. return ret__;
  1411. }
  1412. finally
  1413. {
  1414. outAsync__.cacheMessageBuffers();
  1415. }
  1416. }
  1417. private Ice.AsyncResult<BattleIce.Callback_ZoneManager_setCallback> begin_setCallback(Ice.Identity ident, string srvUUID, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
  1418. {
  1419. checkAsyncTwowayOnly__(__setCallback_name);
  1420. IceInternal.TwowayOutgoingAsync<BattleIce.Callback_ZoneManager_setCallback> result__ = getTwowayOutgoingAsync<BattleIce.Callback_ZoneManager_setCallback>(__setCallback_name, setCallback_completed__, cookie__);
  1421. if(cb__ != null)
  1422. {
  1423. result__.whenCompletedWithAsyncCallback(cb__);
  1424. }
  1425. try
  1426. {
  1427. result__.prepare(__setCallback_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
  1428. IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
  1429. Ice.Identity.write__(os__, ident);
  1430. os__.writeString(srvUUID);
  1431. result__.endWriteParams();
  1432. result__.invoke();
  1433. }
  1434. catch(Ice.Exception ex__)
  1435. {
  1436. result__.abort(ex__);
  1437. }
  1438. return result__;
  1439. }
  1440. private void setCallback_completed__(Ice.AsyncResult r__, BattleIce.Callback_ZoneManager_setCallback cb__, Ice.ExceptionCallback excb__)
  1441. {
  1442. int ret__;
  1443. try
  1444. {
  1445. ret__ = end_setCallback(r__);
  1446. }
  1447. catch(Ice.Exception ex__)
  1448. {
  1449. if(excb__ != null)
  1450. {
  1451. excb__(ex__);
  1452. }
  1453. return;
  1454. }
  1455. if(cb__ != null)
  1456. {
  1457. cb__(ret__);
  1458. }
  1459. }
  1460. #endregion
  1461. #region Checked and unchecked cast operations
  1462. public static ZoneManagerPrx checkedCast(Ice.ObjectPrx b)
  1463. {
  1464. if(b == null)
  1465. {
  1466. return null;
  1467. }
  1468. ZoneManagerPrx r = b as ZoneManagerPrx;
  1469. if((r == null) && b.ice_isA(ice_staticId()))
  1470. {
  1471. ZoneManagerPrxHelper h = new ZoneManagerPrxHelper();
  1472. h.copyFrom__(b);
  1473. r = h;
  1474. }
  1475. return r;
  1476. }
  1477. public static ZoneManagerPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary<string, string> ctx)
  1478. {
  1479. if(b == null)
  1480. {
  1481. return null;
  1482. }
  1483. ZoneManagerPrx r = b as ZoneManagerPrx;
  1484. if((r == null) && b.ice_isA(ice_staticId(), ctx))
  1485. {
  1486. ZoneManagerPrxHelper h = new ZoneManagerPrxHelper();
  1487. h.copyFrom__(b);
  1488. r = h;
  1489. }
  1490. return r;
  1491. }
  1492. public static ZoneManagerPrx checkedCast(Ice.ObjectPrx b, string f)
  1493. {
  1494. if(b == null)
  1495. {
  1496. return null;
  1497. }
  1498. Ice.ObjectPrx bb = b.ice_facet(f);
  1499. try
  1500. {
  1501. if(bb.ice_isA(ice_staticId()))
  1502. {
  1503. ZoneManagerPrxHelper h = new ZoneManagerPrxHelper();
  1504. h.copyFrom__(bb);
  1505. return h;
  1506. }
  1507. }
  1508. catch(Ice.FacetNotExistException)
  1509. {
  1510. }
  1511. return null;
  1512. }
  1513. public static ZoneManagerPrx checkedCast(Ice.ObjectPrx b, string f, _System.Collections.Generic.Dictionary<string, string> ctx)
  1514. {
  1515. if(b == null)
  1516. {
  1517. return null;
  1518. }
  1519. Ice.ObjectPrx bb = b.ice_facet(f);
  1520. try
  1521. {
  1522. if(bb.ice_isA(ice_staticId(), ctx))
  1523. {
  1524. ZoneManagerPrxHelper h = new ZoneManagerPrxHelper();
  1525. h.copyFrom__(bb);
  1526. return h;
  1527. }
  1528. }
  1529. catch(Ice.FacetNotExistException)
  1530. {
  1531. }
  1532. return null;
  1533. }
  1534. public static ZoneManagerPrx uncheckedCast(Ice.ObjectPrx b)
  1535. {
  1536. if(b == null)
  1537. {
  1538. return null;
  1539. }
  1540. ZoneManagerPrx r = b as ZoneManagerPrx;
  1541. if(r == null)
  1542. {
  1543. ZoneManagerPrxHelper h = new ZoneManagerPrxHelper();
  1544. h.copyFrom__(b);
  1545. r = h;
  1546. }
  1547. return r;
  1548. }
  1549. public static ZoneManagerPrx uncheckedCast(Ice.ObjectPrx b, string f)
  1550. {
  1551. if(b == null)
  1552. {
  1553. return null;
  1554. }
  1555. Ice.ObjectPrx bb = b.ice_facet(f);
  1556. ZoneManagerPrxHelper h = new ZoneManagerPrxHelper();
  1557. h.copyFrom__(bb);
  1558. return h;
  1559. }
  1560. public static readonly string[] ids__ =
  1561. {
  1562. "::BattleIce::ZoneManager",
  1563. "::Ice::Object"
  1564. };
  1565. public static string ice_staticId()
  1566. {
  1567. return ids__[0];
  1568. }
  1569. #endregion
  1570. #region Marshaling support
  1571. public static void write__(IceInternal.BasicStream os__, ZoneManagerPrx v__)
  1572. {
  1573. os__.writeProxy(v__);
  1574. }
  1575. public static ZoneManagerPrx read__(IceInternal.BasicStream is__)
  1576. {
  1577. Ice.ObjectPrx proxy = is__.readProxy();
  1578. if(proxy != null)
  1579. {
  1580. ZoneManagerPrxHelper result = new ZoneManagerPrxHelper();
  1581. result.copyFrom__(proxy);
  1582. return result;
  1583. }
  1584. return null;
  1585. }
  1586. #endregion
  1587. }
  1588. }
  1589. namespace BattleIce
  1590. {
  1591. [_System.Runtime.InteropServices.ComVisible(false)]
  1592. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  1593. public abstract class ZoneManagerCallbackDisp_ : Ice.ObjectImpl, ZoneManagerCallback
  1594. {
  1595. #region Slice operations
  1596. public void eventNotify(string eventType, string msg)
  1597. {
  1598. eventNotify(eventType, msg, Ice.ObjectImpl.defaultCurrent);
  1599. }
  1600. public abstract void eventNotify(string eventType, string msg, Ice.Current current__);
  1601. #endregion
  1602. #region Slice type-related members
  1603. public static new readonly string[] ids__ =
  1604. {
  1605. "::BattleIce::ZoneManagerCallback",
  1606. "::Ice::Object"
  1607. };
  1608. public override bool ice_isA(string s)
  1609. {
  1610. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  1611. }
  1612. public override bool ice_isA(string s, Ice.Current current__)
  1613. {
  1614. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  1615. }
  1616. public override string[] ice_ids()
  1617. {
  1618. return ids__;
  1619. }
  1620. public override string[] ice_ids(Ice.Current current__)
  1621. {
  1622. return ids__;
  1623. }
  1624. public override string ice_id()
  1625. {
  1626. return ids__[0];
  1627. }
  1628. public override string ice_id(Ice.Current current__)
  1629. {
  1630. return ids__[0];
  1631. }
  1632. public static new string ice_staticId()
  1633. {
  1634. return ids__[0];
  1635. }
  1636. #endregion
  1637. #region Operation dispatch
  1638. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1639. public static Ice.DispatchStatus eventNotify___(ZoneManagerCallback obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1640. {
  1641. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1642. IceInternal.BasicStream is__ = inS__.startReadParams();
  1643. string eventType;
  1644. string msg;
  1645. eventType = is__.readString();
  1646. msg = is__.readString();
  1647. inS__.endReadParams();
  1648. obj__.eventNotify(eventType, msg, current__);
  1649. inS__.writeEmptyParams__();
  1650. return Ice.DispatchStatus.DispatchOK;
  1651. }
  1652. private static string[] all__ =
  1653. {
  1654. "eventNotify",
  1655. "ice_id",
  1656. "ice_ids",
  1657. "ice_isA",
  1658. "ice_ping"
  1659. };
  1660. public override Ice.DispatchStatus dispatch__(IceInternal.Incoming inS__, Ice.Current current__)
  1661. {
  1662. int pos = _System.Array.BinarySearch(all__, current__.operation, IceUtilInternal.StringUtil.OrdinalStringComparer);
  1663. if(pos < 0)
  1664. {
  1665. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  1666. }
  1667. switch(pos)
  1668. {
  1669. case 0:
  1670. {
  1671. return eventNotify___(this, inS__, current__);
  1672. }
  1673. case 1:
  1674. {
  1675. return Ice.ObjectImpl.ice_id___(this, inS__, current__);
  1676. }
  1677. case 2:
  1678. {
  1679. return Ice.ObjectImpl.ice_ids___(this, inS__, current__);
  1680. }
  1681. case 3:
  1682. {
  1683. return Ice.ObjectImpl.ice_isA___(this, inS__, current__);
  1684. }
  1685. case 4:
  1686. {
  1687. return Ice.ObjectImpl.ice_ping___(this, inS__, current__);
  1688. }
  1689. }
  1690. _System.Diagnostics.Debug.Assert(false);
  1691. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  1692. }
  1693. #endregion
  1694. #region Marshaling support
  1695. protected override void writeImpl__(IceInternal.BasicStream os__)
  1696. {
  1697. os__.startWriteSlice(ice_staticId(), -1, true);
  1698. os__.endWriteSlice();
  1699. }
  1700. protected override void readImpl__(IceInternal.BasicStream is__)
  1701. {
  1702. is__.startReadSlice();
  1703. is__.endReadSlice();
  1704. }
  1705. #endregion
  1706. }
  1707. [_System.Runtime.InteropServices.ComVisible(false)]
  1708. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  1709. public abstract class ZoneManagerDisp_ : Ice.ObjectImpl, ZoneManager
  1710. {
  1711. #region Slice operations
  1712. public int setCallback(Ice.Identity ident, string srvUUID)
  1713. {
  1714. return setCallback(ident, srvUUID, Ice.ObjectImpl.defaultCurrent);
  1715. }
  1716. public abstract int setCallback(Ice.Identity ident, string srvUUID, Ice.Current current__);
  1717. public void createZoneRequest_async(BattleIce.AMD_ZoneManager_createZoneRequest cb__, string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data)
  1718. {
  1719. createZoneRequest_async(cb__, playerId, gameServerId, mapTemplateId, instanceId, force, data, Ice.ObjectImpl.defaultCurrent);
  1720. }
  1721. public abstract void createZoneRequest_async(BattleIce.AMD_ZoneManager_createZoneRequest cb__, string playerId, string gameServerId, int mapTemplateId, string instanceId, bool force, string data, Ice.Current current__);
  1722. public void destroyZoneRequest_async(BattleIce.AMD_ZoneManager_destroyZoneRequest cb__, string instanceId)
  1723. {
  1724. destroyZoneRequest_async(cb__, instanceId, Ice.ObjectImpl.defaultCurrent);
  1725. }
  1726. public abstract void destroyZoneRequest_async(BattleIce.AMD_ZoneManager_destroyZoneRequest cb__, string instanceId, Ice.Current current__);
  1727. public void clearAllPlayersRequest_async(BattleIce.AMD_ZoneManager_clearAllPlayersRequest cb__)
  1728. {
  1729. clearAllPlayersRequest_async(cb__, Ice.ObjectImpl.defaultCurrent);
  1730. }
  1731. public abstract void clearAllPlayersRequest_async(BattleIce.AMD_ZoneManager_clearAllPlayersRequest cb__, Ice.Current current__);
  1732. public void getAllPlayerCountRequest_async(BattleIce.AMD_ZoneManager_getAllPlayerCountRequest cb__)
  1733. {
  1734. getAllPlayerCountRequest_async(cb__, Ice.ObjectImpl.defaultCurrent);
  1735. }
  1736. public abstract void getAllPlayerCountRequest_async(BattleIce.AMD_ZoneManager_getAllPlayerCountRequest cb__, Ice.Current current__);
  1737. public void playerEnterRequest_async(BattleIce.AMD_ZoneManager_playerEnterRequest cb__, string playerId, string instanceId, string data)
  1738. {
  1739. playerEnterRequest_async(cb__, playerId, instanceId, data, Ice.ObjectImpl.defaultCurrent);
  1740. }
  1741. public abstract void playerEnterRequest_async(BattleIce.AMD_ZoneManager_playerEnterRequest cb__, string playerId, string instanceId, string data, Ice.Current current__);
  1742. public void playerLeaveRequest_async(BattleIce.AMD_ZoneManager_playerLeaveRequest cb__, string playerId, string instanceId, bool keepObject)
  1743. {
  1744. playerLeaveRequest_async(cb__, playerId, instanceId, keepObject, Ice.ObjectImpl.defaultCurrent);
  1745. }
  1746. public abstract void playerLeaveRequest_async(BattleIce.AMD_ZoneManager_playerLeaveRequest cb__, string playerId, string instanceId, bool keepObject, Ice.Current current__);
  1747. public void playerNetStateChanged_async(BattleIce.AMD_ZoneManager_playerNetStateChanged cb__, string playerId, string state)
  1748. {
  1749. playerNetStateChanged_async(cb__, playerId, state, Ice.ObjectImpl.defaultCurrent);
  1750. }
  1751. public abstract void playerNetStateChanged_async(BattleIce.AMD_ZoneManager_playerNetStateChanged cb__, string playerId, string state, Ice.Current current__);
  1752. public void getServerState_async(BattleIce.AMD_ZoneManager_getServerState cb__, string serverId)
  1753. {
  1754. getServerState_async(cb__, serverId, Ice.ObjectImpl.defaultCurrent);
  1755. }
  1756. public abstract void getServerState_async(BattleIce.AMD_ZoneManager_getServerState cb__, string serverId, Ice.Current current__);
  1757. public void registerGameServer_async(BattleIce.AMD_ZoneManager_registerGameServer cb__, int serverid, int crossid)
  1758. {
  1759. registerGameServer_async(cb__, serverid, crossid, Ice.ObjectImpl.defaultCurrent);
  1760. }
  1761. public abstract void registerGameServer_async(BattleIce.AMD_ZoneManager_registerGameServer cb__, int serverid, int crossid, Ice.Current current__);
  1762. public void getUnitHP_async(BattleIce.AMD_ZoneManager_getUnitHP cb__, string instanceId, int objectId)
  1763. {
  1764. getUnitHP_async(cb__, instanceId, objectId, Ice.ObjectImpl.defaultCurrent);
  1765. }
  1766. public abstract void getUnitHP_async(BattleIce.AMD_ZoneManager_getUnitHP cb__, string instanceId, int objectId, Ice.Current current__);
  1767. #endregion
  1768. #region Slice type-related members
  1769. public static new readonly string[] ids__ =
  1770. {
  1771. "::BattleIce::ZoneManager",
  1772. "::Ice::Object"
  1773. };
  1774. public override bool ice_isA(string s)
  1775. {
  1776. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  1777. }
  1778. public override bool ice_isA(string s, Ice.Current current__)
  1779. {
  1780. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  1781. }
  1782. public override string[] ice_ids()
  1783. {
  1784. return ids__;
  1785. }
  1786. public override string[] ice_ids(Ice.Current current__)
  1787. {
  1788. return ids__;
  1789. }
  1790. public override string ice_id()
  1791. {
  1792. return ids__[0];
  1793. }
  1794. public override string ice_id(Ice.Current current__)
  1795. {
  1796. return ids__[0];
  1797. }
  1798. public static new string ice_staticId()
  1799. {
  1800. return ids__[0];
  1801. }
  1802. #endregion
  1803. #region Operation dispatch
  1804. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1805. public static Ice.DispatchStatus setCallback___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1806. {
  1807. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1808. IceInternal.BasicStream is__ = inS__.startReadParams();
  1809. Ice.Identity ident;
  1810. ident = null;
  1811. string srvUUID;
  1812. ident = Ice.Identity.read__(is__, ident);
  1813. srvUUID = is__.readString();
  1814. inS__.endReadParams();
  1815. int ret__ = obj__.setCallback(ident, srvUUID, current__);
  1816. IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
  1817. os__.writeInt(ret__);
  1818. inS__.endWriteParams__(true);
  1819. return Ice.DispatchStatus.DispatchOK;
  1820. }
  1821. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1822. public static Ice.DispatchStatus createZoneRequest___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1823. {
  1824. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1825. IceInternal.BasicStream is__ = inS__.startReadParams();
  1826. string playerId;
  1827. string gameServerId;
  1828. int mapTemplateId;
  1829. string instanceId;
  1830. bool force;
  1831. string data;
  1832. playerId = is__.readString();
  1833. gameServerId = is__.readString();
  1834. mapTemplateId = is__.readInt();
  1835. instanceId = is__.readString();
  1836. force = is__.readBool();
  1837. data = is__.readString();
  1838. inS__.endReadParams();
  1839. AMD_ZoneManager_createZoneRequest cb__ = new _AMD_ZoneManager_createZoneRequest(inS__);
  1840. try
  1841. {
  1842. obj__.createZoneRequest_async(cb__, playerId, gameServerId, mapTemplateId, instanceId, force, data, current__);
  1843. }
  1844. catch(_System.Exception ex__)
  1845. {
  1846. cb__.ice_exception(ex__);
  1847. }
  1848. return Ice.DispatchStatus.DispatchAsync;
  1849. }
  1850. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1851. public static Ice.DispatchStatus destroyZoneRequest___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1852. {
  1853. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1854. IceInternal.BasicStream is__ = inS__.startReadParams();
  1855. string instanceId;
  1856. instanceId = is__.readString();
  1857. inS__.endReadParams();
  1858. AMD_ZoneManager_destroyZoneRequest cb__ = new _AMD_ZoneManager_destroyZoneRequest(inS__);
  1859. try
  1860. {
  1861. obj__.destroyZoneRequest_async(cb__, instanceId, current__);
  1862. }
  1863. catch(_System.Exception ex__)
  1864. {
  1865. cb__.ice_exception(ex__);
  1866. }
  1867. return Ice.DispatchStatus.DispatchAsync;
  1868. }
  1869. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1870. public static Ice.DispatchStatus clearAllPlayersRequest___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1871. {
  1872. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1873. inS__.readEmptyParams();
  1874. AMD_ZoneManager_clearAllPlayersRequest cb__ = new _AMD_ZoneManager_clearAllPlayersRequest(inS__);
  1875. try
  1876. {
  1877. obj__.clearAllPlayersRequest_async(cb__, current__);
  1878. }
  1879. catch(_System.Exception ex__)
  1880. {
  1881. cb__.ice_exception(ex__);
  1882. }
  1883. return Ice.DispatchStatus.DispatchAsync;
  1884. }
  1885. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1886. public static Ice.DispatchStatus getAllPlayerCountRequest___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1887. {
  1888. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1889. inS__.readEmptyParams();
  1890. AMD_ZoneManager_getAllPlayerCountRequest cb__ = new _AMD_ZoneManager_getAllPlayerCountRequest(inS__);
  1891. try
  1892. {
  1893. obj__.getAllPlayerCountRequest_async(cb__, current__);
  1894. }
  1895. catch(_System.Exception ex__)
  1896. {
  1897. cb__.ice_exception(ex__);
  1898. }
  1899. return Ice.DispatchStatus.DispatchAsync;
  1900. }
  1901. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1902. public static Ice.DispatchStatus playerEnterRequest___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1903. {
  1904. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1905. IceInternal.BasicStream is__ = inS__.startReadParams();
  1906. string playerId;
  1907. string instanceId;
  1908. string data;
  1909. playerId = is__.readString();
  1910. instanceId = is__.readString();
  1911. data = is__.readString();
  1912. inS__.endReadParams();
  1913. AMD_ZoneManager_playerEnterRequest cb__ = new _AMD_ZoneManager_playerEnterRequest(inS__);
  1914. try
  1915. {
  1916. obj__.playerEnterRequest_async(cb__, playerId, instanceId, data, current__);
  1917. }
  1918. catch(_System.Exception ex__)
  1919. {
  1920. cb__.ice_exception(ex__);
  1921. }
  1922. return Ice.DispatchStatus.DispatchAsync;
  1923. }
  1924. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1925. public static Ice.DispatchStatus playerLeaveRequest___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1926. {
  1927. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1928. IceInternal.BasicStream is__ = inS__.startReadParams();
  1929. string playerId;
  1930. string instanceId;
  1931. bool keepObject;
  1932. playerId = is__.readString();
  1933. instanceId = is__.readString();
  1934. keepObject = is__.readBool();
  1935. inS__.endReadParams();
  1936. AMD_ZoneManager_playerLeaveRequest cb__ = new _AMD_ZoneManager_playerLeaveRequest(inS__);
  1937. try
  1938. {
  1939. obj__.playerLeaveRequest_async(cb__, playerId, instanceId, keepObject, current__);
  1940. }
  1941. catch(_System.Exception ex__)
  1942. {
  1943. cb__.ice_exception(ex__);
  1944. }
  1945. return Ice.DispatchStatus.DispatchAsync;
  1946. }
  1947. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1948. public static Ice.DispatchStatus playerNetStateChanged___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1949. {
  1950. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1951. IceInternal.BasicStream is__ = inS__.startReadParams();
  1952. string playerId;
  1953. string state;
  1954. playerId = is__.readString();
  1955. state = is__.readString();
  1956. inS__.endReadParams();
  1957. AMD_ZoneManager_playerNetStateChanged cb__ = new _AMD_ZoneManager_playerNetStateChanged(inS__);
  1958. try
  1959. {
  1960. obj__.playerNetStateChanged_async(cb__, playerId, state, current__);
  1961. }
  1962. catch(_System.Exception ex__)
  1963. {
  1964. cb__.ice_exception(ex__);
  1965. }
  1966. return Ice.DispatchStatus.DispatchAsync;
  1967. }
  1968. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1969. public static Ice.DispatchStatus getServerState___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1970. {
  1971. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1972. IceInternal.BasicStream is__ = inS__.startReadParams();
  1973. string serverId;
  1974. serverId = is__.readString();
  1975. inS__.endReadParams();
  1976. AMD_ZoneManager_getServerState cb__ = new _AMD_ZoneManager_getServerState(inS__);
  1977. try
  1978. {
  1979. obj__.getServerState_async(cb__, serverId, current__);
  1980. }
  1981. catch(_System.Exception ex__)
  1982. {
  1983. cb__.ice_exception(ex__);
  1984. }
  1985. return Ice.DispatchStatus.DispatchAsync;
  1986. }
  1987. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  1988. public static Ice.DispatchStatus registerGameServer___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  1989. {
  1990. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  1991. IceInternal.BasicStream is__ = inS__.startReadParams();
  1992. int serverid;
  1993. int crossid;
  1994. serverid = is__.readInt();
  1995. crossid = is__.readInt();
  1996. inS__.endReadParams();
  1997. AMD_ZoneManager_registerGameServer cb__ = new _AMD_ZoneManager_registerGameServer(inS__);
  1998. try
  1999. {
  2000. obj__.registerGameServer_async(cb__, serverid, crossid, current__);
  2001. }
  2002. catch(_System.Exception ex__)
  2003. {
  2004. cb__.ice_exception(ex__);
  2005. }
  2006. return Ice.DispatchStatus.DispatchAsync;
  2007. }
  2008. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  2009. public static Ice.DispatchStatus getUnitHP___(ZoneManager obj__, IceInternal.Incoming inS__, Ice.Current current__)
  2010. {
  2011. Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
  2012. IceInternal.BasicStream is__ = inS__.startReadParams();
  2013. string instanceId;
  2014. int objectId;
  2015. instanceId = is__.readString();
  2016. objectId = is__.readInt();
  2017. inS__.endReadParams();
  2018. AMD_ZoneManager_getUnitHP cb__ = new _AMD_ZoneManager_getUnitHP(inS__);
  2019. try
  2020. {
  2021. obj__.getUnitHP_async(cb__, instanceId, objectId, current__);
  2022. }
  2023. catch(_System.Exception ex__)
  2024. {
  2025. cb__.ice_exception(ex__);
  2026. }
  2027. return Ice.DispatchStatus.DispatchAsync;
  2028. }
  2029. private static string[] all__ =
  2030. {
  2031. "clearAllPlayersRequest",
  2032. "createZoneRequest",
  2033. "destroyZoneRequest",
  2034. "getAllPlayerCountRequest",
  2035. "getServerState",
  2036. "getUnitHP",
  2037. "ice_id",
  2038. "ice_ids",
  2039. "ice_isA",
  2040. "ice_ping",
  2041. "playerEnterRequest",
  2042. "playerLeaveRequest",
  2043. "playerNetStateChanged",
  2044. "registerGameServer",
  2045. "setCallback"
  2046. };
  2047. public override Ice.DispatchStatus dispatch__(IceInternal.Incoming inS__, Ice.Current current__)
  2048. {
  2049. int pos = _System.Array.BinarySearch(all__, current__.operation, IceUtilInternal.StringUtil.OrdinalStringComparer);
  2050. if(pos < 0)
  2051. {
  2052. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2053. }
  2054. switch(pos)
  2055. {
  2056. case 0:
  2057. {
  2058. return clearAllPlayersRequest___(this, inS__, current__);
  2059. }
  2060. case 1:
  2061. {
  2062. return createZoneRequest___(this, inS__, current__);
  2063. }
  2064. case 2:
  2065. {
  2066. return destroyZoneRequest___(this, inS__, current__);
  2067. }
  2068. case 3:
  2069. {
  2070. return getAllPlayerCountRequest___(this, inS__, current__);
  2071. }
  2072. case 4:
  2073. {
  2074. return getServerState___(this, inS__, current__);
  2075. }
  2076. case 5:
  2077. {
  2078. return getUnitHP___(this, inS__, current__);
  2079. }
  2080. case 6:
  2081. {
  2082. return Ice.ObjectImpl.ice_id___(this, inS__, current__);
  2083. }
  2084. case 7:
  2085. {
  2086. return Ice.ObjectImpl.ice_ids___(this, inS__, current__);
  2087. }
  2088. case 8:
  2089. {
  2090. return Ice.ObjectImpl.ice_isA___(this, inS__, current__);
  2091. }
  2092. case 9:
  2093. {
  2094. return Ice.ObjectImpl.ice_ping___(this, inS__, current__);
  2095. }
  2096. case 10:
  2097. {
  2098. return playerEnterRequest___(this, inS__, current__);
  2099. }
  2100. case 11:
  2101. {
  2102. return playerLeaveRequest___(this, inS__, current__);
  2103. }
  2104. case 12:
  2105. {
  2106. return playerNetStateChanged___(this, inS__, current__);
  2107. }
  2108. case 13:
  2109. {
  2110. return registerGameServer___(this, inS__, current__);
  2111. }
  2112. case 14:
  2113. {
  2114. return setCallback___(this, inS__, current__);
  2115. }
  2116. }
  2117. _System.Diagnostics.Debug.Assert(false);
  2118. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2119. }
  2120. #endregion
  2121. #region Marshaling support
  2122. protected override void writeImpl__(IceInternal.BasicStream os__)
  2123. {
  2124. os__.startWriteSlice(ice_staticId(), -1, true);
  2125. os__.endWriteSlice();
  2126. }
  2127. protected override void readImpl__(IceInternal.BasicStream is__)
  2128. {
  2129. is__.startReadSlice();
  2130. is__.endReadSlice();
  2131. }
  2132. #endregion
  2133. }
  2134. }
  2135. namespace BattleIce
  2136. {
  2137. /// <summary>
  2138. /// 场景副本相关协议
  2139. /// </summary>
  2140. [_System.Runtime.InteropServices.ComVisible(false)]
  2141. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2142. public interface AMD_ZoneManager_createZoneRequest : Ice.AMDCallback
  2143. {
  2144. /// <summary>
  2145. /// ice_response indicates that
  2146. /// the operation completed successfully.
  2147. /// </summary>
  2148. void ice_response(int ret__);
  2149. }
  2150. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2151. class _AMD_ZoneManager_createZoneRequest : IceInternal.IncomingAsync, AMD_ZoneManager_createZoneRequest
  2152. {
  2153. public _AMD_ZoneManager_createZoneRequest(IceInternal.Incoming inc) : base(inc)
  2154. {
  2155. }
  2156. public void ice_response(int ret__)
  2157. {
  2158. if(validateResponse__(true))
  2159. {
  2160. try
  2161. {
  2162. IceInternal.BasicStream os__ = startWriteParams__(Ice.FormatType.DefaultFormat);
  2163. os__.writeInt(ret__);
  2164. endWriteParams__(true);
  2165. }
  2166. catch(Ice.LocalException ex__)
  2167. {
  2168. exception__(ex__);
  2169. return;
  2170. }
  2171. response__();
  2172. }
  2173. }
  2174. }
  2175. [_System.Runtime.InteropServices.ComVisible(false)]
  2176. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2177. public interface AMD_ZoneManager_destroyZoneRequest : Ice.AMDCallback
  2178. {
  2179. void ice_response();
  2180. }
  2181. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2182. class _AMD_ZoneManager_destroyZoneRequest : IceInternal.IncomingAsync, AMD_ZoneManager_destroyZoneRequest
  2183. {
  2184. public _AMD_ZoneManager_destroyZoneRequest(IceInternal.Incoming inc) : base(inc)
  2185. {
  2186. }
  2187. public void ice_response()
  2188. {
  2189. if(validateResponse__(true))
  2190. {
  2191. writeEmptyParams__();
  2192. response__();
  2193. }
  2194. }
  2195. }
  2196. /// <summary>
  2197. /// 玩家相关协议
  2198. /// </summary>
  2199. [_System.Runtime.InteropServices.ComVisible(false)]
  2200. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2201. public interface AMD_ZoneManager_clearAllPlayersRequest : Ice.AMDCallback
  2202. {
  2203. /// <summary>
  2204. /// ice_response indicates that
  2205. /// the operation completed successfully.
  2206. /// </summary>
  2207. void ice_response();
  2208. }
  2209. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2210. class _AMD_ZoneManager_clearAllPlayersRequest : IceInternal.IncomingAsync, AMD_ZoneManager_clearAllPlayersRequest
  2211. {
  2212. public _AMD_ZoneManager_clearAllPlayersRequest(IceInternal.Incoming inc) : base(inc)
  2213. {
  2214. }
  2215. public void ice_response()
  2216. {
  2217. if(validateResponse__(true))
  2218. {
  2219. writeEmptyParams__();
  2220. response__();
  2221. }
  2222. }
  2223. }
  2224. [_System.Runtime.InteropServices.ComVisible(false)]
  2225. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2226. public interface AMD_ZoneManager_getAllPlayerCountRequest : Ice.AMDCallback
  2227. {
  2228. void ice_response(int ret__);
  2229. }
  2230. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2231. class _AMD_ZoneManager_getAllPlayerCountRequest : IceInternal.IncomingAsync, AMD_ZoneManager_getAllPlayerCountRequest
  2232. {
  2233. public _AMD_ZoneManager_getAllPlayerCountRequest(IceInternal.Incoming inc) : base(inc)
  2234. {
  2235. }
  2236. public void ice_response(int ret__)
  2237. {
  2238. if(validateResponse__(true))
  2239. {
  2240. try
  2241. {
  2242. IceInternal.BasicStream os__ = startWriteParams__(Ice.FormatType.DefaultFormat);
  2243. os__.writeInt(ret__);
  2244. endWriteParams__(true);
  2245. }
  2246. catch(Ice.LocalException ex__)
  2247. {
  2248. exception__(ex__);
  2249. return;
  2250. }
  2251. response__();
  2252. }
  2253. }
  2254. }
  2255. [_System.Runtime.InteropServices.ComVisible(false)]
  2256. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2257. public interface AMD_ZoneManager_playerEnterRequest : Ice.AMDCallback
  2258. {
  2259. void ice_response();
  2260. }
  2261. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2262. class _AMD_ZoneManager_playerEnterRequest : IceInternal.IncomingAsync, AMD_ZoneManager_playerEnterRequest
  2263. {
  2264. public _AMD_ZoneManager_playerEnterRequest(IceInternal.Incoming inc) : base(inc)
  2265. {
  2266. }
  2267. public void ice_response()
  2268. {
  2269. if(validateResponse__(true))
  2270. {
  2271. writeEmptyParams__();
  2272. response__();
  2273. }
  2274. }
  2275. }
  2276. [_System.Runtime.InteropServices.ComVisible(false)]
  2277. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2278. public interface AMD_ZoneManager_playerLeaveRequest : Ice.AMDCallback
  2279. {
  2280. void ice_response();
  2281. }
  2282. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2283. class _AMD_ZoneManager_playerLeaveRequest : IceInternal.IncomingAsync, AMD_ZoneManager_playerLeaveRequest
  2284. {
  2285. public _AMD_ZoneManager_playerLeaveRequest(IceInternal.Incoming inc) : base(inc)
  2286. {
  2287. }
  2288. public void ice_response()
  2289. {
  2290. if(validateResponse__(true))
  2291. {
  2292. writeEmptyParams__();
  2293. response__();
  2294. }
  2295. }
  2296. }
  2297. [_System.Runtime.InteropServices.ComVisible(false)]
  2298. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2299. public interface AMD_ZoneManager_playerNetStateChanged : Ice.AMDCallback
  2300. {
  2301. void ice_response();
  2302. }
  2303. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2304. class _AMD_ZoneManager_playerNetStateChanged : IceInternal.IncomingAsync, AMD_ZoneManager_playerNetStateChanged
  2305. {
  2306. public _AMD_ZoneManager_playerNetStateChanged(IceInternal.Incoming inc) : base(inc)
  2307. {
  2308. }
  2309. public void ice_response()
  2310. {
  2311. if(validateResponse__(true))
  2312. {
  2313. writeEmptyParams__();
  2314. response__();
  2315. }
  2316. }
  2317. }
  2318. [_System.Runtime.InteropServices.ComVisible(false)]
  2319. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2320. public interface AMD_ZoneManager_getServerState : Ice.AMDCallback
  2321. {
  2322. void ice_response(string ret__);
  2323. }
  2324. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2325. class _AMD_ZoneManager_getServerState : IceInternal.IncomingAsync, AMD_ZoneManager_getServerState
  2326. {
  2327. public _AMD_ZoneManager_getServerState(IceInternal.Incoming inc) : base(inc)
  2328. {
  2329. }
  2330. public void ice_response(string ret__)
  2331. {
  2332. if(validateResponse__(true))
  2333. {
  2334. try
  2335. {
  2336. IceInternal.BasicStream os__ = startWriteParams__(Ice.FormatType.DefaultFormat);
  2337. os__.writeString(ret__);
  2338. endWriteParams__(true);
  2339. }
  2340. catch(Ice.LocalException ex__)
  2341. {
  2342. exception__(ex__);
  2343. return;
  2344. }
  2345. response__();
  2346. }
  2347. }
  2348. }
  2349. [_System.Runtime.InteropServices.ComVisible(false)]
  2350. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2351. public interface AMD_ZoneManager_registerGameServer : Ice.AMDCallback
  2352. {
  2353. void ice_response(string ret__);
  2354. }
  2355. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2356. class _AMD_ZoneManager_registerGameServer : IceInternal.IncomingAsync, AMD_ZoneManager_registerGameServer
  2357. {
  2358. public _AMD_ZoneManager_registerGameServer(IceInternal.Incoming inc) : base(inc)
  2359. {
  2360. }
  2361. public void ice_response(string ret__)
  2362. {
  2363. if(validateResponse__(true))
  2364. {
  2365. try
  2366. {
  2367. IceInternal.BasicStream os__ = startWriteParams__(Ice.FormatType.DefaultFormat);
  2368. os__.writeString(ret__);
  2369. endWriteParams__(true);
  2370. }
  2371. catch(Ice.LocalException ex__)
  2372. {
  2373. exception__(ex__);
  2374. return;
  2375. }
  2376. response__();
  2377. }
  2378. }
  2379. }
  2380. [_System.Runtime.InteropServices.ComVisible(false)]
  2381. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2382. public interface AMD_ZoneManager_getUnitHP : Ice.AMDCallback
  2383. {
  2384. void ice_response(int ret__);
  2385. }
  2386. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.6.4")]
  2387. class _AMD_ZoneManager_getUnitHP : IceInternal.IncomingAsync, AMD_ZoneManager_getUnitHP
  2388. {
  2389. public _AMD_ZoneManager_getUnitHP(IceInternal.Incoming inc) : base(inc)
  2390. {
  2391. }
  2392. public void ice_response(int ret__)
  2393. {
  2394. if(validateResponse__(true))
  2395. {
  2396. try
  2397. {
  2398. IceInternal.BasicStream os__ = startWriteParams__(Ice.FormatType.DefaultFormat);
  2399. os__.writeInt(ret__);
  2400. endWriteParams__(true);
  2401. }
  2402. catch(Ice.LocalException ex__)
  2403. {
  2404. exception__(ex__);
  2405. return;
  2406. }
  2407. response__();
  2408. }
  2409. }
  2410. }
  2411. }