![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Lua
孤寂山谷的风
这个作者很懒,什么都没留下…
展开
-
将数组中的元素降序排列,冒泡排序
nums = {3,11,2,123,1}len = #numsfor i = 1,len-1 do for j = 1,len-i do if nums[j]>nums[j+1] then temp= nums[j+1] nums[j+1]= nums[j] nums[j]= temp ...转载 2018-05-25 10:05:15 · 3913 阅读 · 0 评论 -
Lua派发事件与消息监听
LoginScene类:local UserinfomationData = require "data.UserinfomationData" --引用角色信息数--收到服务器发来的角色信息function LoginScene:onCmdRole(args) local proto = args.proto local userinfomationData = Userinf...原创 2018-06-23 11:58:28 · 2945 阅读 · 0 评论