Exemplo n.º 1
0
        void AutoCreateAttributedEntities()
        {
            if (ShouldAutoCreateAttributedEntities == false)
            {
                return;
            }

            InjectionSystem.AutoCreateEntities(this);
        }
Exemplo n.º 2
0
        public void RegisterBindings()
        {
            foreach (var kvp in _behaviours)
            {
                InjectionSystem.AddBehaviourToSystem(kvp.Value, kvp.Key);
            }
            foreach (var kvp in _signals)
            {
                InjectionSystem.AddSignalToSystem(kvp.Value, kvp.Key);
            }
            foreach (var kvp in _clouds)
            {
                InjectionSystem.RegisterCloudToSystem(kvp.Value, kvp.Key);
            }
            foreach (var kvp in _interfaces)
            {
                InjectionSystem.RegisterInterfaceToSystem(kvp.Value, kvp.Key);
            }

            _state = State.Registered;
        }
Exemplo n.º 3
0
        public void InjectIntoBindings()
        {
            foreach (var kvp in _behaviours)
            {
                if ((kvp.Value as BaseInjectBehaviour).ConsumeInject)
                {
                    InjectionSystem.InjectBehaviourInner(kvp.Value as BaseInjectBehaviour);
                }
            }

            foreach (var kvp in _clouds)
            {
                InjectionSystem.InjectBehaviourInner(kvp.Value);
            }

            foreach (var kvp in _signals)
            {
                InjectionSystem.InjectSignal(kvp.Value);
            }

            _state = State.Injected;
        }