actors
Property
A dictionary of all actors in the current server instance, keyed by actor number.
Each IActor instance is updated as the actor's state changes, so it is safe to cache references to them, although you should refresh your cache after switching or reconnecting to a server instance.
This collection is modified before the onActorJoined
event is triggered, but after
onActorLeft
is triggered. This allows you to get a reference to the actor before it is
removed from the collection.
All actors in this collection are "fully joined" (actors.Count should equal actorCount
)
Note that while localActor
is never null, the local actor will only be included in this
collection when the local actor has fully joined the server instance (when the actorNumber for the local
actor is known).
Returns IReadOnlyDictionary<int, IActor>