Beispiel #1
0
        public void AddComponent(string name, Type componentType, Type stateinterfaceType, string runAfter)
        {
            var c = new Component(name, componentType, stateinterfaceType);
            _components.Add(name, c);

            int position = _componentsOrder.IndexOf(runAfter);
            _componentsOrder.Insert(position + 1, name);
        }
Beispiel #2
0
 public void AddComponent(string name, Type componentType, Type stateinterfaceType)
 {
     var c = new Component(name, componentType, stateinterfaceType);
     _components.Add(name, c);
     _componentsOrder.Add(name);
 }