Exemple #1
0
        public void RemoveComponent(LogicComponent component)
        {
            LogicArrayList <LogicComponent> components = this.m_components[(int)component.GetComponentType()];

            for (int i = 0, j = components.Size(); i < j; i++)
            {
                if (components[i] == component)
                {
                    components.Remove(i);
                    break;
                }
            }
        }
Exemple #2
0
 public void AddComponent(LogicComponent component)
 {
     this.m_components[(int)component.GetComponentType()].Add(component);
 }