仙魔无双SDK
面向策划逻辑制作的游戏开发包
|
EventListener 公用库 更多...
函数 | |
function | reloadScriptFile (file_name) |
重新加载脚本 更多... | |
function | mallocGVar (self) |
为EventListener(即self)分配一个全局变量 更多... | |
function | gVar (self) |
获取EventListener(即self)专用的全局变量 更多... | |
function | freeGVar (self) |
释放EventListene(即self)r全局变量 更多... | |
local function | initProcStates (self, cfg) |
local function | startProcStates (self) |
local function | _getGProcState (self) |
local function | _getCurProcState (self) |
local function | _callGProcState (self, fun_name) |
local function | _callCurProcState (self, fun_name) |
function | callCurProcState (self, fun_name,...) |
function | nextProcState (self) |
切换到下一个过程状态机 更多... | |
function | freeProcStates (self) |
local function | initRoleMgr (self) |
local function | findRoleInMgr (self, role_obj_id) |
local function | addRoleToMgr (self, role_obj_id) |
local function | delRoleFromMgr (self, role_obj_id) |
local function | freeRoleMgr (self) |
function | setRoleProp (self, role_obj_id, prop_name, prop_value) |
给角色设置一个属性 更多... | |
function | getRoleProp (self, role_obj_id, prop_name) |
获取角色一个属性 更多... | |
function | getAllRolesInMgr (self) |
获取所有角色信息,返回一个表 更多... | |
function | getRolesHaveRewardInMgr (self) |
获取所有有奖励的角色信息,返回一个表 更多... | |
function | getRolesCntInMgr (self) |
获取管理器中所有角色的数量 更多... | |
function | addBuffToAllRoles (self, buffer_id) |
给管理器中所有角色添加一个buff 更多... | |
function | removeBuffFromAllRoles (self, buffer_id) |
给管理器中所有角色删除一个buff 更多... | |
function | forEachRole (self, fun, custom_arg) |
给管理器中所有角色做一个操作 更多... | |
local function | getRoleProp_KillMonsterCnt (self, role_obj_id) |
local function | getRoleProp_KillMonsterScore (self, role_obj_id) |
local function | getRoleProp_QuickKillMonsterCnt (self, role_obj_id) |
local function | getRoleProp_TopQuickKillMonsterCnt (self, role_obj_id) |
function | getRoleProp_KillRoleCnt (self, role_obj_id) |
local function | setRoleProp_KillRoleCnt (self, role_obj_id, cnt) |
function | addRoleProp_Interact (self, role_obj_id, cnt, score) |
添加角色交互属性(次数,分数) 更多... | |
local function | initSceneTotalTime (self, total_time) |
local function | getSceneLeftTime (self) |
local function | getSceneUseTime (self) |
local function | isSceneOverTime (self) |
local function | getSceneResultLvl (score, cfg) |
function | syncFBSceneResult (self, wait_to_put_award_time) |
同步结算结果(关卡副本常用) 更多... | |
local function | syncFBSceneResultAward (self) |
local function | syncFBSceneDesc (self, role_obj_id) |
function | setEvtProcessor_IncKillRole (self, fun) |
设置“杀角色数量增加”处理器 更多... | |
function | setEvtProcessor_IncCurQuickKillRole (self, fun) |
设置“当前连续杀角色数量增加”处理器 更多... | |
function | setEvtProcessor_IncTopQuickKillRole (self, fun) |
设置“最高连续杀角色数量增加”处理器 更多... | |
local function | OnInitGVar (self) |
local function | OnInitRegListener (self) |
local function | OnRoleEnterScene (self, role_obj_id) |
local function | OnRoleLeaveScene (self, role_obj_id) |
local function | OnMonsterBorn (self, monster_obj_id, monster_template_id) |
local function | OnRoleBorn (self, role_obj_id) |
local function | OnMonsterDead (self, monster_obj_id, monster_template_id, killer_obj_id) |
local function | onRoleDeadBeforeNTF (self, role_obj_id, killer_obj_id) |
local function | OnRoleDead (self, role_obj_id, killer_obj_id) |
local function | OnRoleEnterTrigger (self, role_obj_id, trigger_id) |
local function | OnRoleLeaveTrigger (self, role_obj_id, trigger_id) |
local function | OnRoleEnterArea (self, role_obj_id, area_id) |
local function | OnRoleLeaveArea (self, role_obj_id, area_id) |
local function | OnRoleAddBuff (self, role_obj_id, buff_id) |
local function | OnRoleDelBuff (self, role_obj_id, buff_id) |
local function | OnMonsterAddBuff (self, monster_obj_id, monster_template_id, buff_id) |
local function | OnMonsterDelBuff (self, monster_obj_id, monster_template_id, buff_id) |
local function | OnRoleDo (self, role_obj_id, do_id) |
local function | OnRoleGather (self, role_obj_id, gather_obj_id, template_id) |
local function | OnDbg (self, role_obj_id, gather_obj_id, template_id) |
local function | OnRelive (self, role_obj_id) |
local function | OnEnterTeam (self, role_obj_id) |
local function | OnLeaveTeam (self, role_obj_id, kicker_role_obj_id) |
local function | OnInteract (self, role_obj_id, monster_template_id, monster_obj_id) |
local function | OnFreeMsg (self, role_obj_id, free_msg) |
local function | OnCustomEvent (self, event_id, obj_id, template_id, argv) |
local function | OnTimerExEvent (self, timer_id) |
local function | OnSceneTimeOver (self) |
local function | OnFinally (self) |
变量 | |
EventType | None = 0 |
EventListener事件 | |
EventType | Born = 1 |
EventType | Died = 2 |
EventType | EnterScene = 3 |
EventType | LeaveScene = 4 |
EventType | AddBuff = 5 |
EventType | DelBuff = 6 |
EventType | Do = 7 |
EventType | EnterArea = 8 |
EventType | LeaveArea = 9 |
EventType | EnterTrigger = 10 |
EventType | LeaveTrigger = 11 |
EventType | Gather = 12 |
EventType | Interact = 13 |
EventType | FreeMsg = 14 |
EventType | Dbg = 15 |
EventType | Relive = 16 |
EventType | EnterTeam = 17 |
EventType | LeaveTeam = 18 |
EventType | GotFlexibleArgv = 19 |
EventType | DeadButDeny = 20 |
EventType | GuildBuildLvlUp = 21 |
EventType | BeforeDiedNTF = 22 |
EventType | Custom_Interact = 1000 |
EventType | Custom_EnterCombat = 1001 |
EventType | Custom_LeaveCombat = 1002 |
EventType | Custom_PassiveHit = 1003 |
TollgateLvl | Normal = 0 |
TollgateLvl | Hard = 1 |
TollgateLvl | VeryHard = 2 |
TollgateLvl | SuperHard = 3 |
local | __GVar = {} |
local | emptyFunction = function-(...) return end |
EventListenerFrameWork = {} | |
EventListener 公用库