public override RefParamOperator TriggerEnter(PoolObjHandle <ActorRoot> src, PoolObjHandle <ActorRoot> atker, ITrigger inTrigger) { GameObject inSrc = src ? src.handle.gameObject : null; GameObject gameObject = (inTrigger != null) ? inTrigger.GetTriggerObj() : null; if (!gameObject) { gameObject = (atker ? atker.handle.gameObject : null); } this.PlayAgeActionPrivate(AreaEventTrigger.EActTiming.Enter, inSrc, gameObject); ListView <Action> listView = this.PlayAgeActionPrivate(AreaEventTrigger.EActTiming.EnterDura, inSrc, gameObject); int num = this.RefObjList.Length; if (num > 0) { for (int i = 0; i < num; i++) { this.PlayAgeActionPrivate(AreaEventTrigger.EActTiming.Enter, this.RefObjList[i], this.RefObjList[i]); listView.AddRange(this.PlayAgeActionPrivate(AreaEventTrigger.EActTiming.EnterDura, this.RefObjList[i], this.RefObjList[i])); } } RefParamOperator refParamOperator = new RefParamOperator(); refParamOperator.AddRefParam("TriggerActionAgeEnterDura", listView); return(refParamOperator); }
public override RefParamOperator TriggerEnter(PoolObjHandle <ActorRoot> src, PoolObjHandle <ActorRoot> atker, ITrigger inTrigger) { int enterUniqueId = this.EnterUniqueId; GameObject[] refObjList = this.RefObjList; RefParamOperator refParamOperator = new RefParamOperator(); if (enterUniqueId > 0) { if (refObjList != null) { int num = refObjList.Length; for (int i = 0; i < num; i++) { GameObject gameObject = refObjList[i]; if (!(gameObject == null)) { PoolObjHandle <ActorRoot> actorRoot = ActorHelper.GetActorRoot(gameObject); if (actorRoot) { BufConsumer bufConsumer = new BufConsumer(enterUniqueId, actorRoot, actorRoot); if (bufConsumer.Use()) { refParamOperator = new RefParamOperator(); string name = string.Format("TriggerActionBuffTar_{0}", i); refParamOperator.AddRefParam(name, bufConsumer.buffSkill); } } } } } if (this.bSrc && src) { BufConsumer bufConsumer2 = new BufConsumer(enterUniqueId, src, atker); if (bufConsumer2.Use()) { refParamOperator = new RefParamOperator(); refParamOperator.AddRefParam("TriggerActionBuffSrc", bufConsumer2.buffSkill); } } if (this.bAtker && atker) { BufConsumer bufConsumer3 = new BufConsumer(enterUniqueId, atker, src); if (bufConsumer3.Use()) { refParamOperator = new RefParamOperator(); refParamOperator.AddRefParam("TriggerActionBuffAtker", bufConsumer3.buffSkill); } } } return(refParamOperator); }
public override RefParamOperator TriggerEnter(PoolObjHandle <ActorRoot> src, PoolObjHandle <ActorRoot> atker, ITrigger inTrigger, object prm) { int enterUniqueId = base.EnterUniqueId; GameObject[] refObjList = base.RefObjList; RefParamOperator @operator = new RefParamOperator(); if (enterUniqueId > 0) { if (refObjList != null) { int length = refObjList.Length; for (int i = 0; i < length; i++) { GameObject go = refObjList[i]; if (go != null) { PoolObjHandle <ActorRoot> actorRoot = ActorHelper.GetActorRoot(go); if (actorRoot != 0) { BufConsumer consumer = new BufConsumer(enterUniqueId, actorRoot, actorRoot); if (consumer.Use()) { @operator = new RefParamOperator(); string name = string.Format("TriggerActionBuffTar_{0}", i); @operator.AddRefParam(name, consumer.buffSkill); } } } } } if (base.bSrc && (src != 0)) { BufConsumer consumer2 = new BufConsumer(enterUniqueId, src, atker); if (consumer2.Use()) { @operator = new RefParamOperator(); @operator.AddRefParam("TriggerActionBuffSrc", consumer2.buffSkill); } } if (base.bAtker && (atker != 0)) { BufConsumer consumer3 = new BufConsumer(enterUniqueId, atker, src); if (consumer3.Use()) { @operator = new RefParamOperator(); @operator.AddRefParam("TriggerActionBuffAtker", consumer3.buffSkill); } } } return(@operator); }
public override RefParamOperator TriggerEnter(PoolObjHandle <ActorRoot> src, PoolObjHandle <ActorRoot> atker, ITrigger inTrigger, object prm) { GameObject inSrc = (src == 0) ? null : src.handle.gameObject; GameObject inAtker = (inTrigger == null) ? null : inTrigger.GetTriggerObj(); if (inAtker == null) { inAtker = (atker == 0) ? null : atker.handle.gameObject; } this.PlayAgeActionPrivate(AreaEventTrigger.EActTiming.Enter, inSrc, inAtker); ListView <AGE.Action> view = this.PlayAgeActionPrivate(AreaEventTrigger.EActTiming.EnterDura, inSrc, inAtker); RefParamOperator @operator = new RefParamOperator(); @operator.AddRefParam("TriggerActionAgeEnterDura", view); return(@operator); }
public override RefParamOperator TriggerEnter(PoolObjHandle <ActorRoot> src, PoolObjHandle <ActorRoot> atker, ITrigger inTrigger) { GameObject inSrc = (!src) ? null : src.get_handle().gameObject; GameObject gameObject = (inTrigger == null) ? null : inTrigger.GetTriggerObj(); if (!gameObject) { gameObject = ((!atker) ? null : atker.get_handle().gameObject); } this.PlayAgeActionPrivate(AreaEventTrigger.EActTiming.Enter, inSrc, gameObject); ListView <Action> value = this.PlayAgeActionPrivate(AreaEventTrigger.EActTiming.EnterDura, inSrc, gameObject); RefParamOperator refParamOperator = new RefParamOperator(); refParamOperator.AddRefParam("TriggerActionAgeEnterDura", value); return(refParamOperator); }