Table of Contents

Class ParkingLotRegistry

Namespace
S1API.Map
Assembly
S1API.dll

Registry and utilities for parking-related queries.

public static class ParkingLotRegistry
Inheritance
ParkingLotRegistry
Inherited Members

Methods

GetAll()

Returns all lots currently registered.

public static ParkingLotWrapper[] GetAll()

Returns

ParkingLotWrapper[]

GetByGUID(string)

Finds a lot by GUID string. Returns null if not found.

public static ParkingLotWrapper GetByGUID(string guid)

Parameters

guid string

Returns

ParkingLotWrapper

GetByName(string)

Finds a parking lot by GameObject name.

public static ParkingLotWrapper GetByName(string gameObjectName)

Parameters

gameObjectName string

The name of the GameObject containing the ParkingLot component.

Returns

ParkingLotWrapper

A parking lot wrapper, or null if not found.

GetFreeSpots(string)

Finds free spots in a lot, by GUID.

public static ParkingSpotWrapper[] GetFreeSpots(string lotGuid)

Parameters

lotGuid string

Returns

ParkingSpotWrapper[]

GetFreeSpotsByName(string)

Finds free spots in a lot, by GameObject name.

public static ParkingSpotWrapper[] GetFreeSpotsByName(string lotGameObjectName)

Parameters

lotGameObjectName string

Returns

ParkingSpotWrapper[]

Get<T>()

Resolves a parking lot using a typed identifier T. Declare an identifier class annotated with [ParkingLotName("...")].

public static ParkingLotWrapper Get<T>() where T : IParkingLotIdentifier

Returns

ParkingLotWrapper

The parking lot wrapper, or null if not found.

Type Parameters

T

A type implementing IParkingLotIdentifier with ParkingLotNameAttribute