SpawnObject
Name
SpawnObject - Informs players about an object to be spawned in the room.
Synopsis
Namespace: LoadBalancer.Client.Game
public async Task<SpawnObjectResult> SpawnObject(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 SpawnObjectResult containing the following parameters:
RoomIdstring- The unique identifier of the room where a new object was spawned.ObjectIdstring- The unique identifier of the object that was spawned.Tagstring- Object’s label.ObjectPropertiesKeyValueCollection- A collection of key-value pairs containing the object properties.