public ASystemProcess(ASystem system, params Type[] components) { m_system = system; m_compoTypes = new List <Type>(); m_compoTypes.AddRange(components); EntityList = new CEntityList(); }
protected void InternalAddSystem(ASystem system) { foreach (var entityPair in m_entityDict) { system.Process.MatchAdd(entityPair.Value); } }
public bool InsertAfter(ASystem system, ASystem afterSys) { bool hasFind = false; for (int i = 0; i < m_systems.Count; ++i) { if (m_systems[i].Name == afterSys.Name) { hasFind = true; m_systems.Insert(i + 1, system); break; } } if (!hasFind) { throw new NotFindSystemException(afterSys.Name); } return(hasFind); }
public void RemoveSystem(ASystem system) { m_systems.Remove(system); }
public void AddSystem(ASystem system) { m_systems.Add(system); }
public void AddPhysicSys(ASystem system) { m_physicPhase.AddSystem(system); InternalAddSystem(system); }
public void AddLogicSys(ASystem system) { m_logicPhase.AddSystem(system); InternalAddSystem(system); }
public CSystemProcess(ASystem system, params Type[] components) : base(system, components) { }