Namespace RustPlusApi.Camera
Classes
- CameraController
Managed session for one subscribed camera: keeps the subscription alive by periodically re-sending the subscribe request (the server stops streaming rays for stale subscriptions), forwards ray frames via OnFrameReceived, and exposes the press-and-release input helpers (ZoomAsync(CancellationToken), ShootAsync(CancellationToken), ReloadAsync(CancellationToken)) used by PTZ cameras and auto-turrets. Mirrors the
Cameraclass of liamcottle/rustplus.js. Dispose to stop the keep-alive and unsubscribe.
- CameraRenderer
Renders the Rust+ camera ray stream into images. Create one per subscribed camera (sized from CameraInfo), feed each CameraFrame via AddRays(CameraFrame), then call Render() for the current image.