C# 클래스 Economy.scripts.EconConfig.MarketManager

파일 보기 프로젝트 열기: jpcsupplies/Economy_mod 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

CheckTradeTimeouts() 공개 정적인 메소드

public static CheckTradeTimeouts ( ) : void
리턴 void

CreateSellOrder() 공개 정적인 메소드

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

CreateStockHeld() 공개 정적인 메소드

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

CreateTradeOffer() 공개 정적인 메소드

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
리턴 void

FindClosestPlayerMarket() 공개 정적인 메소드

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

FindMarketsFromLocation() 공개 정적인 메소드

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

FindMarketsFromName() 공개 정적인 메소드

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
리턴 List

IsItemBlacklistedOnServer() 공개 정적인 메소드

public static IsItemBlacklistedOnServer ( string itemTypeId, string itemSubTypeName ) : bool
itemTypeId string
itemSubTypeName string
리턴 bool

SyncMarketItems() 공개 정적인 메소드

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