Example #1
0
        /// <summary>
        /// Outputs to a collection of queries directly associated with the given entity.
        /// </summary>
        public void GetAllQueriesForEntity(IRSEntity inEntity, ICollection <RSQueryInfo> outQueries, RSTypeInfo inReturnType = null, bool inbNoParams = false)
        {
            Assert.True(outQueries != null, "Cannot output queries to null collection");
            Assert.True(inEntity != null, "Cannot get queries for null entity");

            GetAllQueriesForType(m_EntityType, outQueries, inReturnType, inbNoParams);
            foreach (var component in inEntity.GetRSComponentTypes(this))
            {
                Assert.True(component != null, "Null component");
                GetAllQueriesForType(component, outQueries, inReturnType, inbNoParams);
            }
        }
Example #2
0
        /// <summary>
        /// Outputs to a collection of triggers directly associated with the given entity.
        /// </summary>
        public void GetAllTriggersForEntity(IRSEntity inEntity, ICollection <RSTriggerInfo> outTriggers, RSTypeInfo inParameterType = null)
        {
            Assert.True(outTriggers != null, "Cannot output triggers to null collection");
            Assert.True(inEntity != null, "Cannot get triggers for null entity data");

            GetAllTriggersForType(m_EntityType, outTriggers, inParameterType);
            foreach (var componentType in inEntity.GetRSComponentTypes(this))
            {
                Assert.True(componentType != null, "Null component data");
                GetAllTriggersForType(componentType, outTriggers, inParameterType);
            }
        }
Example #3
0
        /// <summary>
        /// Outputs to a collection of actions directly associated with the given entity.
        /// </summary>
        public void GetAllActionsForEntity(IRSEntity inEntity, ICollection <RSActionInfo> outActions)
        {
            Assert.True(outActions != null, "Cannot output actions to null collection");
            Assert.True(inEntity != null, "Cannot get actions for null entity");

            GetAllActionsForType(m_EntityType, outActions);

            foreach (var component in inEntity.GetRSComponentTypes(this))
            {
                Assert.True(component != null, "Null component");
                GetAllActionsForType(component, outActions);
            }
        }