Exemplo n.º 1
0
        internal void LoadedInternal()
        {
            Draw   = Engine.Current.Events.Draw.Where(_ => CanReceiveEvent(_, true)).Publish().RefCount();
            Update = Engine.Current.Events.Update.Where(_ => CanReceiveEvent(_, false)).Publish().RefCount();
            EarlyCreateResources = Engine.Current.Events.EarlyCreateResources.Where(_ => CanReceiveEvent(_, false)).Publish().RefCount();
            CreateResources      = Engine.Current.Events.CreateResources.Where(_ => CanReceiveEvent(_, false)).Publish().RefCount();
            PointerMoved         = Engine.Current.Events.PointerMoved.Where(_ => CanReceiveEvent(_, false)).Publish().RefCount();
            ChildEnter           = Entity.ChildEnter.Where(_ => CanReceiveEvent(_, false)).Publish().RefCount();
            ChildLeave           = Entity.ChildLeave.Where(_ => CanReceiveEvent(_, false)).Publish().RefCount();
            ParentChanged        = Entity.ParentChanged.Where(_ => CanReceiveEvent(_, false)).Publish().RefCount();

            _trackedSubscriptions.Clear();
            var args = new BehaviorLoadedEventArgs(_trackedSubscriptions);

            Loaded(args);
        }
Exemplo n.º 2
0
 protected virtual void Loaded(BehaviorLoadedEventArgs args)
 {
 }