• Articles
  • Api Documentation
Show / Hide Table of Contents
  • AlchemyBow.Navigation
    • AlchemyNavigationSystem
    • BasicAgent
    • FacesHolder
    • NavigationAct
    • NavigationFaceWrapper
    • NavigationInfo
    • PathfindingRequest
    • PathfindingRequest.PathType
    • PathfindingRequest.Status
  • AlchemyBow.Navigation.BackgroundProcessing
    • BackgroundProcessor
    • BackgroundProcessor.States
    • BuildingProcess
    • IBackgroundCommand
    • PathfindingProcess
    • RegisterFaceCommand
    • UnregisterFaceCommand
  • AlchemyBow.Navigation.Collections
    • OrderedSet<T>
    • OrderedSetNode<T>
    • OrderedSetRangeComparer<T>
  • AlchemyBow.Navigation.DebugUnits
    • AlchemyNavigationSystemDebugUnit
    • CompositeSurfaceDrawer
    • GizmosSurfaceDrawer
    • ISurfaceDrawer
    • MinimalGizmosSurfaceDrawer
  • AlchemyBow.Navigation.HighLevel
    • MeshBasedBake
    • MeshBasedBakeGroup
    • MeshBasedBakeSettings
    • WorldMesh
  • AlchemyBow.Navigation.PropertyAttributes
    • AreaIndexAttribute
    • AreaMaskAttribute
    • LayerIndexAttribute
  • AlchemyBow.Navigation.Settings
    • AlchemyNavigationSettingsPreset
    • NavigationAreaSettings
    • NavigationLayerSettings
    • NavigationSettings
  • AlchemyBow.Navigation.Simple
    • SimpleAgent
  • AlchemyBow.Navigation.Simple.Elements
    • AvoidanceGroup
    • AvoidanceModifier
    • CachedFace
    • ISteeredBehaviour
    • MovementModifier
    • PathProgress
  • AlchemyBow.Navigation.Surfaces
    • Edge
    • Face
    • FacesByMagnitudeRangeComparer
    • NavigationSurface
    • SurfaceRaycastHit
    • Usage<TUser>
    • UsageTrackingObject<TUser>
    • Vertex
    • VertexByPositionComparer
  • AlchemyBow.Navigation.Surfaces.SafeAccess
    • IImmutableFace
    • SurfaceImmutableRaycastHit
  • AlchemyBow.Navigation.Utilities
    • ChannelUnwrapper
    • FaceAStar
    • FaceStarUnit
    • Funnel
    • ICommand

Class UsageTrackingObject<TUser>

Describes an object that can track it's users.

Inheritance
System.Object
UsageTrackingObject<TUser>
Edge
Vertex
Namespace: AlchemyBow.Navigation.Surfaces
Assembly: AlchemyBow.Navigation.dll
Syntax
public abstract class UsageTrackingObject<TUser>
    where TUser : class
Type Parameters
Name Description
TUser

The type of users.

Constructors

| Improve this Doc View Source

UsageTrackingObject(Int32)

Initializes an instance of the UsageTrackingObject class.

Declaration
protected UsageTrackingObject(int initialUsersCapacity)
Parameters
Type Name Description
System.Int32 initialUsersCapacity

The initial unique user capacity.

Properties

| Improve this Doc View Source

HasNoUsers

Determines whether the object has not users.

Declaration
public bool HasNoUsers { get; }
Property Value
Type Description
System.Boolean

true if the object has not users; otherwise, false.

| Improve this Doc View Source

UsersCount

The number of the unique users.

Declaration
public int UsersCount { get; }
Property Value
Type Description
System.Int32

The number of the unique users.

Methods

| Improve this Doc View Source

AddUser(TUser)

Adds the user.

Declaration
public void AddUser(TUser user)
Parameters
Type Name Description
TUser user

A user to add.

| Improve this Doc View Source

GetUser(Int32)

Get the user at the specified index.

Declaration
public TUser GetUser(int index)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the user.

Returns
Type Description
TUser

The user at the specified index.

| Improve this Doc View Source

HasUser(TUser)

Determines whether a user is tracked.

Declaration
public bool HasUser(TUser user)
Parameters
Type Name Description
TUser user

The user to locate.

Returns
Type Description
System.Boolean

true if the user is found; otherwise, false.

| Improve this Doc View Source

RemoveUser(TUser)

Removes the user.

Declaration
public void RemoveUser(TUser user)
Parameters
Type Name Description
TUser user

A user to remove.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX