Beispiel #1
0
        public static TurnTimelineElligibility alloc(ref TurnTimelineElligibilityData p_turnTimelineElligibilityData)
        {
            TurnTimelineElligibility l_instance = new TurnTimelineElligibility();

            l_instance.TurnTimelineElligibilityData = p_turnTimelineElligibilityData;
            return(l_instance);
        }
Beispiel #2
0
            public EventCallbackResponse Execute(ref AEntityComponent p_entityComponent)
            {
                TurnTimelineElligibility l_turnTimelineElligibility = (TurnTimelineElligibility)p_entityComponent;

                if (l_turnTimelineElligibility.TurnTimelineElligibilityData.IsElligibleForTimeline)
                {
                    TurnTimeline.TimelineOrderingDatas.Remove(p_entityComponent.AssociatedEntity);
                }
                return(EventCallbackResponse.OK);
            }
Beispiel #3
0
        public override void Initialize(Entity p_entity, RuntimeObjectRootComponent p_runtimeObjectRootComponent)
        {
            TurnTimelineElligibility l_turnTimelineElligiblity = TurnTimelineElligibility.alloc(ref TurnTimelineElligibilityData);

            EntityComponent.add_component <TurnTimelineElligibility>(p_entity, l_turnTimelineElligiblity);
        }
Beispiel #4
0
 public static void AddTurnTimelineEllibilityToTimeline(TurnTimeline p_turnTimeline, TurnTimelineElligibility p_turnTimelineElligibility)
 {
     if (p_turnTimelineElligibility.TurnTimelineElligibilityData.IsElligibleForTimeline)
     {
         TurnTimeline.addEntityToTimeline(p_turnTimeline, p_turnTimelineElligibility.AssociatedEntity);
     }
 }