Show / Hide Table of Contents

Class UniqueVector2iSet

This is a data structure can be used to ensure the uniqueness of Vector2i indices.

Inheritance
System.Object
UniqueVector2iSet
Namespace: Content.Server.Explosion.EntitySystems
Assembly: Content.Server.dll
Syntax
public sealed class UniqueVector2iSet : object
Remarks

This basically exists to replace the use of HashSet<Vector2i> if all you need is the the functions Contains() and Add(). This is both faster and apparently allocates less. Does not support iterating over contents

Methods

| Improve this Doc View Source

Add(Vector2i)

Declaration
public bool Add(Vector2i index)
Parameters
Type Name Description
Vector2i index
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Contains(Vector2i)

Declaration
public bool Contains(Vector2i index)
Parameters
Type Name Description
Vector2i index
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ToChunkIndices(Vector2i)

Declaration
public Vector2i ToChunkIndices(Vector2i indices)
Parameters
Type Name Description
Vector2i indices
Returns
Type Description
Vector2i
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾