OnObjectSpawned
Name
OnObjectSpawned - Raises when an object gets spawned in the room.
Synopsis
Namespace: LoadBalancer.Client.Game
protected CallResult OnObjectSpawned(ClientCallContext call, SpawnObjectParameters parameters)
Parameters
SpawnObjectParameters consists of the following parameters:
RoomIdstring- The unique identifier of the room.ObjectIdstring- The unique identifier of the object to be spawned in the room.Tagstring- Object’s label.ObjectPropertiesKeyValueCollection- A collection of key-value pairs containing the object properties.
Return Value
The CallResult which can be one of the following values:
NotHandled = 0,
Completed = 1,
Failed = 2,
Reenqueued = 3,