Class AppMarkerToModel
- Namespace
- RustPlusApi.Extensions
- Assembly
- RustPlusApi.dll
Mapping extensions from a protobuf RustPlusContracts.AppMarker to typed marker model records.
public static class AppMarkerToModel
- Inheritance
-
AppMarkerToModel
- Inherited Members
Methods
ToCargoShipMarker(AppMarker)
Maps a marker to a CargoShipMarker.
public static CargoShipMarker ToCargoShipMarker(this AppMarker marker)
Parameters
markerAppMarkerThe protobuf map marker.
Returns
ToCh47Marker(AppMarker)
Maps a marker to a Ch47Marker.
public static Ch47Marker ToCh47Marker(this AppMarker marker)
Parameters
markerAppMarkerThe protobuf map marker.
Returns
ToPatrolHelicopterMarker(AppMarker)
Maps a marker to a PatrolHelicopterMarker.
public static PatrolHelicopterMarker ToPatrolHelicopterMarker(this AppMarker marker)
Parameters
markerAppMarkerThe protobuf map marker.
Returns
ToPlayerMarker(AppMarker)
Maps a marker to a PlayerMarker.
public static PlayerMarker ToPlayerMarker(this AppMarker marker)
Parameters
markerAppMarkerThe protobuf map marker.
Returns
ToTravellingVendorMarker(AppMarker)
Maps a marker to a TravellingVendorMarker.
public static TravellingVendorMarker ToTravellingVendorMarker(this AppMarker marker)
Parameters
markerAppMarkerThe protobuf map marker.
Returns
ToUnknownMarker(AppMarker)
Maps a marker to an UnknownMarker.
public static UnknownMarker ToUnknownMarker(this AppMarker marker)
Parameters
markerAppMarkerThe protobuf map marker.
Returns
ToVendingMachineItem(SellOrder)
Maps a protobuf sell order to a VendingMachineItem.
public static VendingMachineItem ToVendingMachineItem(this AppMarker.SellOrder sellOrder)
Parameters
sellOrderAppMarker.SellOrderThe protobuf sell order.
Returns
ToVendingMachineItems(IEnumerable<SellOrder>)
Maps a sequence of protobuf sell orders to VendingMachineItem instances.
public static IEnumerable<VendingMachineItem> ToVendingMachineItems(this IEnumerable<AppMarker.SellOrder> sellOrders)
Parameters
sellOrdersIEnumerable<AppMarker.SellOrder>The protobuf sell orders to map.
Returns
ToVendingMachineMarker(AppMarker)
Maps a marker to a VendingMachineMarker, including its sell orders.
public static VendingMachineMarker ToVendingMachineMarker(this AppMarker marker)
Parameters
markerAppMarkerThe protobuf map marker.