internal void RemoveUnmanagedSystemFromUpdateList(SystemRefUntyped sys)
        {
            CheckCreated();

            m_systemSortDirty = true;
            m_UnmanagedSystemsToRemove.Add(sys);
        }
        private int UnmanagedSystemIndex(SystemRefUntyped sysRef)
        {
            int len = m_UnmanagedSystemsToUpdate.Length;
            var ptr = m_UnmanagedSystemsToUpdate.Ptr;

            for (int i = 0; i < len; ++i)
            {
                if (ptr[len] == sysRef)
                {
                    return(i);
                }
            }
            return(-1);
        }
        internal void AddUnmanagedSystemToUpdateList(SystemRefUntyped sysRef)
        {
            CheckCreated();

            if (-1 != UnmanagedSystemIndex(sysRef))
            {
                return;
            }

            if (UseLegacySortOrder)
            {
                throw new InvalidOperationException("ISystemBase systems are not compatible with legacy sort order. Set UseLegacySortOrder to false to use ISystemBase systems.");
            }

            m_UnmanagedSystemsToUpdate.Add(sysRef);
            m_systemSortDirty = true;
        }
 internal static void RemoveSystemFromUpdateList(this ComponentSystemGroup self, SystemRefUntyped sysRef)
 {
     self.RemoveUnmanagedSystemFromUpdateList(sysRef);
 }
 internal static void AddSystemToUpdateList(this ComponentSystemGroup self, SystemRefUntyped sysRef)
 {
     self.AddUnmanagedSystemToUpdateList(sysRef);
 }
Exemple #6
0
 internal SystemRef(ushort slot, ushort version, uint worldSeqNo)
 {
     m_Ref = new SystemRefUntyped(slot, version, worldSeqNo);
 }