C# Class Economy.scripts.EconStructures.EconConfigStruct

ファイルを表示 Open project: jpcsupplies/Economy_mod Class Usage Examples

Public Properties

Property Type Description
CurrencyName string
DefaultPrices List
DefaultStartingBalance decimal
DefaultTradeRange double
EnableLcds bool
EnableNpcTradezones bool
EnablePlayerPayments bool
EnablePlayerTradezones bool
Language int
LimitedRange bool
LimitedSupply bool
MaximumPlayerTradeZones int
NPCStartingBalance decimal
NpcMerchantName string
PriceScaling bool
ShipTrading bool
TradeNetworkName string
TradeZoneLicenceCostMax decimal
TradeZoneLicenceCostMin decimal
TradeZoneMaxRadius decimal
TradeZoneMinRadius decimal
TradeZoneRelinkRatio decimal

Private Properties

Property Type Description

Public Methods

Method Description
CalculateZoneCost ( decimal radius, bool relink ) : decimal
EconConfigStruct ( ) : System

Method Details

CalculateZoneCost() public method

public CalculateZoneCost ( decimal radius, bool relink ) : decimal
radius decimal
relink bool
return decimal

EconConfigStruct() public method

public EconConfigStruct ( ) : System
return System

Property Details

CurrencyName public_oe property

Name our money. This is NOT the symbol (ie., $).
public string CurrencyName
return string

DefaultPrices public_oe property

public List DefaultPrices
return List

DefaultStartingBalance public_oe property

The starting balance for all new players.
public decimal DefaultStartingBalance
return decimal

DefaultTradeRange public_oe property

Default range of trade zones.
public double DefaultTradeRange
return double

EnableLcds public_oe property

Indicates the LCD panels can be used to display Trade zone information.
public bool EnableLcds
return bool

EnableNpcTradezones public_oe property

Indicates that Npc Tradezones can be used. They can still be created and managed by the Admin, allowing an admin to take the tradezones offline temporarily to fix any issue.
public bool EnableNpcTradezones
return bool

EnablePlayerPayments public_oe property

Indicates that Players can send payments to one another.
public bool EnablePlayerPayments
return bool

EnablePlayerTradezones public_oe property

Indicates the Player Tradezone can be created and used.
public bool EnablePlayerTradezones
return bool

Language public_oe property

Indicates what language the Servre uses for text in game. Mapped aginst: VRage.MyLanguagesEnum Typically retrieved via: MyAPIGateway.Session.Config.Language
public int Language
return int

LimitedRange public_oe property

Should players be near each other to trade or should it be unlimited distance.
public bool LimitedRange
return bool

LimitedSupply public_oe property

Should the NPC market be limited or unlimited supply.
public bool LimitedSupply
return bool

MaximumPlayerTradeZones public_oe property

The maximum number of trade zones a player an create.
public int MaximumPlayerTradeZones
return int

NPCStartingBalance public_oe property

The starting balance for NPC Bankers.
public decimal NPCStartingBalance
return decimal

NpcMerchantName public_oe property

The name that will used to identify the Merchant's server account.
public string NpcMerchantName
return string

PriceScaling public_oe property

Indicates that Players can Trade with on another. This sets if prices should react to available supply.
public bool PriceScaling
return bool

ShipTrading public_oe property

This sets if players can buy and sell ships.
public bool ShipTrading
return bool

TradeNetworkName public_oe property

Name our Trading Network.
public string TradeNetworkName
return string

TradeZoneLicenceCostMax public_oe property

The cost to create a Player trade zone when the zone size is at its Maximum allowed radius.
public decimal TradeZoneLicenceCostMax
return decimal

TradeZoneLicenceCostMin public_oe property

The cost to create a Player trade zone when the zone size is at its Minimum allowed radius.
public decimal TradeZoneLicenceCostMin
return decimal

TradeZoneMaxRadius public_oe property

The cost to create a Player trade zone Maximum allowed radius.
public decimal TradeZoneMaxRadius
return decimal

TradeZoneMinRadius public_oe property

The cost to create a Player trade zone Minimum allowed radius.
public decimal TradeZoneMinRadius
return decimal

TradeZoneRelinkRatio public_oe property

The cost ratio for Relink/Reestablishing a broken trade zone.
public decimal TradeZoneRelinkRatio
return decimal