Class DoorHandler
Door handler to be used in a context where multiple door modes are used.
Inheritance
System.Object
DoorHandler
Implements
Namespace: Edgar.Legacy.Core.Doors
Assembly: Edgar.dll
Syntax
public class DoorHandler : Object, IDoorHandler
Remarks
This door handler does not have any logic itself - it just calls registered door handlers based on given door modes.
Constructors
DoorHandler()
Declaration
public DoorHandler()
Properties
DefaultHandler
Instance of a default door handler. Currently supports OverlapMode and SpecificPositionsMode.
Declaration
public static DoorHandler DefaultHandler { get; }
Property Value
| Type | Description |
|---|---|
| DoorHandler |
Methods
GetDoorPositions(PolygonGrid2D, IDoorMode)
Gets door positions for a given polygon based on a given door mode.
Declaration
public List<DoorLine> GetDoorPositions(PolygonGrid2D polygon, IDoorMode doorMode)
Parameters
| Type | Name | Description |
|---|---|---|
| PolygonGrid2D | polygon | |
| IDoorMode | doorMode |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<DoorLine> |
Remarks
Gets door positions by by returning an output of a registered door handler.
RegisterHandler(Type, IDoorHandler)
Register a door handler for a given type of door mode.
Declaration
public void RegisterHandler(Type doorModeType, IDoorHandler handler)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | doorModeType | |
| IDoorHandler | handler |