C# Class Economy.scripts.EconConfig.MarketManager

Afficher le fichier Open project: jpcsupplies/Economy_mod Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static CheckTradeTimeouts ( ) : void
Résultat void

CreateSellOrder() public static méthode

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

CreateStockHeld() public static méthode

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

CreateTradeOffer() public static méthode

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
Résultat void

FindClosestPlayerMarket() public static méthode

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

FindMarketsFromLocation() public static méthode

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

FindMarketsFromName() public static méthode

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
Résultat List

IsItemBlacklistedOnServer() public static méthode

public static IsItemBlacklistedOnServer ( string itemTypeId, string itemSubTypeName ) : bool
itemTypeId string
itemSubTypeName string
Résultat bool

SyncMarketItems() public static méthode

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