static StackObject *get_Target_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Hotfix_LT.Combat.CombatDamageEvent instance_of_this_method = (Hotfix_LT.Combat.CombatDamageEvent) typeof(Hotfix_LT.Combat.CombatDamageEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.Target; return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static StackObject *Invoke_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); Hotfix_LT.Combat.CombatDamageEvent @obj = (Hotfix_LT.Combat.CombatDamageEvent) typeof(Hotfix_LT.Combat.CombatDamageEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Action <Hotfix_LT.Combat.CombatDamageEvent> instance_of_this_method = (System.Action <Hotfix_LT.Combat.CombatDamageEvent>) typeof(System.Action <Hotfix_LT.Combat.CombatDamageEvent>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Invoke(@obj); return(__ret); }
void OnDamageListener(Hotfix_LT.Combat.CombatDamageEvent e) { UpdateHP(e.Target); Hotfix_LT.Combat.CombatInfoData.GetInstance().LogString(string.Format("target = {0}, dmg = {1}\n", e.Target.name, e.Damage)); }