Exemple #1
0
        public void GetLogicalSector(int item, out int logicalItem, out MyLogicalEnvironmentSectorBase sector)
        {
            int logical = SectorOffsets.BinaryIntervalSearch(item) - 1;

            logicalItem = item - SectorOffsets[logical] + IntraSectorOffsets[logical];

            sector = LogicalSectors[logical];
        }
Exemple #2
0
 public MyEnvironmentModelUpdateBatch(MyLogicalEnvironmentSectorBase sector)
 {
     m_sector = sector;
     m_owner  = m_sector.Owner;
 }