C# 클래스 Wolfje.Plugins.SEconomy.Money

A representation of Money in Seconomy. Money objects are toll-free bridged with 64-bit integers (long).
파일 보기 프로젝트 열기: tylerjwatson/SEconomy 1 사용 예제들

공개 메소드들

메소드 설명
Money ( Money money ) : System

Initializes a new instance of Money and copies the amount specified in it.

Money ( long money ) : System

Initalizes a new instance of money with the specified amount in integer form.

Money ( uint Platinum, uint Gold, int Silver, int Copper ) : System

Makes a new money object based on the supplied platinum, gold, silver, and copper.

Parse ( string MoneyRepresentation ) : Money

Parses a money representation into a Money object. Will throw exception if parsing fails.

ToLongString ( bool ShowNegativeSign = false ) : string

Returns a long representation of this Money object.

ToString ( ) : string

Returns the string representation of this money

TryParse ( string MoneyRepresentation, Money &Money ) : bool

Tries to parse Money out of a money representation.

메소드 상세

Money() 공개 메소드

Initializes a new instance of Money and copies the amount specified in it.
public Money ( Money money ) : System
money Money
리턴 System

Money() 공개 메소드

Initalizes a new instance of money with the specified amount in integer form.
public Money ( long money ) : System
money long
리턴 System

Money() 공개 메소드

Makes a new money object based on the supplied platinum, gold, silver, and copper.
public Money ( uint Platinum, uint Gold, int Silver, int Copper ) : System
Platinum uint
Gold uint
Silver int
Copper int
리턴 System

Parse() 공개 정적인 메소드

Parses a money representation into a Money object. Will throw exception if parsing fails.
public static Parse ( string MoneyRepresentation ) : Money
MoneyRepresentation string The money representation string, eg "1p1g", or "30s20c"
리턴 Money

ToLongString() 공개 메소드

Returns a long representation of this Money object.
public ToLongString ( bool ShowNegativeSign = false ) : string
ShowNegativeSign bool
리턴 string

ToString() 공개 메소드

Returns the string representation of this money
public ToString ( ) : string
리턴 string

TryParse() 공개 정적인 메소드

Tries to parse Money out of a money representation.
public static TryParse ( string MoneyRepresentation, Money &Money ) : bool
MoneyRepresentation string The money representation string, eg "1p1g", or "30s20c"
Money Money
리턴 bool