Example #1
0
        public override void Initialize(ResDT_ConditionInfo InConditionInfo)
        {
            base.Initialize(InConditionInfo);
            Singleton <GameEventSys> .instance.RmvEventHandler <DefaultGameEventParam>(GameEventDef.Event_ActorRevive, new RefAction <DefaultGameEventParam>(this.OnActorRevive));

            Singleton <GameEventSys> .instance.AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_ActorRevive, new RefAction <DefaultGameEventParam>(this.OnActorRevive));
        }
        public override void Initialize(ResDT_ConditionInfo InConditionInfo)
        {
            base.Initialize(InConditionInfo);
            Singleton <GameEventSys> .get_instance().RmvEventHandler <DefaultGameEventParam>(GameEventDef.Event_BeginFightOver, new RefAction <DefaultGameEventParam>(this.onFightOver));

            Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_BeginFightOver, new RefAction <DefaultGameEventParam>(this.onFightOver));
        }
Example #3
0
        public override void Initialize(ResDT_ConditionInfo InConditionInfo)
        {
            base.Initialize(InConditionInfo);
            Singleton <GameEventSys> .get_instance().RmvEventHandler <HurtEventResultInfo>(GameEventDef.Event_ActorDamage, new RefAction <HurtEventResultInfo>(this.OnActorDamage));

            Singleton <GameEventSys> .get_instance().AddEventHandler <HurtEventResultInfo>(GameEventDef.Event_ActorDamage, new RefAction <HurtEventResultInfo>(this.OnActorDamage));
        }
        public override void Initialize(ResDT_ConditionInfo InConditionInfo)
        {
            base.Initialize(InConditionInfo);
            Singleton <GameEventSys> .instance.AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_BeginFightOver, new RefAction <DefaultGameEventParam>(this.onFightOver));

            this.killCnt       = 0;
            this.bCachedResult = SmartCompare.Compare <int>(this.killCnt, this.targetCount, this.operation);
        }
Example #5
0
 public override void Initialize(ResDT_ConditionInfo InConditionInfo)
 {
     base.Initialize(InConditionInfo);
     this.TriggerCount = 0;
     Singleton <TriggerEventSys> .instance.OnActorEnter += new TriggerEventDelegate(this.OnActorEnter);
     Singleton <TriggerEventSys> .instance.OnActorLeave += new TriggerEventDelegate(this.OnActorLeave);
     this.bCachedResults = SmartCompare.Compare <int>(this.TriggerCount, this.targetCount, this.operation);
 }
Example #6
0
        public override void Initialize(ResDT_ConditionInfo InConditionInfo)
        {
            base.Initialize(InConditionInfo);
            this.ContextProxy = this.CreateStarCondition();
            StarCondition starCondition = this.ContextProxy as StarCondition;

            if (starCondition != null)
            {
                starCondition.OnStarConditionChanged += new OnStarConditionChangedDelegate(this.OnProxyChanged);
            }
        }
Example #7
0
        protected void AddCondition(ResDT_ConditionInfo InCondConfig)
        {
            StarCondition item = ConditionFactory.Create((int)InCondConfig.dwType) as StarCondition;

            DebugHelper.Assert(item != null);
            if (item != null)
            {
                item.OnStarConditionChanged += new OnStarConditionChangedDelegate(this.OnConditionChanged);
                item.Initialize(InCondConfig);
                this.Conditions.Add(item);
            }
        }
Example #8
0
        protected void AddCondition(ResDT_ConditionInfo InCondConfig)
        {
            StarCondition starCondition = StarEvaluation.ConditionFactory.Create((int)InCondConfig.dwType) as StarCondition;

            DebugHelper.Assert(starCondition != null);
            if (starCondition != null)
            {
                starCondition.OnStarConditionChanged += new OnStarConditionChangedDelegate(this.OnConditionChanged);
                starCondition.Initialize(InCondConfig);
                this.Conditions.Add(starCondition);
            }
        }
Example #9
0
 public void Initialize(ResEvaluateStarInfo InStarInfo)
 {
     this.StarInfo    = InStarInfo;
     this.Description = Utility.UTF8Convert(InStarInfo.szCondDesc);
     for (int i = 0; i < InStarInfo.astConditions.Length; i++)
     {
         ResDT_ConditionInfo inCondConfig = InStarInfo.astConditions[i];
         if (inCondConfig.dwType == 0)
         {
             break;
         }
         this.AddCondition(inCondConfig);
     }
 }
Example #10
0
 public override void Initialize(ResDT_ConditionInfo InConditionInfo)
 {
     base.Initialize(InConditionInfo);
     this.bCheckResults = SmartCompare.Compare <int>(this.Score, this.TargetScore, this.operation);
 }
Example #11
0
 public virtual void Initialize(ResDT_ConditionInfo InConditionInfo)
 {
     this.ConditionInfo = InConditionInfo;
 }
Example #12
0
 public override void Initialize(ResDT_ConditionInfo InConditionInfo)
 {
     base.Initialize(InConditionInfo);
 }
Example #13
0
 public override void Initialize(ResDT_ConditionInfo InConditionInfo)
 {
     base.Initialize(InConditionInfo);
     Singleton <EventRouter> .instance.AddEventHandler <KillDetailInfo>(EventID.AchievementRecorderEvent, new Action <KillDetailInfo>(this.OnAchievementEvent));
 }
Example #14
0
 public override void Initialize(ResDT_ConditionInfo InConditionInfo)
 {
     base.Initialize(InConditionInfo);
     Singleton <GameEventSys> .instance.AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_FightStart, new RefAction <DefaultGameEventParam>(this.AddTimer));
 }