Skip to content

NetEntityManager

Denis Totmin edited this page Jul 12, 2022 · 4 revisions

NetEntityManager

  • manager of network entities within the current instance

Properties

List<NetEntity> List - A list of all network entities in the instance. (note, each call creates a new instance of the list)

int Count - the number of network entities in the instance


Methods

NetEntity GetById(int id) - получить сущность по netId

  • int id- netID сетевой сущности

NetEntity[] GetNearby(GalaxyVector3 pos, float distance) - Get the network entities closest to the specified point.

  • GalaxyVector3 pos - the point from which the search goes
  • GalaxyVector3 distance - search distance

void RemoveNetEntity(int netId) - deleting a netId network entity

  • int netId - unique entity identifier

void RemoveNetEntity(NetEntity entity) - deleting a netId network entity

  • NetEntity entity - target entity instance

NetEntity GetById(int netId) - to get the network entity by ID. Can return null

  • int netId - unique entity identifier

The page was edited with the current version of the kernel 0.9.8

Clone this wiki locally