Пример #1
0
        public void AddManager(AtlasManagerSorter sorter)
        {
            dirty = true;

            if (!managers.ContainsValue(sorter.manager))
                managers.Add(sorter.manager.GetType().AssemblyQualifiedName, sorter.manager);

            if (sorter.draw)
                managerDrawSorter.Add(sorter);

            if (sorter.update)
                managerUpdateSorter.Add(sorter);
        }
Пример #2
0
        public void AddManager(AtlasManagerSorter sorter)
        {
            dirty = true;

            if (!managers.ContainsValue(sorter.manager))
            {
                managers.Add(sorter.manager.GetType().AssemblyQualifiedName, sorter.manager);
            }

            if (sorter.draw)
            {
                managerDrawSorter.Add(sorter);
            }

            if (sorter.update)
            {
                managerUpdateSorter.Add(sorter);
            }
        }
Пример #3
0
 public static int SortByUpdate(AtlasManagerSorter p1, AtlasManagerSorter p2)
 {
     return(p1.updateWeight.CompareTo(p2.updateWeight));
 }
Пример #4
0
 public static int SortByDraw(AtlasManagerSorter p1, AtlasManagerSorter p2)
 {
     return(p1.drawWeight.CompareTo(p2.drawWeight));
 }
Пример #5
0
 public static int SortByUpdate(AtlasManagerSorter p1, AtlasManagerSorter p2)
 {
     return p1.updateWeight.CompareTo(p2.updateWeight);
 }
Пример #6
0
 public static int SortByDraw(AtlasManagerSorter p1, AtlasManagerSorter p2)
 {
     return p1.drawWeight.CompareTo(p2.drawWeight);
 }