132 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			132 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
|  | /* | ||
|  | 文件名:ATGunner_po.nut | ||
|  | 路径:character/ATGunner/ATGunner_po.nut | ||
|  | 创建日期:2022-09-10	21:59 | ||
|  | 文件用途:女枪手PO文件 | ||
|  | */ | ||
|  | 
 | ||
|  | if (!getroottable().rawin("setCustomData_po_atgunner_po_Table")) setCustomData_po_atgunner_po_Table <- {} | ||
|  | function setCustomData_po_atgunner_po(obj, receiveData) | ||
|  | { | ||
|  |     if (!obj) | ||
|  |         return; | ||
|  |     local skillid = receiveData.readDword(); //开始读取  四字节数 数据 | ||
|  |     obj.getVar("skill").clear_vector(); //清空 Skill 储存器 | ||
|  |     obj.getVar("skill").push_vector(skillid); //向 Skill 储存器 push内容 | ||
|  | 
 | ||
|  | 
 | ||
|  |     //根据 技能ID 判断执行函数 | ||
|  |     if (setCustomData_po_atgunner_po_Table.rawin(skillid)) { | ||
|  |         setCustomData_po_atgunner_po_Table[skillid](obj, receiveData); | ||
|  |     } | ||
|  | 
 | ||
|  | } | ||
|  | 
 | ||
|  | if (!getroottable().rawin("setState_po_atgunner_po_Table")) setState_po_atgunner_po_Table <- {} | ||
|  | function setState_po_atgunner_po(obj, state, datas) | ||
|  | { | ||
|  |     if (!obj) return; | ||
|  |     local skillid = obj.getVar("skill").get_vector(0); | ||
|  | 
 | ||
|  |     //根据 技能ID 判断执行函数 | ||
|  |     if (setState_po_atgunner_po_Table.rawin(skillid)) { | ||
|  |         setState_po_atgunner_po_Table[skillid](obj, state, datas); | ||
|  |     } | ||
|  | } | ||
|  | 
 | ||
|  | 
 | ||
|  | if (!getroottable().rawin("procAppend_po_atgunner_po_Table")) procAppend_po_atgunner_po_Table <- {} | ||
|  | function procAppend_po_atgunner_po(obj) //处于obj特效状态中 | ||
|  | { | ||
|  | 
 | ||
|  |     if (!obj) | ||
|  |         return; | ||
|  |     local skillid = obj.getVar("skill").get_vector(0); //获取 Skill 储存器 0号位内容 | ||
|  | 
 | ||
|  | 
 | ||
|  |     //根据 技能ID 判断执行函数 | ||
|  |     if (procAppend_po_atgunner_po_Table.rawin(skillid)) { | ||
|  |         procAppend_po_atgunner_po_Table[skillid](obj); | ||
|  |     } | ||
|  | } | ||
|  | 
 | ||
|  | if (!getroottable().rawin("onAttack_po_atgunner_po_Table")) onAttack_po_atgunner_po_Table <- {} | ||
|  | function onAttack_po_atgunner_po(obj, damager, boundingBox, isStuck) | ||
|  | { | ||
|  |     if (!obj) | ||
|  |         return; | ||
|  |     if (!damager) | ||
|  |         return 0; | ||
|  | 
 | ||
|  |     local skillid = obj.getVar("skill").get_vector(0); | ||
|  | 
 | ||
|  | 
 | ||
|  |     //根据 技能ID 判断执行函数 | ||
|  |     if (onAttack_po_atgunner_po_Table.rawin(skillid)) { | ||
|  |         onAttack_po_atgunner_po_Table[skillid](obj, damager, boundingBox, isStuck); | ||
|  |     } | ||
|  | 
 | ||
|  |     return 1; | ||
|  | } | ||
|  | 
 | ||
|  | 
 | ||
|  | if (!getroottable().rawin("onEndCurrentAni_po_atgunner_po_Table")) onEndCurrentAni_po_atgunner_po_Table <- {} | ||
|  | function onEndCurrentAni_po_atgunner_po(obj) | ||
|  | { | ||
|  |     if (!obj) | ||
|  |         return; | ||
|  |     local skillid = obj.getVar("skill").get_vector(0); | ||
|  | 
 | ||
|  | 
 | ||
|  |     //根据 技能ID 判断执行函数 | ||
|  |     if (onEndCurrentAni_po_atgunner_po_Table.rawin(skillid)) { | ||
|  |         onEndCurrentAni_po_atgunner_po_Table[skillid](obj); | ||
|  |     } | ||
|  | 
 | ||
|  | } | ||
|  | 
 | ||
|  | 
 | ||
|  | if (!getroottable().rawin("onKeyFrameFlag_po_atgunner_po_Table")) onKeyFrameFlag_po_atgunner_po_Table <- {} | ||
|  | function onKeyFrameFlag_po_atgunner_po(obj, flagIndex) | ||
|  | { | ||
|  |     if (!obj) | ||
|  |         return; | ||
|  |     local skillid = obj.getVar("skill").get_vector(0); | ||
|  | 
 | ||
|  | 
 | ||
|  |     //根据 技能ID 判断执行函数 | ||
|  |     if (onKeyFrameFlag_po_atgunner_po_Table.rawin(skillid)) { | ||
|  |         onKeyFrameFlag_po_atgunner_po_Table[skillid](obj, flagIndex); | ||
|  |     } | ||
|  | 
 | ||
|  |     return true; | ||
|  | } | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | function onTimeEvent_po_atgunner_po(obj, timeEventIndex, timeEventCount) | ||
|  | { | ||
|  |     if (!obj) | ||
|  |         return; | ||
|  |     local skillid = obj.getVar("skill").get_vector(0); | ||
|  | 
 | ||
|  | } | ||
|  | 
 | ||
|  | 
 | ||
|  | function getCustomHitEffectFileName_po_atgunner_po(obj, isAttachOnDamager) | ||
|  | { | ||
|  |     if (!obj) | ||
|  |         return; | ||
|  |     local skillid = obj.getVar("skill").get_vector(0); | ||
|  | 
 | ||
|  | } | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | function onChangeSkillEffect_po_atgunner_po(obj, skillIndex, reciveData) | ||
|  | { | ||
|  |     if (!obj) | ||
|  |         return; | ||
|  |     local skillid = obj.getVar("skill").get_vector(0); | ||
|  | 
 | ||
|  | } |