Options
All
  • Public
  • Public/Protected
  • All
Menu

Default implementation of IEntityIdProvider. This implementation generates Ids from 0 to 4 billion and does not recycle Ids. If you encounter the error "The max Mesh ID has been exceeded", you can override releaseEntityId to create a more sophisticated IdProvider to recycle Ids.

Hierarchy

  • DefaultEntityIdProvider

Implements

Index

Methods

getNextEntityId

  • getNextEntityId(): number
  • Gets the next available EntityId (max value UInt32 is 4 billion)

    Returns number

releaseEntityId

  • releaseEntityId(id: number): void
  • Optional: releases an Id when an entity is removed fro the scene in the case where max mesh ID is hit

    Parameters

    • id: number

    Returns void

Generated using TypeDoc