public Task <ChangeSceneResponseParameters> ChangeScene(IYield yield, ChangeSceneRequestParameters parameters) { var id = parameters.PortalId; var portalContainer = Components.GetComponent <IPortalContainer>().AssertNotNull(); var map = portalContainer.GetMap(id); return(Task.FromResult(new ChangeSceneResponseParameters(map))); }
public async Task <ChangeSceneResponseParameters> ChangeScene(IYield yield, ChangeSceneRequestParameters parameters) { return(await ServerPeerHandler.SendOperation <ChangeSceneRequestParameters, ChangeSceneResponseParameters> (yield, (byte)GameOperations.ChangeScene, parameters, MessageSendOptions.DefaultReliable())); }