C# Class Economy.scripts.EconConfig.MarketManager

Show file Open project: jpcsupplies/Economy_mod Class Usage Examples

Public Methods

Method Description
CheckTradeTimeouts ( ) : void
CreateSellOrder ( ulong sellerId, string goodsTypeId, string goodsSubtypeName, decimal quantity, decimal price ) : void
CreateStockHeld ( ulong sellerId, string goodsTypeId, string goodsSubtypeName, decimal quantity, decimal price ) : void
CreateTradeOffer ( ulong sellerId, string goodsTypeId, string goodsSubtypeName, decimal quantity, decimal price, ulong targetPlayer ) : void
FindClosestPlayerMarket ( IMyPlayer player, bool isOpen = null ) : MarketStruct

Finds the closest player owned market of the specified open state.

FindMarketsFromLocation ( Vector3D position ) : List

Finds all available markets that are within range that can be traded with.

FindMarketsFromName ( string marketname ) : List

Find a market of the specified name, trying exact match first, then case insensative, then partial string.

IsItemBlacklistedOnServer ( string itemTypeId, string itemSubTypeName ) : bool
SyncMarketItems ( List &marketItems ) : void

Check that all current Definitions are in the EconContentStruct.

Method Details

CheckTradeTimeouts() public static method

public static CheckTradeTimeouts ( ) : void
return void

CreateSellOrder() public static method

public static CreateSellOrder ( ulong sellerId, string goodsTypeId, string goodsSubtypeName, decimal quantity, decimal price ) : void
sellerId ulong
goodsTypeId string
goodsSubtypeName string
quantity decimal
price decimal
return void

CreateStockHeld() public static method

public static CreateStockHeld ( ulong sellerId, string goodsTypeId, string goodsSubtypeName, decimal quantity, decimal price ) : void
sellerId ulong
goodsTypeId string
goodsSubtypeName string
quantity decimal
price decimal
return void

CreateTradeOffer() public static method

public static CreateTradeOffer ( ulong sellerId, string goodsTypeId, string goodsSubtypeName, decimal quantity, decimal price, ulong targetPlayer ) : void
sellerId ulong
goodsTypeId string
goodsSubtypeName string
quantity decimal
price decimal
targetPlayer ulong
return void

FindClosestPlayerMarket() public static method

Finds the closest player owned market of the specified open state.
public static FindClosestPlayerMarket ( IMyPlayer player, bool isOpen = null ) : MarketStruct
player IMyPlayer
isOpen bool
return Economy.scripts.EconStructures.MarketStruct

FindMarketsFromLocation() public static method

Finds all available markets that are within range that can be traded with.
public static FindMarketsFromLocation ( Vector3D position ) : List
position Vector3D
return List

FindMarketsFromName() public static method

Find a market of the specified name, trying exact match first, then case insensative, then partial string.
public static FindMarketsFromName ( string marketname ) : List
marketname string
return List

IsItemBlacklistedOnServer() public static method

public static IsItemBlacklistedOnServer ( string itemTypeId, string itemSubTypeName ) : bool
itemTypeId string
itemSubTypeName string
return bool

SyncMarketItems() public static method

Check that all current Definitions are in the EconContentStruct.
public static SyncMarketItems ( List &marketItems ) : void
marketItems List
return void