Interface IRoomLimitsProvider
Allow providing custom room limits. The room limits are used to limit the camera from moving too much to the left or to the right. By default the room limits are bound to the room background size and start from (0,0), however this can be changed by setting a custom room limits provider to a room.
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IRoomLimitsProvider
Methods
| Improve this Doc View SourceProvideRoomLimits(IRoom)
Provides the room limits (a rectangle that defines the room area).
Declaration
RectangleF ProvideRoomLimits(IRoom room)
Parameters
Type | Name | Description |
---|---|---|
IRoom | room | The room for which limits should be provided. |
Returns
Type | Description |
---|---|
RectangleF | The room limits. |