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

ToCrateMarker(AppMarker)

Maps a marker to a CrateMarker.

public static CrateMarker ToCrateMarker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

CrateMarker

ToExplosionMarker(AppMarker)

Maps a marker to an ExplosionMarker.

public static ExplosionMarker ToExplosionMarker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

ExplosionMarker

ToGenericRadiusMarker(AppMarker)

Maps a marker to a GenericRadiusMarker, including its styling fields.

public static GenericRadiusMarker ToGenericRadiusMarker(this AppMarker marker)

Parameters

marker AppMarker

The protobuf map marker.

Returns

GenericRadiusMarker

ToMarkerColor(Vector4)

Maps a protobuf RustPlusContracts.Vector4 marker color to a MarkerColor.

public static MarkerColor ToMarkerColor(this Vector4 color)

Parameters

color Vector4

The protobuf color vector (RGBA components).

Returns

MarkerColor

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, passing through the full raw field surface.

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