Table of Contents

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

marker AppMarker

The protobuf map marker.

Returns

CargoShipMarker

ToCh47Marker(AppMarker)

Maps a marker to a Ch47Marker.

public static Ch47Marker ToCh47Marker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

Ch47Marker

ToPatrolHelicopterMarker(AppMarker)

Maps a marker to a PatrolHelicopterMarker.

public static PatrolHelicopterMarker ToPatrolHelicopterMarker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

PatrolHelicopterMarker

ToPlayerMarker(AppMarker)

Maps a marker to a PlayerMarker.

public static PlayerMarker ToPlayerMarker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

PlayerMarker

ToTravellingVendorMarker(AppMarker)

Maps a marker to a TravellingVendorMarker.

public static TravellingVendorMarker ToTravellingVendorMarker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

TravellingVendorMarker

ToUnknownMarker(AppMarker)

Maps a marker to an UnknownMarker.

public static UnknownMarker ToUnknownMarker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

UnknownMarker

ToVendingMachineItem(SellOrder)

Maps a protobuf sell order to a VendingMachineItem.

public static VendingMachineItem ToVendingMachineItem(this AppMarker.SellOrder sellOrder)

Parameters

sellOrder AppMarker.SellOrder

The protobuf sell order.

Returns

VendingMachineItem

ToVendingMachineItems(IEnumerable<SellOrder>)

Maps a sequence of protobuf sell orders to VendingMachineItem instances.

public static IEnumerable<VendingMachineItem> ToVendingMachineItems(this IEnumerable<AppMarker.SellOrder> sellOrders)

Parameters

sellOrders IEnumerable<AppMarker.SellOrder>

The protobuf sell orders to map.

Returns

IEnumerable<VendingMachineItem>

ToVendingMachineMarker(AppMarker)

Maps a marker to a VendingMachineMarker, including its sell orders.

public static VendingMachineMarker ToVendingMachineMarker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

VendingMachineMarker