mmoclient_interfaces.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. // =====================================================================
  2. // mmoclient 自研层 类接口还原 (从主二进制 tolua 注册表逆向生成)
  3. // 形态: .pkg 风格声明 —— 真实实现体已编译为机器码,此为接口契约
  4. // 单例约定: *Inst() 返回全局单例; Lua handler 为已注册的Lua回调id
  5. // 生成日期: 2026-09-21
  6. // =====================================================================
  7. #pragma once
  8. // ---- 前置: 全局单例访问宏 ----
  9. // #define INST(cls) cls::Inst()
  10. // ==================== 网络组 ====================
  11. // TCP客户端: Connect/加密收发/Tick泵/24B消息头
  12. class netClient {
  13. void CleanAllMessageHandler(...); // tolua: netClient:CleanAllMessageHandler
  14. void Connect(...); // tolua: netClient:Connect
  15. void Disconnect(...); // tolua: netClient:Disconnect
  16. void GetClientIp(...); // tolua: netClient:GetClientIp
  17. void GetClientPort(...); // tolua: netClient:GetClientPort
  18. void GetClientSocketError(...); // tolua: netClient:GetClientSocketError
  19. void GetNetMessageTypeSData(...); // tolua: netClient:GetNetMessageTypeSData
  20. void GetNetServerKey(...); // tolua: netClient:GetNetServerKey
  21. void GetServerIp(...); // tolua: netClient:GetServerIp
  22. void GetServerPort(...); // tolua: netClient:GetServerPort
  23. void IsConnected(...); // tolua: netClient:IsConnected
  24. void SendNetMessage(...); // tolua: netClient:SendNetMessage
  25. void SetNetMessageTypeSData(...); // tolua: netClient:SetNetMessageTypeSData
  26. void SetNetServerKey(...); // tolua: netClient:SetNetServerKey
  27. void Tick(...); // tolua: netClient:Tick
  28. void netClient(...); // tolua: netClient:netClient
  29. void ~netClient(...); // tolua: netClient:~netClient
  30. };
  31. // netClient精简版(launcher用): 收/断/错三回调
  32. class netClientLua {
  33. void Clean(...); // tolua: netClientLua:Clean
  34. void Connect(...); // tolua: netClientLua:Connect
  35. void Disconnect(...); // tolua: netClientLua:Disconnect
  36. void IsConnected(...); // tolua: netClientLua:IsConnected
  37. void SendNetMessage(...); // tolua: netClientLua:SendNetMessage
  38. void SetDisconnectLuaHandler(...); // tolua: netClientLua:SetDisconnectLuaHandler
  39. void SetErrorLuaHandler(...); // tolua: netClientLua:SetErrorLuaHandler
  40. void SetRecvHandler(...); // tolua: netClientLua:SetRecvHandler
  41. void Tick(...); // tolua: netClientLua:Tick
  42. void netClientLua(...); // tolua: netClientLua:netClientLua
  43. void ~netClientLua(...); // tolua: netClientLua:~netClientLua
  44. };
  45. // 消息对象: recog/param1-4/msgId 头 + 载荷读写
  46. class netMessage {
  47. void ClearData(...); // tolua: netMessage:ClearData
  48. void GetData(...); // tolua: netMessage:GetData
  49. void GetDataLength(...); // tolua: netMessage:GetDataLength
  50. void GetHeader(...); // tolua: netMessage:GetHeader
  51. void SetHeaderMsgId(...); // tolua: netMessage:SetHeaderMsgId
  52. void SetHeaderParam1(...); // tolua: netMessage:SetHeaderParam1
  53. void SetHeaderParam2(...); // tolua: netMessage:SetHeaderParam2
  54. void SetHeaderParam3(...); // tolua: netMessage:SetHeaderParam3
  55. void SetHeaderParam4(...); // tolua: netMessage:SetHeaderParam4
  56. void SetHeaderRecog(...); // tolua: netMessage:SetHeaderRecog
  57. void WriteData(...); // tolua: netMessage:WriteData
  58. void WriteHeader(...); // tolua: netMessage:WriteHeader
  59. void netMessage(...); // tolua: netMessage:netMessage
  60. };
  61. // 批量包(-1)聚合/拆包
  62. class netPackage {
  63. void Clear(...); // tolua: netPackage:Clear
  64. void GenNetPackage(...); // tolua: netPackage:GenNetPackage
  65. void GetBodyData(...); // tolua: netPackage:GetBodyData
  66. void GetBodyLength(...); // tolua: netPackage:GetBodyLength
  67. void GetHeadData(...); // tolua: netPackage:GetHeadData
  68. void GetMsgID(...); // tolua: netPackage:GetMsgID
  69. void GetPkgIndex(...); // tolua: netPackage:GetPkgIndex
  70. void SetBodyData(...); // tolua: netPackage:SetBodyData
  71. void SetHeadData(...); // tolua: netPackage:SetHeadData
  72. void SetMsgID(...); // tolua: netPackage:SetMsgID
  73. void SetPkgIndex(...); // tolua: netPackage:SetPkgIndex
  74. void constructor(...); // tolua: netPackage:constructor
  75. };
  76. // 二进制流读写(协议字段解析)
  77. class luaBuffer {
  78. void ClearPool(...); // tolua: luaBuffer:ClearPool
  79. void GetLength(...); // tolua: luaBuffer:GetLength
  80. void GetLuaIndex(...); // tolua: luaBuffer:GetLuaIndex
  81. void ReadBool(...); // tolua: luaBuffer:ReadBool
  82. void ReadByte(...); // tolua: luaBuffer:ReadByte
  83. void ReadDouble(...); // tolua: luaBuffer:ReadDouble
  84. void ReadFloat(...); // tolua: luaBuffer:ReadFloat
  85. void ReadGuid(...); // tolua: luaBuffer:ReadGuid
  86. void ReadInt(...); // tolua: luaBuffer:ReadInt
  87. void ReadInt64(...); // tolua: luaBuffer:ReadInt64
  88. void ReadInt64Str(...); // tolua: luaBuffer:ReadInt64Str
  89. void ReadShort(...); // tolua: luaBuffer:ReadShort
  90. void ReadShortString(...); // tolua: luaBuffer:ReadShortString
  91. void ReadString(...); // tolua: luaBuffer:ReadString
  92. void ReadUByte(...); // tolua: luaBuffer:ReadUByte
  93. void ReadUInt(...); // tolua: luaBuffer:ReadUInt
  94. void ReadUShort(...); // tolua: luaBuffer:ReadUShort
  95. void SetLuaIndex(...); // tolua: luaBuffer:SetLuaIndex
  96. void WriteBool(...); // tolua: luaBuffer:WriteBool
  97. void WriteByte(...); // tolua: luaBuffer:WriteByte
  98. void WriteDouble(...); // tolua: luaBuffer:WriteDouble
  99. void WriteFloat(...); // tolua: luaBuffer:WriteFloat
  100. void WriteGuid(...); // tolua: luaBuffer:WriteGuid
  101. void WriteInt(...); // tolua: luaBuffer:WriteInt
  102. void WriteInt64(...); // tolua: luaBuffer:WriteInt64
  103. void WriteInt64Str(...); // tolua: luaBuffer:WriteInt64Str
  104. void WriteShort(...); // tolua: luaBuffer:WriteShort
  105. void WriteShortString(...); // tolua: luaBuffer:WriteShortString
  106. void WriteString(...); // tolua: luaBuffer:WriteString
  107. void WriteUByte(...); // tolua: luaBuffer:WriteUByte
  108. void WriteUInt(...); // tolua: luaBuffer:WriteUInt
  109. void WriteUShort(...); // tolua: luaBuffer:WriteUShort
  110. void constructor(...); // tolua: luaBuffer:constructor
  111. };
  112. // Lua收发门面单例(tolua入口)
  113. class LuaNetworkController {
  114. void Inst(...); // tolua: LuaNetworkController:Inst
  115. void IsRegisterLuaHandler(...); // tolua: LuaNetworkController:IsRegisterLuaHandler
  116. void RegisterLuaHandler(...); // tolua: LuaNetworkController:RegisterLuaHandler
  117. void SendMsg(...); // tolua: LuaNetworkController:SendMsg
  118. void SetNetClientPtr(...); // tolua: LuaNetworkController:SetNetClientPtr
  119. void UnregisterAllLuaHandler(...); // tolua: LuaNetworkController:UnregisterAllLuaHandler
  120. };
  121. // 地图光照数据读取流
  122. class LightBuffer {
  123. void GetIndex(...); // tolua: LightBuffer:GetIndex
  124. void GetSize(...); // tolua: LightBuffer:GetSize
  125. void ReadBool(...); // tolua: LightBuffer:ReadBool
  126. void ReadByte(...); // tolua: LightBuffer:ReadByte
  127. void ReadChar(...); // tolua: LightBuffer:ReadChar
  128. void ReadDouble(...); // tolua: LightBuffer:ReadDouble
  129. void ReadFloat(...); // tolua: LightBuffer:ReadFloat
  130. void ReadInt(...); // tolua: LightBuffer:ReadInt
  131. void ReadInt64(...); // tolua: LightBuffer:ReadInt64
  132. void ReadMultiByte(...); // tolua: LightBuffer:ReadMultiByte
  133. void ReadShort(...); // tolua: LightBuffer:ReadShort
  134. void ReadString(...); // tolua: LightBuffer:ReadString
  135. void ReadUInt(...); // tolua: LightBuffer:ReadUInt
  136. void ReadUShort(...); // tolua: LightBuffer:ReadUShort
  137. void create(...); // tolua: LightBuffer:create
  138. };
  139. // ==================== 地图组 ====================
  140. // 贴图地图管理 Mir2代(63法)
  141. class tileSceneManager {
  142. void CheckMapDataExpired(...); // tolua: tileSceneManager:CheckMapDataExpired
  143. void CheckMiniExpired(...); // tolua: tileSceneManager:CheckMiniExpired
  144. void CleanAtlasLoadQueue(...); // tolua: tileSceneManager:CleanAtlasLoadQueue
  145. void Cleanup(...); // tolua: tileSceneManager:Cleanup
  146. void GenTileIdx(...); // tolua: tileSceneManager:GenTileIdx
  147. void GetMapData2DPtr(...); // tolua: tileSceneManager:GetMapData2DPtr
  148. void GetMapHeightInPixel(...); // tolua: tileSceneManager:GetMapHeightInPixel
  149. void GetMapWidthInPixel(...); // tolua: tileSceneManager:GetMapWidthInPixel
  150. void Init(...); // tolua: tileSceneManager:Init
  151. void Inst(...); // tolua: tileSceneManager:Inst
  152. void LoadMap(...); // tolua: tileSceneManager:LoadMap
  153. void LoadMapData(...); // tolua: tileSceneManager:LoadMapData
  154. void LoadMapDataCompleted(...); // tolua: tileSceneManager:LoadMapDataCompleted
  155. void LoadMiniTex(...); // tolua: tileSceneManager:LoadMiniTex
  156. void LoadMiniTexCompleted(...); // tolua: tileSceneManager:LoadMiniTexCompleted
  157. void LoadObjsInRect(...); // tolua: tileSceneManager:LoadObjsInRect
  158. void LoadOneTile(...); // tolua: tileSceneManager:LoadOneTile
  159. void LoadTilesInRect(...); // tolua: tileSceneManager:LoadTilesInRect
  160. void MarkCanWalk(...); // tolua: tileSceneManager:MarkCanWalk
  161. void SetAtlasSplit(...); // tolua: tileSceneManager:SetAtlasSplit
  162. void SetCamera(...); // tolua: tileSceneManager:SetCamera
  163. void SetDownLoadingMax(...); // tolua: tileSceneManager:SetDownLoadingMax
  164. void SetFrameAnimOffset(...); // tolua: tileSceneManager:SetFrameAnimOffset
  165. void SetIgnoreAnim(...); // tolua: tileSceneManager:SetIgnoreAnim
  166. void SetLaodingLimit(...); // tolua: tileSceneManager:SetLaodingLimit
  167. void SetLoadMapDataCallback(...); // tolua: tileSceneManager:SetLoadMapDataCallback
  168. void SetLoadMiniCallback(...); // tolua: tileSceneManager:SetLoadMiniCallback
  169. void SetLoadParam(...); // tolua: tileSceneManager:SetLoadParam
  170. void SetMapGridSize(...); // tolua: tileSceneManager:SetMapGridSize
  171. void SetObjBlendFunc(...); // tolua: tileSceneManager:SetObjBlendFunc
  172. void SetObjEnlargeY(...); // tolua: tileSceneManager:SetObjEnlargeY
  173. void SetObjLowZOrder(...); // tolua: tileSceneManager:SetObjLowZOrder
  174. void SetOnCloseDoorFunc(...); // tolua: tileSceneManager:SetOnCloseDoorFunc
  175. void SetOnOpenDoorFunc(...); // tolua: tileSceneManager:SetOnOpenDoorFunc
  176. void SetRootNode(...); // tolua: tileSceneManager:SetRootNode
  177. void SetUnObjLowZOrder(...); // tolua: tileSceneManager:SetUnObjLowZOrder
  178. void SetViewCenterOffset(...); // tolua: tileSceneManager:SetViewCenterOffset
  179. void TestInfo(...); // tolua: tileSceneManager:TestInfo
  180. void Tick(...); // tolua: tileSceneManager:Tick
  181. void UnloadAll(...); // tolua: tileSceneManager:UnloadAll
  182. void UnloadAllAtlas(...); // tolua: tileSceneManager:UnloadAllAtlas
  183. void UnloadAllTile(...); // tolua: tileSceneManager:UnloadAllTile
  184. void UnloadDebugTile(...); // tolua: tileSceneManager:UnloadDebugTile
  185. void UnloadMapData(...); // tolua: tileSceneManager:UnloadMapData
  186. void UnloadMiniTex(...); // tolua: tileSceneManager:UnloadMiniTex
  187. void UnloadObjsInRect(...); // tolua: tileSceneManager:UnloadObjsInRect
  188. void UnloadOneTile(...); // tolua: tileSceneManager:UnloadOneTile
  189. void UnloadOneTileByIdx(...); // tolua: tileSceneManager:UnloadOneTileByIdx
  190. void UnloadSpriteCache(...); // tolua: tileSceneManager:UnloadSpriteCache
  191. void calcScreenAreaRect(...); // tolua: tileSceneManager:calcScreenAreaRect
  192. void calcScreenTiles(...); // tolua: tileSceneManager:calcScreenTiles
  193. void canOpenDoor(...); // tolua: tileSceneManager:canOpenDoor
  194. void changeGateState(...); // tolua: tileSceneManager:changeGateState
  195. void closeDoor(...); // tolua: tileSceneManager:closeDoor
  196. void followPlayer(...); // tolua: tileSceneManager:followPlayer
  197. void loadScreenTile(...); // tolua: tileSceneManager:loadScreenTile
  198. void openDoor(...); // tolua: tileSceneManager:openDoor
  199. void reloadAllTile(...); // tolua: tileSceneManager:reloadAllTile
  200. void setAtlasExpiredInterval(...); // tolua: tileSceneManager:setAtlasExpiredInterval
  201. void setGMResUrl(...); // tolua: tileSceneManager:setGMResUrl
  202. void setGMResVer(...); // tolua: tileSceneManager:setGMResVer
  203. void setTextureMemLimitInMB(...); // tolua: tileSceneManager:setTextureMemLimitInMB
  204. void setTextureMemWarnMB(...); // tolua: tileSceneManager:setTextureMemWarnMB
  205. };
  206. // 贴图地图管理 第3代新格式
  207. class tileSceneManager3 {
  208. void CheckMapDataExpired(...); // tolua: tileSceneManager3:CheckMapDataExpired
  209. void CheckMiniExpired(...); // tolua: tileSceneManager3:CheckMiniExpired
  210. void Cleanup(...); // tolua: tileSceneManager3:Cleanup
  211. void GenTileIdx(...); // tolua: tileSceneManager3:GenTileIdx
  212. void GetMapData2DPtr(...); // tolua: tileSceneManager3:GetMapData2DPtr
  213. void GetMapHeightInPixel(...); // tolua: tileSceneManager3:GetMapHeightInPixel
  214. void GetMapWidthInPixel(...); // tolua: tileSceneManager3:GetMapWidthInPixel
  215. void Init(...); // tolua: tileSceneManager3:Init
  216. void Inst(...); // tolua: tileSceneManager3:Inst
  217. void LoadMap(...); // tolua: tileSceneManager3:LoadMap
  218. void LoadMapData(...); // tolua: tileSceneManager3:LoadMapData
  219. void LoadMapDataCompleted(...); // tolua: tileSceneManager3:LoadMapDataCompleted
  220. void LoadMiniTex(...); // tolua: tileSceneManager3:LoadMiniTex
  221. void LoadMiniTexCompleted(...); // tolua: tileSceneManager3:LoadMiniTexCompleted
  222. void LoadObjsInRect(...); // tolua: tileSceneManager3:LoadObjsInRect
  223. void LoadOneTile(...); // tolua: tileSceneManager3:LoadOneTile
  224. void LoadTilesInRect(...); // tolua: tileSceneManager3:LoadTilesInRect
  225. void MarkCanWalk(...); // tolua: tileSceneManager3:MarkCanWalk
  226. void SetAniFrameTick(...); // tolua: tileSceneManager3:SetAniFrameTick
  227. void SetAtlasFormat(...); // tolua: tileSceneManager3:SetAtlasFormat
  228. void SetAtlasSplit(...); // tolua: tileSceneManager3:SetAtlasSplit
  229. void SetCamera(...); // tolua: tileSceneManager3:SetCamera
  230. void SetDownLoadingMax(...); // tolua: tileSceneManager3:SetDownLoadingMax
  231. void SetLoadMapDataCallback(...); // tolua: tileSceneManager3:SetLoadMapDataCallback
  232. void SetLoadMiniCallback(...); // tolua: tileSceneManager3:SetLoadMiniCallback
  233. void SetLoadParam(...); // tolua: tileSceneManager3:SetLoadParam
  234. void SetObjBlendFunc(...); // tolua: tileSceneManager3:SetObjBlendFunc
  235. void SetObjEnlargeY(...); // tolua: tileSceneManager3:SetObjEnlargeY
  236. void SetObjLowZOrder(...); // tolua: tileSceneManager3:SetObjLowZOrder
  237. void SetOnCloseDoorFunc(...); // tolua: tileSceneManager3:SetOnCloseDoorFunc
  238. void SetOnOpenDoorFunc(...); // tolua: tileSceneManager3:SetOnOpenDoorFunc
  239. void SetRootNode(...); // tolua: tileSceneManager3:SetRootNode
  240. void SetSpriteFormat(...); // tolua: tileSceneManager3:SetSpriteFormat
  241. void SetUnObjLowZOrder(...); // tolua: tileSceneManager3:SetUnObjLowZOrder
  242. void SetViewCenterOffset(...); // tolua: tileSceneManager3:SetViewCenterOffset
  243. void TestInfo(...); // tolua: tileSceneManager3:TestInfo
  244. void Tick(...); // tolua: tileSceneManager3:Tick
  245. void UnloadAll(...); // tolua: tileSceneManager3:UnloadAll
  246. void UnloadAllTile(...); // tolua: tileSceneManager3:UnloadAllTile
  247. void UnloadMapData(...); // tolua: tileSceneManager3:UnloadMapData
  248. void UnloadMiniTex(...); // tolua: tileSceneManager3:UnloadMiniTex
  249. void UnloadObjsInRect(...); // tolua: tileSceneManager3:UnloadObjsInRect
  250. void UnloadOneTile(...); // tolua: tileSceneManager3:UnloadOneTile
  251. void UnloadOneTileByIdx(...); // tolua: tileSceneManager3:UnloadOneTileByIdx
  252. void calcScreenAreaRect(...); // tolua: tileSceneManager3:calcScreenAreaRect
  253. void calcScreenTiles(...); // tolua: tileSceneManager3:calcScreenTiles
  254. void canOpenDoor(...); // tolua: tileSceneManager3:canOpenDoor
  255. void changeGateState(...); // tolua: tileSceneManager3:changeGateState
  256. void closeDoor(...); // tolua: tileSceneManager3:closeDoor
  257. void followPlayer(...); // tolua: tileSceneManager3:followPlayer
  258. void loadScreenTile(...); // tolua: tileSceneManager3:loadScreenTile
  259. void openDoor(...); // tolua: tileSceneManager3:openDoor
  260. void reloadAllTile(...); // tolua: tileSceneManager3:reloadAllTile
  261. void setAtlasExpiredInterval(...); // tolua: tileSceneManager3:setAtlasExpiredInterval
  262. void setGMResUrl(...); // tolua: tileSceneManager3:setGMResUrl
  263. void setTextureMemLimitInMB(...); // tolua: tileSceneManager3:setTextureMemLimitInMB
  264. };
  265. // 场景管理: LD地图/坐标换算
  266. class sceneManager {
  267. void Cleanup(...); // tolua: sceneManager:Cleanup
  268. void FindPath(...); // tolua: sceneManager:FindPath
  269. void GetMapData2DPtr(...); // tolua: sceneManager:GetMapData2DPtr
  270. void GetMapHeightInPixel(...); // tolua: sceneManager:GetMapHeightInPixel
  271. void GetMapWidthInPixel(...); // tolua: sceneManager:GetMapWidthInPixel
  272. void Init(...); // tolua: sceneManager:Init
  273. void Inst(...); // tolua: sceneManager:Inst
  274. void LoadLDMap(...); // tolua: sceneManager:LoadLDMap
  275. void LoadMap(...); // tolua: sceneManager:LoadMap
  276. void MapPos2WorldPos(...); // tolua: sceneManager:MapPos2WorldPos
  277. void SetMapNode(...); // tolua: sceneManager:SetMapNode
  278. void SetViewCenterOffset(...); // tolua: sceneManager:SetViewCenterOffset
  279. void Tick(...); // tolua: sceneManager:Tick
  280. void WorldPos2MapPos(...); // tolua: sceneManager:WorldPos2MapPos
  281. };
  282. // 2D网格基类
  283. class mapData2D {
  284. void getMapDataCols(...); // tolua: mapData2D:getMapDataCols
  285. void getMapDataRows(...); // tolua: mapData2D:getMapDataRows
  286. void isCover(...); // tolua: mapData2D:isCover
  287. void isObstacle(...); // tolua: mapData2D:isObstacle
  288. };
  289. // 矩形网格
  290. class mapData2DRectGrid {
  291. void getMapDataCols(...); // tolua: mapData2DRectGrid:getMapDataCols
  292. void getMapDataRows(...); // tolua: mapData2DRectGrid:getMapDataRows
  293. void getUnitMapDataHeight(...); // tolua: mapData2DRectGrid:getUnitMapDataHeight
  294. void getUnitMapDataWidth(...); // tolua: mapData2DRectGrid:getUnitMapDataWidth
  295. void isCover(...); // tolua: mapData2DRectGrid:isCover
  296. void isObstacle(...); // tolua: mapData2DRectGrid:isObstacle
  297. void setCover(...); // tolua: mapData2DRectGrid:setCover
  298. void setObstacle(...); // tolua: mapData2DRectGrid:setObstacle
  299. };
  300. // 单格数据: 前/中/背景/门/光
  301. class mapData2DTile {
  302. void Create(...); // tolua: mapData2DTile:Create
  303. void Destroy(...); // tolua: mapData2DTile:Destroy
  304. void GetAniFrame(...); // tolua: mapData2DTile:GetAniFrame
  305. void GetAniTick(...); // tolua: mapData2DTile:GetAniTick
  306. void GetBkImgIdx(...); // tolua: mapData2DTile:GetBkImgIdx
  307. void GetDoorIndex(...); // tolua: mapData2DTile:GetDoorIndex
  308. void GetDoorOffset(...); // tolua: mapData2DTile:GetDoorOffset
  309. void GetFrImgIdx(...); // tolua: mapData2DTile:GetFrImgIdx
  310. void GetLight(...); // tolua: mapData2DTile:GetLight
  311. void GetMidImgIdx(...); // tolua: mapData2DTile:GetMidImgIdx
  312. void GetObjArea(...); // tolua: mapData2DTile:GetObjArea
  313. void GetSmTilesArea(...); // tolua: mapData2DTile:GetSmTilesArea
  314. void GetTileInfo(...); // tolua: mapData2DTile:GetTileInfo
  315. void GetTileInfoEx(...); // tolua: mapData2DTile:GetTileInfoEx
  316. void GetTilesArea(...); // tolua: mapData2DTile:GetTilesArea
  317. void LoadData(...); // tolua: mapData2DTile:LoadData
  318. void getMapDataCols(...); // tolua: mapData2DTile:getMapDataCols
  319. void getMapDataRows(...); // tolua: mapData2DTile:getMapDataRows
  320. void getVersion(...); // tolua: mapData2DTile:getVersion
  321. void isCover(...); // tolua: mapData2DTile:isCover
  322. void isObstacle(...); // tolua: mapData2DTile:isObstacle
  323. void setCover(...); // tolua: mapData2DTile:setCover
  324. void setDoorOffset(...); // tolua: mapData2DTile:setDoorOffset
  325. void setObstacle(...); // tolua: mapData2DTile:setObstacle
  326. };
  327. // 单格数据v3
  328. class mapData2DTile3 {
  329. void CloseDoor(...); // tolua: mapData2DTile3:CloseDoor
  330. void GetAllLights(...); // tolua: mapData2DTile3:GetAllLights
  331. void GetDoor(...); // tolua: mapData2DTile3:GetDoor
  332. void GetDoorImgIdx(...); // tolua: mapData2DTile3:GetDoorImgIdx
  333. void GetLight(...); // tolua: mapData2DTile3:GetLight
  334. void IsDoorOpen(...); // tolua: mapData2DTile3:IsDoorOpen
  335. void LoadData(...); // tolua: mapData2DTile3:LoadData
  336. void OpenDoor(...); // tolua: mapData2DTile3:OpenDoor
  337. void getCellInfo(...); // tolua: mapData2DTile3:getCellInfo
  338. void getCellInfoFlag(...); // tolua: mapData2DTile3:getCellInfoFlag
  339. void getDesc(...); // tolua: mapData2DTile3:getDesc
  340. void getMapDataCols(...); // tolua: mapData2DTile3:getMapDataCols
  341. void getMapDataRows(...); // tolua: mapData2DTile3:getMapDataRows
  342. void getTileInfo(...); // tolua: mapData2DTile3:getTileInfo
  343. void isCover(...); // tolua: mapData2DTile3:isCover
  344. void isObstacle(...); // tolua: mapData2DTile3:isObstacle
  345. void mapData2DTile3(...); // tolua: mapData2DTile3:mapData2DTile3
  346. void setCover(...); // tolua: mapData2DTile3:setCover
  347. void setObstacle(...); // tolua: mapData2DTile3:setObstacle
  348. };
  349. // ==================== 寻路AI组 ====================
  350. // 寻路调度单例
  351. class aiManager {
  352. void FindPath(...); // tolua: aiManager:FindPath
  353. void FindPathLimits(...); // tolua: aiManager:FindPathLimits
  354. void GetPathFind(...); // tolua: aiManager:GetPathFind
  355. void Inst(...); // tolua: aiManager:Inst
  356. void Tick(...); // tolua: aiManager:Tick
  357. };
  358. // 单次寻路结果
  359. class pathFind {
  360. void FindPath(...); // tolua: pathFind:FindPath
  361. void GetPathLength(...); // tolua: pathFind:GetPathLength
  362. void GetPathPoints(...); // tolua: pathFind:GetPathPoints
  363. };
  364. // ==================== 桥接组 ====================
  365. // 引擎桥: XXTEA/RSA/模块开关
  366. class LuaBridgeCtl {
  367. void CheckClientCount(...); // tolua: LuaBridgeCtl:CheckClientCount
  368. void CreateNewState(...); // tolua: LuaBridgeCtl:CreateNewState
  369. void GetModulesSwitch(...); // tolua: LuaBridgeCtl:GetModulesSwitch
  370. void GetNewFoldername(...); // tolua: LuaBridgeCtl:GetNewFoldername
  371. void Inst(...); // tolua: LuaBridgeCtl:Inst
  372. void IsInit3rdparty(...); // tolua: LuaBridgeCtl:IsInit3rdparty
  373. void RsaDecryptPri(...); // tolua: LuaBridgeCtl:RsaDecryptPri
  374. void RsaEncryptPub(...); // tolua: LuaBridgeCtl:RsaEncryptPub
  375. void Set3rdpartyInited(...); // tolua: LuaBridgeCtl:Set3rdpartyInited
  376. void SetModulesSwitch(...); // tolua: LuaBridgeCtl:SetModulesSwitch
  377. void SetXXTEAKeyGM(...); // tolua: LuaBridgeCtl:SetXXTEAKeyGM
  378. };
  379. // 壳层桥: GN_/NG_ 总枢纽
  380. class NativeBridgeCtl {
  381. void Inst(...); // tolua: NativeBridgeCtl:Inst
  382. void addNativeSelector(...); // tolua: NativeBridgeCtl:addNativeSelector
  383. void printSelectorList(...); // tolua: NativeBridgeCtl:printSelectorList
  384. void removeSelectorsInGroup(...); // tolua: NativeBridgeCtl:removeSelectorsInGroup
  385. void sendMessage2Native(...); // tolua: NativeBridgeCtl:sendMessage2Native
  386. };
  387. // C++侧游戏状态镜像
  388. class gameStateMgr {
  389. void Inst(...); // tolua: gameStateMgr:Inst
  390. void RegisterLuaHandler(...); // tolua: gameStateMgr:RegisterLuaHandler
  391. };
  392. // ==================== 环境存储组 ====================
  393. // 全局环境单例(小写e为原名)
  394. class gameEnviroment {
  395. void GetBulletinPHPUrl(...); // tolua: gameEnviroment:GetBulletinPHPUrl
  396. void GetDownloadRootURL(...); // tolua: gameEnviroment:GetDownloadRootURL
  397. void GetLoginAccount(...); // tolua: gameEnviroment:GetLoginAccount
  398. void GetLoginPHPUrl(...); // tolua: gameEnviroment:GetLoginPHPUrl
  399. void GetLoginServer(...); // tolua: gameEnviroment:GetLoginServer
  400. void GetMainDesignSize(...); // tolua: gameEnviroment:GetMainDesignSize
  401. void GetMainResolutionPolicy(...); // tolua: gameEnviroment:GetMainResolutionPolicy
  402. void GetNetClient(...); // tolua: gameEnviroment:GetNetClient
  403. void GetNormalDesignSize(...); // tolua: gameEnviroment:GetNormalDesignSize
  404. void GetNormalResolutionPolicy(...); // tolua: gameEnviroment:GetNormalResolutionPolicy
  405. void GetPackageVer(...); // tolua: gameEnviroment:GetPackageVer
  406. void GetVersionPHPUrl(...); // tolua: gameEnviroment:GetVersionPHPUrl
  407. void Inst(...); // tolua: gameEnviroment:Inst
  408. void SetBulletinPHPUrl(...); // tolua: gameEnviroment:SetBulletinPHPUrl
  409. void SetDownloadRootURL(...); // tolua: gameEnviroment:SetDownloadRootURL
  410. void SetLoginAccount(...); // tolua: gameEnviroment:SetLoginAccount
  411. void SetLoginPHPUrl(...); // tolua: gameEnviroment:SetLoginPHPUrl
  412. void SetLoginServer(...); // tolua: gameEnviroment:SetLoginServer
  413. void SetMainDesignSize(...); // tolua: gameEnviroment:SetMainDesignSize
  414. void SetMainResolutionPolicy(...); // tolua: gameEnviroment:SetMainResolutionPolicy
  415. void SetNetClient(...); // tolua: gameEnviroment:SetNetClient
  416. void SetNormalDesignSize(...); // tolua: gameEnviroment:SetNormalDesignSize
  417. void SetNormalResolutionPolicy(...); // tolua: gameEnviroment:SetNormalResolutionPolicy
  418. void SetPackageVer(...); // tolua: gameEnviroment:SetPackageVer
  419. void SetVersionPHPUrl(...); // tolua: gameEnviroment:SetVersionPHPUrl
  420. };
  421. // KV持久化存储
  422. class UserData {
  423. void UserData(...); // tolua: UserData:UserData
  424. void getBoolForKey(...); // tolua: UserData:getBoolForKey
  425. void getDoubleForKey(...); // tolua: UserData:getDoubleForKey
  426. void getFloatForKey(...); // tolua: UserData:getFloatForKey
  427. void getIntegerForKey(...); // tolua: UserData:getIntegerForKey
  428. void getStringForKey(...); // tolua: UserData:getStringForKey
  429. void readFileDataToMap(...); // tolua: UserData:readFileDataToMap
  430. void setBoolForKey(...); // tolua: UserData:setBoolForKey
  431. void setDoubleForKey(...); // tolua: UserData:setDoubleForKey
  432. void setFloatForKey(...); // tolua: UserData:setFloatForKey
  433. void setIntegerForKey(...); // tolua: UserData:setIntegerForKey
  434. void setStringForKey(...); // tolua: UserData:setStringForKey
  435. void writeMapDataToFile(...); // tolua: UserData:writeMapDataToFile
  436. };
  437. // ==================== 下载组 ====================
  438. // curl封装热更下载器
  439. class httpDownloader {
  440. void AsyncDownloadEasy(...); // tolua: httpDownloader:AsyncDownloadEasy
  441. void AsyncDownloadEx(...); // tolua: httpDownloader:AsyncDownloadEx
  442. void CleanupAllDownload(...); // tolua: httpDownloader:CleanupAllDownload
  443. void Destroy(...); // tolua: httpDownloader:Destroy
  444. void EnableDownload(...); // tolua: httpDownloader:EnableDownload
  445. void GetLastCurlCode(...); // tolua: httpDownloader:GetLastCurlCode
  446. void GetLastHttpCode(...); // tolua: httpDownloader:GetLastHttpCode
  447. void Inst(...); // tolua: httpDownloader:Inst
  448. void IsEnableDownaload(...); // tolua: httpDownloader:IsEnableDownaload
  449. void IsLastDownloadOK(...); // tolua: httpDownloader:IsLastDownloadOK
  450. void SetDownloadDir(...); // tolua: httpDownloader:SetDownloadDir
  451. void SetDownloadProgress(...); // tolua: httpDownloader:SetDownloadProgress
  452. void SetDownloadURL(...); // tolua: httpDownloader:SetDownloadURL
  453. void SetResourceVer(...); // tolua: httpDownloader:SetResourceVer
  454. void SetSpeedLimit(...); // tolua: httpDownloader:SetSpeedLimit
  455. void SetTimeOut(...); // tolua: httpDownloader:SetTimeOut
  456. void httpDownloader(...); // tolua: httpDownloader:httpDownloader
  457. };
  458. // ==================== 渲染增强组 ====================
  459. // 批量文本节点(伤害数字)
  460. class LabelBatchNode {
  461. void addLabelString(...); // tolua: LabelBatchNode:addLabelString
  462. void create(...); // tolua: LabelBatchNode:create
  463. void createLabelString(...); // tolua: LabelBatchNode:createLabelString
  464. void destroyLabelString(...); // tolua: LabelBatchNode:destroyLabelString
  465. void getFontAltas(...); // tolua: LabelBatchNode:getFontAltas
  466. void hasOutline(...); // tolua: LabelBatchNode:hasOutline
  467. void refCameraFontScale(...); // tolua: LabelBatchNode:refCameraFontScale
  468. void removeLabelString(...); // tolua: LabelBatchNode:removeLabelString
  469. void setAliasTexParameters(...); // tolua: LabelBatchNode:setAliasTexParameters
  470. };
  471. // 批量文本单元
  472. class LabelBatchString {
  473. void LabelBatchString(...); // tolua: LabelBatchString:LabelBatchString
  474. void cleanup(...); // tolua: LabelBatchString:cleanup
  475. void getColor(...); // tolua: LabelBatchString:getColor
  476. void getContentSize(...); // tolua: LabelBatchString:getContentSize
  477. void getLocalZ(...); // tolua: LabelBatchString:getLocalZ
  478. void getPosition(...); // tolua: LabelBatchString:getPosition
  479. void getString(...); // tolua: LabelBatchString:getString
  480. void isVisible(...); // tolua: LabelBatchString:isVisible
  481. void setAlignment(...); // tolua: LabelBatchString:setAlignment
  482. void setColor(...); // tolua: LabelBatchString:setColor
  483. void setLocalZ(...); // tolua: LabelBatchString:setLocalZ
  484. void setOpacity(...); // tolua: LabelBatchString:setOpacity
  485. void setPosition(...); // tolua: LabelBatchString:setPosition
  486. void setString(...); // tolua: LabelBatchString:setString
  487. void setVisible(...); // tolua: LabelBatchString:setVisible
  488. };
  489. // 程序化纹理(战争迷雾)
  490. class CustomTexture2D {
  491. void ResetData(...); // tolua: CustomTexture2D:ResetData
  492. void SetCircleData(...); // tolua: CustomTexture2D:SetCircleData
  493. void SetData(...); // tolua: CustomTexture2D:SetData
  494. void SetSquareData(...); // tolua: CustomTexture2D:SetSquareData
  495. void UpdateTexture(...); // tolua: CustomTexture2D:UpdateTexture
  496. void create(...); // tolua: CustomTexture2D:create
  497. };
  498. // 可注册Lua回调的精灵
  499. class LuaSprite {
  500. void LuaSprite(...); // tolua: LuaSprite:LuaSprite
  501. void RegisterLuaHandler(...); // tolua: LuaSprite:RegisterLuaHandler
  502. };
  503. // actor移动Action
  504. class ActorMoveTo {
  505. void ActorMoveTo(...); // tolua: ActorMoveTo:ActorMoveTo
  506. void create(...); // tolua: ActorMoveTo:create
  507. };
  508. // 下划线组件
  509. class UnderLineComponent {
  510. void attachToNode(...); // tolua: UnderLineComponent:attachToNode
  511. void create(...); // tolua: UnderLineComponent:create
  512. void init(...); // tolua: UnderLineComponent:init
  513. };
  514. // 时间动作(cocos扩展)
  515. class ActionInterval {
  516. void setElapsed(...); // tolua: ActionInterval:setElapsed
  517. };
  518. // ==================== 疑似测试残留 ====================
  519. //
  520. class ZZZ {
  521. void aaa(...); // tolua: ZZZ:aaa
  522. };
  523. //
  524. class L0L {
  525. void LA(...); // tolua: L0L:LA
  526. };
  527. //
  528. class nQ {
  529. void B(...); // tolua: nQ:B
  530. };
  531. //
  532. class s1s {
  533. void sHsX(...); // tolua: s1s:sHsX
  534. };