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)); }
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); }
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); }
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); } }
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); } }
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); } }
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); } }
public override void Initialize(ResDT_ConditionInfo InConditionInfo) { base.Initialize(InConditionInfo); this.bCheckResults = SmartCompare.Compare <int>(this.Score, this.TargetScore, this.operation); }
public virtual void Initialize(ResDT_ConditionInfo InConditionInfo) { this.ConditionInfo = InConditionInfo; }
public override void Initialize(ResDT_ConditionInfo InConditionInfo) { base.Initialize(InConditionInfo); }
public override void Initialize(ResDT_ConditionInfo InConditionInfo) { base.Initialize(InConditionInfo); Singleton <EventRouter> .instance.AddEventHandler <KillDetailInfo>(EventID.AchievementRecorderEvent, new Action <KillDetailInfo>(this.OnAchievementEvent)); }
public override void Initialize(ResDT_ConditionInfo InConditionInfo) { base.Initialize(InConditionInfo); Singleton <GameEventSys> .instance.AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_FightStart, new RefAction <DefaultGameEventParam>(this.AddTimer)); }