Example #1
0
 public void SetComponentDefinition(int amount, MyComponentDefinition definition)
 {
     if ((amount > 0) && (amount <= this.m_components.Count))
     {
         this.m_components[amount - 1] = definition;
     }
 }
        public void SetComponentDefinition(int amount, MyComponentDefinition definition)
        {
            Debug.Assert(amount > 0 && amount <= m_components.Count, "Setting invalid component definition in a group!");
            if (amount <= 0 || amount > m_components.Count)
            {
                return;
            }

            m_components[amount - 1] = definition;
        }
Example #3
0
        public void SetComponentDefinition(int amount, MyComponentDefinition definition)
        {
            Debug.Assert(amount > 0 && amount <= m_components.Count, "Setting invalid component definition in a group!");
            if (amount <= 0 || amount > m_components.Count)
            {
                return;
            }

            m_components[amount - 1] = definition;
        }