public Enumerator(MyVector3ISet set) { m_parent = set; m_dictEnum = new Dictionary <Vector3I, ulong> .Enumerator(); m_shift = 0; m_currentData = 0; m_timestamp = 0; Init(); }
/// <summary> /// Makes a union of this set and the other set and saves it in this set /// </summary> public void Union(MyVector3ISet otherSet) { foreach (var chunk in otherSet.m_chunks) { ulong data = 0; m_chunks.TryGetValue(chunk.Key, out data); data |= chunk.Value; m_chunks[chunk.Key] = data; } Timestamp++; }