/* 文件名:PushDamage.nut 路径:Base/CallBack/PushDamage.nut 创建日期:2024-08-30 14:41 文件用途:发生伤害时 */ PushDamageFontDataFuncTab <- {}; PushDamageFontFuncTab <- {}; function Sq_PushDamageData(ObjAddress, MySelfAddress, Value) { // print("MyCharacter: " + format("%02x", L_sq_RA(0x1AB7CDC))); // print("ObjAddress: " + format("%02x", ObjAddress)); // print("A1: " + format("%02x", A1)); // print("A2: " + format("%02x", A2)); // print(" "); foreach(Func in PushDamageFontFuncTab) { Func(ObjAddress, MySelfAddress, Value); } } function Sq_PushDamageFontData(ObjAddress, X, Y, Z, Value, Type, A1, A2) { local Flag = true; foreach(Func in PushDamageFontDataFuncTab) { local Ret = Func(ObjAddress, X, Y, Z, Value, Type, A1, A2); if (Ret == false) { Flag = false; } } return Flag; }