Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetApplicableMinMaxFollowPos()

BitSet System.Xml.Schema.ParticleContentValidator.GetApplicableMinMaxFollowPos ( BitSet curpos,
BitSet posWithRangeTerminals,
BitSet[] minmaxFollowPos )
inlineprivate

Definition at line 306 of file ParticleContentValidator.cs.

307 {
308 if (curpos.Intersects(posWithRangeTerminals))
309 {
310 BitSet bitSet = new BitSet(_positions.Count);
311 bitSet.Or(curpos);
313 curpos = curpos.Clone();
314 for (int num = bitSet.NextSet(-1); num != -1; num = bitSet.NextSet(num))
315 {
316 LeafRangeNode leafRangeNode = _positions[num].particle as LeafRangeNode;
317 curpos.Or(minmaxFollowPos[leafRangeNode.Pos]);
318 }
319 }
320 return curpos;
321 }

References System.Xml.Schema.ParticleContentValidator._positions, System.Xml.Schema.BitSet.Clone(), System.Xml.Schema.Positions.Count, System.Xml.Schema.BitSet.Intersects(), and System.Xml.Schema.BitSet.Or().

Referenced by System.Xml.Schema.ParticleContentValidator.Finish().