Class ParkingLotRegistry
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
GetByGUID(string)
Finds a lot by GUID string. Returns null if not found.
public static ParkingLotWrapper GetByGUID(string guid)
Parameters
guidstring
Returns
GetByName(string)
Finds a parking lot by GameObject name.
public static ParkingLotWrapper GetByName(string gameObjectName)
Parameters
gameObjectNamestringThe 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
lotGuidstring
Returns
GetFreeSpotsByName(string)
Finds free spots in a lot, by GameObject name.
public static ParkingSpotWrapper[] GetFreeSpotsByName(string lotGameObjectName)
Parameters
lotGameObjectNamestring
Returns
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
TA type implementing IParkingLotIdentifier with ParkingLotNameAttribute