Skip to content

Function: createClassIds()

ts
function createClassIds(): IClassIdsGrouped;

Create and synchronize list of class identifiers in game engine. Used to synchronize dynamic identifiers lists for further checks against game objects.

Main reasons to store class IDs:

  • class IDs are dynamic
  • assigning of class IDs happen when game register scripts execute
  • to minimize engine access with short class IDs checks it is better to be initialized and stored once.

Returns

IClassIdsGrouped

Grouped sets of class identifiers.