Blame view

src/actions/RadioAction.lua 966 Bytes
782ee57d   liuzujun   多编队功能
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  local _M = {}
  
  function _M.listRpc(agent, data)
  	local role = agent.role
  	local roleId = role:getProperty("id")
  	local now = skynet.timex()
  	local result = {}
  
  
  	SendPacket(actionCodes.Email_listRpc, MsgPack.pack({list = result}))
  	return true
  end
  
  -- 获取英雄大成功率
  local function getHeroCoef()
      return 0 
  end
  
  function _M.startQuestRpc(agent, data)
  	local role = agent.role
  	local msg = MsgPack.unpack(data)
  	local id = msg.id
  	local heros = msg.heros
      local result = {}
      --  check id
      --  check hero
      -- start quest, set finish time
  
  	SendPacket(actionCodes.Email_listRpc, MsgPack.pack({list = result}))
  	return true
  end
  
  function _M.finishQuestRpc(agent, data)
  	local role = agent.role
  	local msg = MsgPack.unpack(data)
  	local id = msg.id
      local result = {}
      -- check finish time
      --  check id
      --  get heros
      -- send award
  
  	SendPacket(actionCodes.Email_listRpc, MsgPack.pack({list = result}))
  	return true
  end
  
  return _M